tencentDescribeInstances

package
v0.0.0-...-2e2e56a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSqlTable

func CheckSqlTable()

如果不存在表,则新建。

func ToSql

func ToSql()

写入cvm信息到数据库

Types

type AutoGenerated

type AutoGenerated struct {
	Response struct {
		TotalCount  int `json:"TotalCount"`
		InstanceSet []struct {
			Placement struct {
				Zone      string `json:"Zone"`
				ProjectId int    `json:"ProjectId"`
			} `json:"Placement"`
			InstanceId         string `json:"InstanceId"`
			InstanceType       string `json:"InstanceType"`
			CPU                int    `json:"CPU"`
			Memory             int    `json:"Memory"`
			RestrictState      string `json:"RestrictState"`
			InstanceName       string `json:"InstanceName"`
			InstanceChargeType string `json:"InstanceChargeType"`
			SystemDisk         struct {
				CdcID    any    `json:"CdcId"`
				DiskType string `json:"DiskType"`
				DiskId   string `json:"DiskId"`
				DiskSize int    `json:"DiskSize"`
			} `json:"SystemDisk"`
			DataDisks []struct {
				DiskSize              int    `json:"DiskSize"`
				DiskType              string `json:"DiskType"`
				DiskID                string `json:"DiskId"`
				DeleteWithInstance    bool   `json:"DeleteWithInstance"`
				Encrypt               bool   `json:"Encrypt"`
				ThroughputPerformance int    `json:"ThroughputPerformance"`
			} `json:"DataDisks"`
			PrivateIpAddresses []string `json:"PrivateIpAddresses"`
			PublicIpAddresses  []string `json:"PublicIpAddresses"`
			InternetAccessible struct {
				InternetChargeType      string `json:"InternetChargeType"`
				InternetMaxBandwidthOut int    `json:"InternetMaxBandwidthOut"`
			} `json:"InternetAccessible"`
			VirtualPrivateCloud struct {
				VpcId        string `json:"VpcId"`
				SubnetId     string `json:"SubnetId"`
				AsVpcGateway bool   `json:"AsVpcGateway"`
			} `json:"VirtualPrivateCloud"`
			ImageId          string    `json:"ImageId"`
			RenewFlag        string    `json:"RenewFlag"`
			CreatedTime      time.Time `json:"CreatedTime"`
			ExpiredTime      time.Time `json:"ExpiredTime"`
			OsName           string    `json:"OsName"`
			SecurityGroupIds []string  `json:"SecurityGroupIds"`
			LoginSettings    struct {
			} `json:"LoginSettings"`
			InstanceState            string `json:"InstanceState"`
			Tags                     []any  `json:"Tags"`
			StopChargingMode         string `json:"StopChargingMode"`
			UUID                     string `json:"Uuid"`
			LatestOperation          string `json:"LatestOperation"`
			LatestOperationState     string `json:"LatestOperationState"`
			LatestOperationRequestId string `json:"LatestOperationRequestId"`
			DisasterRecoverGroupId   string `json:"DisasterRecoverGroupId"`
			CamRoleName              string `json:"CamRoleName"`
			HpcClusterId             string `json:"HpcClusterId"`
			DedicatedClusterId       string `json:"DedicatedClusterId"`
			IsolatedSource           string `json:"IsolatedSource"`
			LicenseType              string `json:"LicenseType"`
			DisableAPITermination    bool   `json:"DisableApiTermination"`
			DefaultLoginUser         string `json:"DefaultLoginUser"`
			DefaultLoginPort         int    `json:"DefaultLoginPort"`
		} `json:"InstanceSet"`
		RequestId string `json:"RequestId"`
	} `json:"Response"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL