aliyunDescribeInstances

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSqlTable

func CheckSqlTable()

如果不存在表,则新建。

func CreateClient

func CreateClient() (_result *ecs20140526.Client, _err error)

Description:

使用AK&SK初始化账号Client

@return Client

@throws Exception

func ToSql

func ToSql()

写入ecs信息到数据库

Types

type AutoGenerated

type AutoGenerated struct {
	Instance []struct {
		AutoReleaseTime string `json:"AutoReleaseTime"`
		ClusterId       string `json:"ClusterId"`
		Cpu             int    `json:"Cpu"`
		CPUOptions      struct {
			CoreCount      int    `json:"CoreCount"`
			Numa           string `json:"Numa"`
			ThreadsPerCore int    `json:"ThreadsPerCore"`
		} `json:"CpuOptions"`
		CreationTime           string `json:"CreationTime"`
		CreditSpecification    string `json:"CreditSpecification"`
		DedicatedHostAttribute struct {
			DedicatedHostClusterId string `json:"DedicatedHostClusterId"`
			DedicatedHostId        string `json:"DedicatedHostId"`
			DedicatedHostName      string `json:"DedicatedHostName"`
		} `json:"DedicatedHostAttribute"`
		DedicatedInstanceAttribute struct {
			Affinity string `json:"Affinity"`
			Tenancy  string `json:"Tenancy"`
		} `json:"DedicatedInstanceAttribute"`
		DeletionProtection         bool   `json:"DeletionProtection"`
		DeploymentSetId            string `json:"DeploymentSetId"`
		Description                string `json:"Description"`
		DeviceAvailable            bool   `json:"DeviceAvailable"`
		EcsCapacityReservationAttr struct {
			CapacityReservationId         string `json:"CapacityReservationId"`
			CapacityReservationPreference string `json:"CapacityReservationPreference"`
		} `json:"EcsCapacityReservationAttr"`
		EipAddress struct {
			AllocationId       string `json:"AllocationId"`
			InternetChargeType string `json:"InternetChargeType"`
			IpAddress          string `json:"IpAddress"`
		} `json:"EipAddress"`
		ExpiredTime        string `json:"ExpiredTime"`
		GPUAmount          int    `json:"GPUAmount"`
		GPUSpec            string `json:"GPUSpec"`
		HibernationOptions struct {
			Configured bool `json:"Configured"`
		} `json:"HibernationOptions"`
		HostName     string `json:"HostName"`
		ImageId      string `json:"ImageId"`
		ImageOptions struct {
		} `json:"ImageOptions"`
		InnerIPAddress struct {
		} `json:"InnerIpAddress"`
		InstanceChargeType      string `json:"InstanceChargeType"`
		InstanceId              string `json:"InstanceId"`
		InstanceName            string `json:"InstanceName"`
		InstanceNetworkType     string `json:"InstanceNetworkType"`
		InstanceType            string `json:"InstanceType"`
		InstanceTypeFamily      string `json:"InstanceTypeFamily"`
		InternetChargeType      string `json:"InternetChargeType"`
		InternetMaxBandwidthIn  int    `json:"InternetMaxBandwidthIn"`
		InternetMaxBandwidthOut int    `json:"InternetMaxBandwidthOut"`
		IoOptimized             bool   `json:"IoOptimized"`
		Memory                  int    `json:"Memory"`
		MetadataOptions         struct {
			HTTPEndpoint string `json:"HttpEndpoint"`
			HTTPTokens   string `json:"HttpTokens"`
		} `json:"MetadataOptions"`
		NetworkInterfaces struct {
			NetworkInterface []struct {
				MacAddress         string `json:"MacAddress"`
				NetworkInterfaceId string `json:"NetworkInterfaceId"`
				PrimaryIpAddress   string `json:"PrimaryIpAddress"`
				PrivateIPSets      struct {
					PrivateIPSet []struct {
						Primary       bool   `json:"Primary"`
						PrivateIPSets string `json:"PrivateIPSets"`
					} `json:"PrivateIpSet"`
				} `json:"PrivateIpSets"`
				Type string `json:"Type"`
			} `json:"NetworkInterface"`
		} `json:"NetworkInterfaces"`
		OSName         string `json:"OSName"`
		OSNameEn       string `json:"OSNameEn"`
		OSType         string `json:"OSType"`
		OperationLocks struct {
		} `json:"OperationLocks"`
		PublicIpAddress struct {
			IpAddress []string `json:"IpAddress"`
		} `json:"PublicIpAddress"`
		Recyclable       bool   `json:"Recyclable"`
		RegionId         string `json:"RegionId"`
		ResourceGroupId  string `json:"ResourceGroupId"`
		SaleCycle        string `json:"SaleCycle"`
		SecurityGroupIds struct {
			SecurityGroupId []string `json:"SecurityGroupId"`
		} `json:"SecurityGroupIds"`
		SerialNumber   string `json:"SerialNumber"`
		SpotPriceLimit int    `json:"SpotPriceLimit"`
		SpotStrategy   string `json:"SpotStrategy"`
		StartTime      string `json:"StartTime"`
		Status         string `json:"Status"`
		StoppedMode    string `json:"StoppedMode"`
		VlanId         string `json:"VlanId"`
		VpcAttributes  struct {
			NatIPAddress     string `json:"NatIpAddress"`
			PrivateIpAddress struct {
				IpAddress []string `json:"IpAddress"`
			} `json:"PrivateIpAddress"`
			VSwitchId string `json:"VSwitchId"`
			VpcId     string `json:"VpcId"`
		} `json:"VpcAttributes"`
		ZoneId      string `json:"ZoneId"`
		KeyPairName string `json:"KeyPairName,omitempty"`
	} `json:"Instance"`
}

Jump to

Keyboard shortcuts

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