ecs

package
v0.0.0-...-ba7e8e4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Examples

Constants

View Source
const (
	// ECSDefaultEndpoint is the default API endpoint of ECS services
	ECSDefaultEndpoint = "https://ecs-cn-hangzhou.aliyuncs.com"
	ECSAPIVersion      = "2014-05-26"
	ECSServiceCode     = "ecs"

	VPCDefaultEndpoint = "https://vpc.aliyuncs.com"
	VPCAPIVersion      = "2016-04-28"
	VPCServiceCode     = "vpc"
)
View Source
const (
	DiskTypeAll       = DiskType("all") //Default
	DiskTypeAllSystem = DiskType("system")
	DiskTypeAllData   = DiskType("data")
)
View Source
const (
	DiskCategoryAll             = DiskCategory("all") //Default
	DiskCategoryCloud           = DiskCategory("cloud")
	DiskCategoryEphemeral       = DiskCategory("ephemeral")
	DiskCategoryEphemeralSSD    = DiskCategory("ephemeral_ssd")
	DiskCategoryCloudEfficiency = DiskCategory("cloud_efficiency")
	DiskCategoryCloudSSD        = DiskCategory("cloud_ssd")
	DiskCategoryCloudESSD       = DiskCategory("cloud_essd")
)
View Source
const (
	DiskPL0 = DiskCategory("PL0")
	DiskPL1 = DiskCategory("PL1")
	DiskPL2 = DiskCategory("PL2")
	DiskPL3 = DiskCategory("PL3")
)
View Source
const (
	DiskStatusInUse     = DiskStatus("In_use")
	DiskStatusAvailable = DiskStatus("Available")
	DiskStatusAttaching = DiskStatus("Attaching")
	DiskStatusDetaching = DiskStatus("Detaching")
	DiskStatusCreating  = DiskStatus("Creating")
	DiskStatusReIniting = DiskStatus("ReIniting")
	DiskStatusAll       = DiskStatus("All") //Default
)
View Source
const (
	PrePaid  = DiskChargeType("PrePaid")
	PostPaid = DiskChargeType("PostPaid")
)
View Source
const (
	ImageOwnerSystem      = ImageOwnerAlias("system")
	ImageOwnerSelf        = ImageOwnerAlias("self")
	ImageOwnerOthers      = ImageOwnerAlias("others")
	ImageOwnerMarketplace = ImageOwnerAlias("marketplace")
	ImageOwnerDefault     = ImageOwnerAlias("") //Return the values for system, self, and others
)

Constants of image owner

View Source
const (
	ImageStatusAvailable    = ImageStatus("Available")
	ImageStatusUnAvailable  = ImageStatus("UnAvailable")
	ImageStatusCreating     = ImageStatus("Creating")
	ImageStatusCreateFailed = ImageStatus("CreateFailed")
)
View Source
const (
	ImageUsageInstance = ImageUsage("instance")
	ImageUsageNone     = ImageUsage("none")
)
View Source
const (
	RAW = ImageFormatType("RAW")
	VHD = ImageFormatType("VHD")
)
View Source
const (
	Creating = InstanceStatus("Creating") // For backward compatibility
	Pending  = InstanceStatus("Pending")
	Running  = InstanceStatus("Running")
	Starting = InstanceStatus("Starting")

	Stopped  = InstanceStatus("Stopped")
	Stopping = InstanceStatus("Stopping")
	Deleted  = InstanceStatus("Deleted")
)

Constants of InstanceStatus

View Source
const (
	LockReasonFinancial = LockReason("financial")
	LockReasonSecurity  = LockReason("security")
)
View Source
const (
	NoSpot             = SpotStrategyType("NoSpot")
	SpotWithPriceLimit = SpotStrategyType("SpotWithPriceLimit")
	SpotAsPriceGo      = SpotStrategyType("SpotAsPriceGo")
)

Constants of SpotStrategyType

View Source
const (
	RenewAutoRenewal = RenewalStatus("AutoRenewal")
	RenewNormal      = RenewalStatus("Normal")
	RenewNotRenewal  = RenewalStatus("NotRenewal")
)
View Source
const (
	NgwNatTypeNormal   = NatType("Normal")
	NgwNatTypeEnhanced = NatType("Enhanced")
)
View Source
const (
	NatGatewaySmallSpec  = NatGatewaySpec("Small")
	NatGatewayMiddleSpec = NatGatewaySpec("Middle")
	NatGatewayLargeSpec  = NatGatewaySpec("Large")
)
View Source
const (
	EcsInstance      = "EcsInstance"
	SlbInstance      = "SlbInstance"
	Nat              = "Nat"
	HaVip            = "HaVip"
	NetworkInterface = "NetworkInterface"
)
View Source
const (
	NAT          = "NAT"
	MULTI_BINDED = "MULTI_BINDED"
	BINDED       = "BINDED"
)
View Source
const (
	EipStatusAssociating   = EipStatus("Associating")
	EipStatusUnassociating = EipStatus("Unassociating")
	EipStatusInUse         = EipStatus("InUse")
	EipStatusAvailable     = EipStatus("Available")
)
View Source
const (
	AssociatedInstanceTypeEcsInstance      = AssociatedInstanceType("EcsInstance")
	AssociatedInstanceTypeSlbInstance      = AssociatedInstanceType("SlbInstance")
	AssociatedInstanceTypeNat              = AssociatedInstanceType("Nat")
	AssociatedInstanceTypeHaVip            = AssociatedInstanceType("HaVip")
	AssociatedInstanceTypeNetworkInterface = AssociatedInstanceType("NetworkInterface")
)
View Source
const (
	RouteTableSystem = RouteTableType("System")
	RouteTableCustom = RouteTableType("Custom")
)
View Source
const (
	RouteEntryStatusPending   = RouteEntryStatus("Pending")
	RouteEntryStatusAvailable = RouteEntryStatus("Available")
	RouteEntryStatusModifying = RouteEntryStatus("Modifying")
)
View Source
const (
	NextHopInstance         = NextHopType("Instance") //Default
	NextHopHaVip            = NextHopType("HaVip")
	NextHopRouterInterface  = NextHopType("RouterInterface")
	NextHopNetworkInterface = NextHopType("NetworkInterface")
	NextHopVpnGateway       = NextHopType("VpnGateway")
	NextHopIPv6Gateway      = NextHopType("IPv6Gateway")
	NextHopTunnel           = NextHopType("Tunnel")
)
View Source
const (
	VRouter = RouterType("VRouter")
	VBR     = RouterType("VBR")

	Idl      = InterfaceStatus("Idl")
	Active   = InterfaceStatus("Active")
	Inactive = InterfaceStatus("Inactive")
	// 'Idle' means the router interface is not connected. 'Idl' may be a incorrect status.
	Idle = InterfaceStatus("Idle")

	InitiatingSide = Role("InitiatingSide")
	AcceptingSide  = Role("AcceptingSide")

	Small1  = Spec("Small.1")
	Small2  = Spec("Small.2")
	Small5  = Spec("Small.5")
	Middle1 = Spec("Middle.1")
	Middle2 = Spec("Middle.2")
	Middle5 = Spec("Middle.5")
	Large1  = Spec("Large.1")
	Large2  = Spec("Large.2")
)
View Source
const (
	NicTypeInternet = NicType("internet")
	NicTypeIntranet = NicType("intranet")

	DirectionIngress = Direction("ingress")
	DirectionEgress  = Direction("egress")
	DirectionAll     = Direction("all")

	SecurityGroupTypeNormal     = SecurityGroupType("normal")
	SecurityGroupTypeEnterprise = SecurityGroupType("enterprise")
)
View Source
const (
	IpProtocolAll  = IpProtocol("all")
	IpProtocolTCP  = IpProtocol("tcp")
	IpProtocolUDP  = IpProtocol("udp")
	IpProtocolICMP = IpProtocol("icmp")
	IpProtocolGRE  = IpProtocol("gre")
)
View Source
const (
	PermissionPolicyAccept = PermissionPolicy("accept")
	PermissionPolicyDrop   = PermissionPolicy("drop")
)
View Source
const (
	GroupInnerAccept = GroupInnerAccessPolicy("Accept")
	GroupInnerDrop   = GroupInnerAccessPolicy("Drop")
)
View Source
const (
	SnatEntryStatusPending   = SnatEntryStatus("Pending")
	SnatEntryStatusAvailable = SnatEntryStatus("Available")
)
View Source
const (
	TagResourceImage    = TagResourceType("image")
	TagResourceInstance = TagResourceType("instance")
	TagResourceSnapshot = TagResourceType("snapshot")
	TagResourceDisk     = TagResourceType("disk")
)
View Source
const (
	VpcStatusPending   = VpcStatus("Pending")
	VpcStatusAvailable = VpcStatus("Available")
)
View Source
const (
	VSwitchStatusPending   = VSwitchStatus("Pending")
	VSwitchStatusAvailable = VSwitchStatus("Available")
)
View Source
const (
	ResourceTypeInstance            = ResourceType("Instance")
	ResourceTypeDisk                = ResourceType("Disk")
	ResourceTypeVSwitch             = ResourceType("VSwitch")
	ResourceTypeIOOptimizedInstance = ResourceType("IoOptimized")
)
View Source
const (
	SupportedInstanceType       = SupportedResourceType("supportedInstanceType")
	SupportedInstanceTypeFamily = SupportedResourceType("supportedInstanceTypeFamily")
	SupportedInstanceGeneration = SupportedResourceType("supportedInstanceGeneration")
	SupportedSystemDiskCategory = SupportedResourceType("supportedSystemDiskCategory")
	SupportedDataDiskCategory   = SupportedResourceType("supportedDataDiskCategory")
	SupportedNetworkCategory    = SupportedResourceType("supportedNetworkCategory")
)
View Source
const DefaultTimeout = 60

Default timeout value for WaitForXXX method

View Source
const DefaultWaitForInterval = 5

Interval for checking status in WaitForXXX method

View Source
const ImageDefaultTimeout = 120

Default timeout value for WaitForImageReady method

View Source
const InstanceDefaultTimeout = 120

Default timeout value for WaitForInstance method

View Source
const NetworkInterfacesDefaultTimeout = 120

Default timeout value for WaitForInstance method

View Source
const SnapshotDefaultTimeout = 120

Default timeout value for WaitForSnapShotReady method

Variables

View Source
var (
	IoOptimizedNone      = IoOptimized("none")
	IoOptimizedOptimized = IoOptimized("optimized")
)
View Source
var (
	InactiveSecurityEnhancementStrategy = SecurityEnhancementStrategy("Active")
	DeactiveSecurityEnhancementStrategy = SecurityEnhancementStrategy("Deactive")
)

Functions

This section is empty.

Types

type AccountType

type AccountType struct {
	AliyunId string
}

type AddTagsArgs

type AddTagsArgs struct {
	ResourceId   string
	ResourceType TagResourceType //image, instance, snapshot or disk
	RegionId     common.Region
	Tag          map[string]string
}

type AddTagsResponse

type AddTagsResponse struct {
	common.Response
}

type AllocateEipAddressArgs

type AllocateEipAddressArgs struct {
	RegionId           common.Region
	Bandwidth          int
	InternetChargeType common.InternetChargeType
	ISP                string
	ClientToken        string
}

type AllocateEipAddressResponse

type AllocateEipAddressResponse struct {
	common.Response
	EipAddress   string
	AllocationId string
}

type AllocatePublicIpAddressArgs

type AllocatePublicIpAddressArgs struct {
	InstanceId string
}

type AllocatePublicIpAddressResponse

type AllocatePublicIpAddressResponse struct {
	common.Response

	IpAddress string
}

type AssignPrivateIpAddressesArgs

type AssignPrivateIpAddressesArgs struct {
	RegionId                       common.Region
	NetworkInterfaceId             string
	PrivateIpAddress               []string `query:"list"` // optional
	SecondaryPrivateIpAddressCount int      // optional
}

type AssignPrivateIpAddressesResponse

type AssignPrivateIpAddressesResponse struct {
	common.Response

	AssignedPrivateIpAddressesSet struct {
		NetworkInterfaceId string
		PrivateIpSet       struct {
			PrivateIpAddress []string
		}
	}
}

type AssociateEipAddressArgs

type AssociateEipAddressArgs struct {
	AllocationId     string
	InstanceId       string
	InstanceRegionId common.Region
	InstanceType     EipInstanceType
	PrivateIpAddress string
	Mode             AssociateEipAddressMode
}

type AssociateEipAddressMode

type AssociateEipAddressMode string

type AssociateEipAddressResponse

type AssociateEipAddressResponse struct {
	common.Response
}

type AssociatedInstanceType

type AssociatedInstanceType string

type AssociatedPublicIp

type AssociatedPublicIp struct {
	PublicIpAddress string
	AllocationId    string
}

type AttachDiskArgs

type AttachDiskArgs struct {
	InstanceId         string
	DiskId             string
	Device             string
	DeleteWithInstance bool
}

type AttachDiskResponse

type AttachDiskResponse struct {
	common.Response
}

type AttachInstancesArgs

type AttachInstancesArgs struct {
	RegionId    common.Region
	RamRoleName string
	InstanceIds string
}

type AttachKeyPairArgs

type AttachKeyPairArgs struct {
	RegionId    common.Region
	KeyPairName string
	InstanceIds string
}

type AttachNetworkInterfaceArgs

type AttachNetworkInterfaceArgs struct {
	RegionId           common.Region
	NetworkInterfaceId string
	InstanceId         string
}

type AttachNetworkInterfaceResponse

type AttachNetworkInterfaceResponse common.Response

type AuthorizeSecurityGroupArgs

type AuthorizeSecurityGroupArgs struct {
	SecurityGroupId         string
	RegionId                common.Region
	IpProtocol              IpProtocol
	PortRange               string
	SourceGroupId           string
	SourceGroupOwnerAccount string
	SourceGroupOwnerID      string
	SourceCidrIp            string           // IPv4 only, default 0.0.0.0/0
	Policy                  PermissionPolicy // enum of accept (default) | drop
	Priority                int              // 1 - 100, default 1
	NicType                 NicType          // enum of internet | intranet (default)
}

type AuthorizeSecurityGroupEgressArgs

type AuthorizeSecurityGroupEgressArgs struct {
	SecurityGroupId       string
	RegionId              common.Region
	IpProtocol            IpProtocol
	PortRange             string
	DestGroupId           string
	DestGroupOwnerAccount string
	DestGroupOwnerId      string
	DestCidrIp            string           // IPv4 only, default 0.0.0.0/0
	Policy                PermissionPolicy // enum of accept (default) | drop
	Priority              int              // 1 - 100, default 1
	NicType               NicType          // enum of internet | intranet (default)
}

type AuthorizeSecurityGroupEgressResponse

type AuthorizeSecurityGroupEgressResponse struct {
	common.Response
}

type AuthorizeSecurityGroupResponse

type AuthorizeSecurityGroupResponse struct {
	common.Response
}

type AvailableDiskCategoriesType

type AvailableDiskCategoriesType struct {
	DiskCategories []DiskCategory //enum for cloud, ephemeral, ephemeral_ssd
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&availablediskcategoriestype

type AvailableInstanceTypesType

type AvailableInstanceTypesType struct {
	InstanceTypes []string
}

type AvailableResourceCreationType

type AvailableResourceCreationType struct {
	ResourceTypes []ResourceType //enum for Instance, Disk, VSwitch
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&availableresourcecreationtype

type AvailableResourcesType

type AvailableResourcesType struct {
	IoOptimized          bool
	NetworkTypes         map[SupportedResourceType][]string
	InstanceGenerations  map[SupportedResourceType][]string
	InstanceTypeFamilies map[SupportedResourceType][]string
	InstanceTypes        map[SupportedResourceType][]string
	SystemDiskCategories map[SupportedResourceType][]DiskCategory
	DataDiskCategories   map[SupportedResourceType][]DiskCategory
}

Because the sub-item of AvailableResourcesType starts with supported and golang struct cann't refer them, this uses map to parse ResourcesInfo

type AvailableZoneType

type AvailableZoneType struct {
	RegionId           string
	ZoneId             string
	Status             string
	AvailableResources struct {
		AvailableResource []NewAvailableResourcesType
	}
}

type BandwidthPackageIdType

type BandwidthPackageIdType struct {
	BandwidthPackageId []string
}

type BandwidthPackageType

type BandwidthPackageType struct {
	IpCount   int
	Bandwidth int
	Zone      string
}

type BusinessInfo

type BusinessInfo struct {
	Pack       string `json:"pack,omitempty"`
	ActivityId string `json:"activityId,omitempty"`
}

type CancelCopyImageRequest

type CancelCopyImageRequest struct {
	ImageId string
	// contains filtered or unexported fields
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(accessKeyId, accessKeySecret string) *Client

NewClient creates a new instance of ECS client

func NewClientWithEndpoint

func NewClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string) *Client

func NewClientWithRegion

func NewClientWithRegion(endpoint string, accessKeyId string, accessKeySecret string, regionID common.Region) *Client

func NewECSClient

func NewECSClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client

--------------------------------------- NewECSClient creates a new instance of ECS client ---------------------------------------

func NewECSClientWithEndpoint

func NewECSClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string, regionID common.Region) *Client

func NewECSClientWithEndpointAndSecurityToken

func NewECSClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewECSClientWithEndpointAndSecurityToken4RegionalDomain

func NewECSClientWithEndpointAndSecurityToken4RegionalDomain(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewECSClientWithSecurityToken

func NewECSClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewECSClientWithSecurityToken4RegionalDomain

func NewECSClientWithSecurityToken4RegionalDomain(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

only for Hangzhou Regional Domain

func NewVPCClient

func NewVPCClient(accessKeyId string, accessKeySecret string, regionID common.Region) *Client

--------------------------------------- NewVPCClient creates a new instance of VPC client ---------------------------------------

func NewVPCClientWithEndpoint

func NewVPCClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string, regionID common.Region) *Client

func NewVPCClientWithEndpointAndSecurityToken

func NewVPCClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewVPCClientWithEndpointAndSecurityToken4RegionalDomain

func NewVPCClientWithEndpointAndSecurityToken4RegionalDomain(endpoint string, accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

Only for Hangzhou

func NewVPCClientWithRegion

func NewVPCClientWithRegion(endpoint string, accessKeyId string, accessKeySecret string, regionID common.Region) *Client

--------------------------------------- NewVPCClientWithRegion creates a new instance of VPC client automatically get endpoint ---------------------------------------

func NewVPCClientWithSecurityToken

func NewVPCClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

func NewVPCClientWithSecurityToken4RegionalDomain

func NewVPCClientWithSecurityToken4RegionalDomain(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client

Only for Hangzhou

func (*Client) ActivateRouterInterface

func (client *Client) ActivateRouterInterface(args *OperateRouterInterfaceArgs) (response *EcsCommonResponse, err error)

ActivateRouterInterface active Router Interface

You can read doc at https://help.aliyun.com/document_detail/36030.html?spm=5176.doc36031.6.667.DAuZLD

func (*Client) AddTags

func (client *Client) AddTags(args *AddTagsArgs) error

AddTags Add tags to resource

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/tags&addtags

func (*Client) AllocateEipAddress

func (client *Client) AllocateEipAddress(args *AllocateEipAddressArgs) (EipAddress string, AllocationId string, err error)

AllocateEipAddress allocates Eip Address

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/network&allocateeipaddress

func (*Client) AllocatePublicIpAddress

func (client *Client) AllocatePublicIpAddress(instanceId string) (ipAddress string, err error)

AllocatePublicIpAddress allocates Public Ip Address

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/network&allocatepublicipaddress

func (*Client) AssignPrivateIpAddresses

func (client *Client) AssignPrivateIpAddresses(args *AssignPrivateIpAddressesArgs) (resp *AssignPrivateIpAddressesResponse, err error)

func (*Client) AssociateEipAddress

func (client *Client) AssociateEipAddress(allocationId string, instanceId string) error

AssociateEipAddress associates EIP address to instance

You can read doc at https://help.aliyun.com/api/vpc/AssociateEipAddress.html

func (*Client) AttachDisk

func (client *Client) AttachDisk(args *AttachDiskArgs) error

AttachDisk attaches disk to instance

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&attachdisk

func (*Client) AttachInstanceRamRole

func (client *Client) AttachInstanceRamRole(args *AttachInstancesArgs) (err error)

AttachInstanceRamRole attach instances to ram role

You can read doc at https://help.aliyun.com/document_detail/54244.html?spm=5176.doc54245.6.811.zEJcS5

func (*Client) AttachKeyPair

func (client *Client) AttachKeyPair(args *AttachKeyPairArgs) (err error)

AttachKeyPair keypars to instances

You can read doc at https://help.aliyun.com/document_detail/51775.html?spm=5176.doc51773.6.913.igEem4

func (*Client) AttachNetworkInterface

func (client *Client) AttachNetworkInterface(args *AttachNetworkInterfaceArgs) error

func (*Client) AuthorizeSecurityGroup

func (client *Client) AuthorizeSecurityGroup(args *AuthorizeSecurityGroupArgs) error

AuthorizeSecurityGroup authorize permissions to security group

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/securitygroup&authorizesecuritygroup

func (*Client) AuthorizeSecurityGroupEgress

func (client *Client) AuthorizeSecurityGroupEgress(args *AuthorizeSecurityGroupEgressArgs) error

AuthorizeSecurityGroup authorize permissions to security group

You can read doc at https://help.aliyun.com/document_detail/25560.html

func (*Client) CancelCopyImage

func (client *Client) CancelCopyImage(regionId common.Region, imageId string) error

You can read doc at https://help.aliyun.com/document_detail/25539.html

func (*Client) ConnectRouterInterface

func (client *Client) ConnectRouterInterface(args *OperateRouterInterfaceArgs) (response *EcsCommonResponse, err error)

ConnectRouterInterface

You can read doc at https://help.aliyun.com/document_detail/36031.html?spm=5176.doc36035.6.666.wkyljN

func (*Client) CopyImage

func (client *Client) CopyImage(args *CopyImageArgs) (string, error)

You can read doc at https://help.aliyun.com/document_detail/25538.html

func (*Client) CreateDisk

func (client *Client) CreateDisk(args *CreateDiskArgs) (diskId string, err error)

CreateDisk creates a new disk

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&createdisk

func (*Client) CreateForwardEntry

func (client *Client) CreateForwardEntry(args *CreateForwardEntryArgs) (resp *CreateForwardEntryResponse, err error)

func (*Client) CreateImage

func (client *Client) CreateImage(args *CreateImageArgs) (imageId string, err error)

CreateImage creates a new image

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/image&createimage

func (*Client) CreateInstance

func (client *Client) CreateInstance(args *CreateInstanceArgs) (instanceId string, err error)

CreateInstance creates instance

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&createinstance

func (*Client) CreateKeyPair

func (client *Client) CreateKeyPair(args *CreateKeyPairArgs) (resp *CreateKeyPairResponse, err error)

CreateKeyPair creates keypair

You can read doc at https://help.aliyun.com/document_detail/51771.html?spm=5176.doc51775.6.910.cedjfr

func (*Client) CreateNatGateway

func (client *Client) CreateNatGateway(args *CreateNatGatewayArgs) (resp *CreateNatGatewayResponse, err error)

CreateNatGateway creates Virtual Private Cloud

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vpc&createvpc

func (*Client) CreateNetworkInterface

func (client *Client) CreateNetworkInterface(args *CreateNetworkInterfaceArgs) (resp *CreateNetworkInterfaceResponse, err error)

func (*Client) CreateRouteEntry

func (client *Client) CreateRouteEntry(args *CreateRouteEntryArgs) error

CreateRouteEntry creates route entry

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/routertable&createrouteentry

func (*Client) CreateRouterInterface

func (client *Client) CreateRouterInterface(args *CreateRouterInterfaceArgs) (response *CreateRouterInterfaceResponse, err error)

CreateRouterInterface create Router interface

You can read doc at https://help.aliyun.com/document_detail/36032.html?spm=5176.product27706.6.664.EbBsxC

func (*Client) CreateSecurityGroup

func (client *Client) CreateSecurityGroup(args *CreateSecurityGroupArgs) (securityGroupId string, err error)

CreateSecurityGroup creates security group

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/securitygroup&createsecuritygroup

func (*Client) CreateSnapshot

func (client *Client) CreateSnapshot(args *CreateSnapshotArgs) (snapshotId string, err error)

CreateSnapshot creates a new snapshot

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/snapshot&createsnapshot

func (*Client) CreateSnatEntry

func (client *Client) CreateSnatEntry(args *CreateSnatEntryArgs) (resp *CreateSnatEntryResponse, err error)

func (*Client) CreateVSwitch

func (client *Client) CreateVSwitch(args *CreateVSwitchArgs) (vswitchId string, err error)

CreateVSwitch creates Virtual Switch

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vswitch&createvswitch

func (*Client) CreateVpc

func (client *Client) CreateVpc(args *CreateVpcArgs) (resp *CreateVpcResponse, err error)

CreateVpc creates Virtual Private Cloud

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vpc&createvpc

func (*Client) DeactivateRouterInterface

func (client *Client) DeactivateRouterInterface(args *OperateRouterInterfaceArgs) (response *EcsCommonResponse, err error)

DeactivateRouterInterface deactivate Router Interface

You can read doc at https://help.aliyun.com/document_detail/36033.html?spm=5176.doc36030.6.668.JqCWUz

func (*Client) DeleteBandwidthPackage

func (client *Client) DeleteBandwidthPackage(args *DeleteBandwidthPackageArgs) error

func (*Client) DeleteDisk

func (client *Client) DeleteDisk(diskId string) error

DeleteDisk deletes disk

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&deletedisk

func (*Client) DeleteForwardEntry

func (client *Client) DeleteForwardEntry(args *DeleteForwardEntryArgs) error

func (*Client) DeleteImage

func (client *Client) DeleteImage(regionId common.Region, imageId string) error

DeleteImage deletes Image

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/image&deleteimage

func (*Client) DeleteImageWithForce

func (client *Client) DeleteImageWithForce(regionId common.Region, imageId string, force bool) error

DeleteImage deletes Image

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/image&deleteimage

func (*Client) DeleteInstance

func (client *Client) DeleteInstance(instanceId string) error

DeleteInstance deletes instance

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&deleteinstance

Example
fmt.Printf("Delete Instance Example")

client := NewTestClient()

err := client.DeleteInstance(TestInstanceId)

if err != nil {
	fmt.Printf("Failed to delete Instance %s vnc url: %v \n", TestInstanceId, err)
}
Output:

func (*Client) DeleteKeyPairs

func (client *Client) DeleteKeyPairs(args *DeleteKeyPairsArgs) (err error)

DeleteKeyPairs delete keypairs

You can read doc at https://help.aliyun.com/document_detail/51772.html?spm=5176.doc51776.6.915.Qqcv2Q

func (*Client) DeleteNatGateway

func (client *Client) DeleteNatGateway(args *DeleteNatGatewayArgs) error

func (*Client) DeleteNetworkInterface

func (client *Client) DeleteNetworkInterface(args *DeleteNetworkInterfaceArgs) (resp *DeleteNetworkInterfaceResponse, err error)

func (*Client) DeleteRouteEntry

func (client *Client) DeleteRouteEntry(args *DeleteRouteEntryArgs) error

DeleteRouteEntry deletes route entry

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/routertable&deleterouteentry

func (*Client) DeleteRouterInterface

func (client *Client) DeleteRouterInterface(args *OperateRouterInterfaceArgs) (response *EcsCommonResponse, err error)

DeleteRouterInterface delete Router Interface

You can read doc at https://help.aliyun.com/document_detail/36034.html?spm=5176.doc36036.6.671.y2xpNt

func (*Client) DeleteSecurityGroup

func (client *Client) DeleteSecurityGroup(regionId common.Region, securityGroupId string) error

DeleteSecurityGroup deletes security group

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/securitygroup&deletesecuritygroup

func (*Client) DeleteSnapshot

func (client *Client) DeleteSnapshot(snapshotId string) error

DeleteSnapshot deletes snapshot

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/snapshot&deletesnapshot

func (*Client) DeleteSnatEntry

func (client *Client) DeleteSnatEntry(args *DeleteSnatEntryArgs) error

func (*Client) DeleteVSwitch

func (client *Client) DeleteVSwitch(VSwitchId string) error

DeleteVSwitch deletes Virtual Switch

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vswitch&deletevswitch

func (*Client) DeleteVpc

func (client *Client) DeleteVpc(vpcId string) error

DeleteVpc deletes Virtual Private Cloud

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vpc&deletevpc

func (*Client) DescribeBandwidthPackages

func (client *Client) DescribeBandwidthPackages(args *DescribeBandwidthPackagesArgs) (*DescribeBandwidthPackagesResponse, error)

func (*Client) DescribeDiskMonitorData

func (client *Client) DescribeDiskMonitorData(args *DescribeDiskMonitorDataArgs) (monitorData []DiskMonitorDataType, totalCount int, err error)

DescribeDiskMonitorData describes disk monitoring data

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/monitor&describediskmonitordata

func (*Client) DescribeDisks

func (client *Client) DescribeDisks(args *DescribeDisksArgs) (disks []DiskItemType, pagination *common.PaginationResult, err error)

DescribeDisks describes Disks

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&describedisks

func (*Client) DescribeDisksWithRaw

func (client *Client) DescribeDisksWithRaw(args *DescribeDisksArgs) (response *DescribeDisksResponse, err error)

func (*Client) DescribeEipAddresses

func (client *Client) DescribeEipAddresses(args *DescribeEipAddressesArgs) (eipAddresses []EipAddressSetType, pagination *common.PaginationResult, err error)

DescribeInstanceStatus describes instance status

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/network&describeeipaddresses

func (*Client) DescribeEipAddressesWithRaw

func (client *Client) DescribeEipAddressesWithRaw(args *DescribeEipAddressesArgs) (response *DescribeEipAddressesResponse, err error)

func (*Client) DescribeEipMonitorData

func (client *Client) DescribeEipMonitorData(args *DescribeEipMonitorDataArgs) (monitorData []EipMonitorDataType, err error)

DescribeEipMonitorData describes EIP monitoring data

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/monitor&describeeipmonitordata

func (*Client) DescribeForwardTableEntries

func (client *Client) DescribeForwardTableEntries(args *DescribeForwardTableEntriesArgs) (forwardTableEntries []ForwardTableEntrySetType,
	pagination *common.PaginationResult, err error)

func (*Client) DescribeForwardTableEntriesWithRaw

func (client *Client) DescribeForwardTableEntriesWithRaw(args *DescribeForwardTableEntriesArgs) (response *DescribeForwardTableEntriesResponse, err error)

func (*Client) DescribeImageSharePermission

func (client *Client) DescribeImageSharePermission(args *ModifyImageSharePermissionArgs) (*ImageSharePermissionResponse, error)

func (*Client) DescribeImages

func (client *Client) DescribeImages(args *DescribeImagesArgs) (images []ImageType, pagination *common.PaginationResult, err error)

DescribeImages describes images

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/image&describeimages

func (*Client) DescribeImagesWithRaw

func (client *Client) DescribeImagesWithRaw(args *DescribeImagesArgs) (response *DescribeImagesResponse, err error)

func (*Client) DescribeInstanceAttribute

func (client *Client) DescribeInstanceAttribute(instanceId string) (instance *InstanceAttributesType, err error)

DescribeInstanceAttribute describes instance attribute

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&describeinstanceattribute

Example
fmt.Printf("DescribeInstanceAttribute Example\n")

client := NewTestClient()

instanceAttributeType, err := client.DescribeInstanceAttribute(TestInstanceId)

if err != nil {
	fmt.Printf("Failed to describe Instance %s attribute: %v\n", TestInstanceId, err)
} else {
	fmt.Printf("Instance Information\n")
	fmt.Printf("InstanceId = %s \n", instanceAttributeType.InstanceId)
	fmt.Printf("InstanceName = %s \n", instanceAttributeType.InstanceName)
	fmt.Printf("HostName = %s \n", instanceAttributeType.HostName)
	fmt.Printf("ZoneId = %s \n", instanceAttributeType.ZoneId)
	fmt.Printf("RegionId = %s \n", instanceAttributeType.RegionId)
}
Output:

func (*Client) DescribeInstanceMonitorData

func (client *Client) DescribeInstanceMonitorData(args *DescribeInstanceMonitorDataArgs) (monitorData []InstanceMonitorDataType, err error)

DescribeInstanceMonitorData describes instance monitoring data

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/monitor&describeinstancemonitordata

func (*Client) DescribeInstanceRamRole

func (client *Client) DescribeInstanceRamRole(args *AttachInstancesArgs) (resp *DescribeInstanceRamRoleResponse, err error)

DescribeInstanceRamRole

You can read doc at https://help.aliyun.com/document_detail/54243.html?spm=5176.doc54245.6.812.RgNCoi

func (*Client) DescribeInstanceStatus

func (client *Client) DescribeInstanceStatus(args *DescribeInstanceStatusArgs) (instanceStatuses []InstanceStatusItemType, pagination *common.PaginationResult, err error)

DescribeInstanceStatus describes instance status

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&describeinstancestatus

Example
fmt.Printf("DescribeInstanceStatus Example\n")

args := DescribeInstanceStatusArgs{
	RegionId: "cn-beijing",
	ZoneId:   "cn-beijing-b",
	Pagination: common.Pagination{
		PageNumber: 1,
		PageSize:   1,
	},
}

client := NewTestClient()
instanceStatus, _, err := client.DescribeInstanceStatus(&args)

if err != nil {
	fmt.Printf("Failed to describe Instance: %s status:%v \n", TestInstanceId, err)
} else {
	for i := 0; i < len(instanceStatus); i++ {
		fmt.Printf("Instance %s Status: %s \n", instanceStatus[i].InstanceId, instanceStatus[i].Status)
	}
}
Output:

func (*Client) DescribeInstanceStatusWithRaw

func (client *Client) DescribeInstanceStatusWithRaw(args *DescribeInstanceStatusArgs) (response *DescribeInstanceStatusResponse, err error)

func (*Client) DescribeInstanceTypeFamilies

func (client *Client) DescribeInstanceTypeFamilies(args *DescribeInstanceTypeFamiliesArgs) (*DescribeInstanceTypeFamiliesResponse, error)

func (*Client) DescribeInstanceTypes

func (client *Client) DescribeInstanceTypes() (instanceTypes []InstanceTypeItemType, err error)

DescribeInstanceTypes describes all instance types

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/other&describeinstancetypes

func (*Client) DescribeInstanceTypesNew

func (client *Client) DescribeInstanceTypesNew(args *DescribeInstanceTypesArgs) (instanceTypes []InstanceTypeItemType, err error)

support user args

func (*Client) DescribeInstanceVncUrl

func (client *Client) DescribeInstanceVncUrl(args *DescribeInstanceVncUrlArgs) (string, error)

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&describeinstancevncurl

Example
fmt.Printf("DescribeInstanceVncUrl Example\n")

args := DescribeInstanceVncUrlArgs{
	RegionId:   "cn-beijing",
	InstanceId: TestInstanceId,
}

client := NewTestClient()

instanceVncUrl, err := client.DescribeInstanceVncUrl(&args)

if err != nil {
	fmt.Printf("Failed to describe Instance %s vnc url: %v \n", TestInstanceId, err)
} else {
	fmt.Printf("VNC URL = %s \n", instanceVncUrl)
}
Output:

func (*Client) DescribeInstances

func (client *Client) DescribeInstances(args *DescribeInstancesArgs) (instances []InstanceAttributesType, pagination *common.PaginationResult, err error)

DescribeInstances describes instances

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&describeinstances

func (*Client) DescribeInstancesWithRaw

func (client *Client) DescribeInstancesWithRaw(args *DescribeInstancesArgs) (response *DescribeInstancesResponse, err error)

func (*Client) DescribeKeyPairs

func (client *Client) DescribeKeyPairs(args *DescribeKeyPairsArgs) (KeyPairs []KeyPairItemType, pagination *common.PaginationResult, err error)

DescribeKeyPairs describe keypairs

You can read doc at https://help.aliyun.com/document_detail/51773.html?spm=5176.doc51774.6.912.lyE0iX

func (*Client) DescribeKeyPairsWithRaw

func (client *Client) DescribeKeyPairsWithRaw(args *DescribeKeyPairsArgs) (response *DescribeKeyPairsResponse, err error)

func (*Client) DescribeNatGateways

func (client *Client) DescribeNatGateways(args *DescribeNatGatewaysArgs) (natGateways []NatGatewaySetType,
	pagination *common.PaginationResult, err error)

func (*Client) DescribeNatGatewaysWithRaw

func (client *Client) DescribeNatGatewaysWithRaw(args *DescribeNatGatewaysArgs) (response *DescribeNatGatewayResponse, err error)

func (*Client) DescribeNetworkInterfaces

func (client *Client) DescribeNetworkInterfaces(args *DescribeNetworkInterfacesArgs) (resp *DescribeNetworkInterfacesResponse, err error)

func (*Client) DescribeRegions

func (client *Client) DescribeRegions() (regions []RegionType, err error)

DescribeRegions describes regions

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/region&describeregions

func (*Client) DescribeResourceByTags

func (client *Client) DescribeResourceByTags(args *DescribeResourceByTagsArgs) (resources []ResourceItemType, pagination *common.PaginationResult, err error)

DescribeResourceByTags describe resource by tags

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/tags&describeresourcebytags

func (*Client) DescribeResourceByTagsWithRaw

func (client *Client) DescribeResourceByTagsWithRaw(args *DescribeResourceByTagsArgs) (response *DescribeResourceByTagsResponse, err error)

func (*Client) DescribeRouteEntryList

func (client *Client) DescribeRouteEntryList(args *DescribeRouteEntryListArgs) (*DescribeRouteEntryListResponse, error)

DescribeRouteEntryList describes route entries

func (*Client) DescribeRouteTables

func (client *Client) DescribeRouteTables(args *DescribeRouteTablesArgs) (routeTables []RouteTableSetType, pagination *common.PaginationResult, err error)

DescribeRouteTables describes Virtual Routers

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/routertable&describeroutetables

func (*Client) DescribeRouteTablesWithRaw

func (client *Client) DescribeRouteTablesWithRaw(args *DescribeRouteTablesArgs) (response *DescribeRouteTablesResponse, err error)

func (*Client) DescribeRouterInterfaces

func (client *Client) DescribeRouterInterfaces(args *DescribeRouterInterfacesArgs) (response *DescribeRouterInterfacesResponse, err error)

DescribeRouterInterfaces describe Router interfaces

You can read doc at https://help.aliyun.com/document_detail/36032.html?spm=5176.product27706.6.664.EbBsxC

func (*Client) DescribeSecurityGroups

func (client *Client) DescribeSecurityGroups(args *DescribeSecurityGroupsArgs) (securityGroupItems []SecurityGroupItemType, pagination *common.PaginationResult, err error)

DescribeSecurityGroups describes security groups

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/securitygroup&describesecuritygroups

func (*Client) DescribeSecurityGroupsWithRaw

func (client *Client) DescribeSecurityGroupsWithRaw(args *DescribeSecurityGroupsArgs) (response *DescribeSecurityGroupsResponse, err error)

func (*Client) DescribeSnapshots

func (client *Client) DescribeSnapshots(args *DescribeSnapshotsArgs) (snapshots []SnapshotType, pagination *common.PaginationResult, err error)

DescribeSnapshots describe snapshots

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/snapshot&describesnapshots

func (*Client) DescribeSnapshotsWithRaw

func (client *Client) DescribeSnapshotsWithRaw(args *DescribeSnapshotsArgs) (response *DescribeSnapshotsResponse, err error)

func (*Client) DescribeSnatTableEntries

func (client *Client) DescribeSnatTableEntries(args *DescribeSnatTableEntriesArgs) (snatTableEntries []SnatEntrySetType,
	pagination *common.PaginationResult, err error)

func (*Client) DescribeSnatTableEntriesWithRaw

func (client *Client) DescribeSnatTableEntriesWithRaw(args *DescribeSnatTableEntriesArgs) (response *DescribeSnatTableEntriesResponse, err error)

func (*Client) DescribeTags

func (client *Client) DescribeTags(args *DescribeTagsArgs) (tags []TagItemType, pagination *common.PaginationResult, err error)

DescribeResourceByTags describe resource by tags

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/tags&describeresourcebytags

func (*Client) DescribeUserdata

func (client *Client) DescribeUserdata(args *DescribeUserdataArgs) (userData *DescribeUserdataItemType, err error)

DescribeInstanceStatus describes instance status

You can read doc at https://intl.aliyun.com/help/doc-detail/49227.htm

func (*Client) DescribeVRouters

func (client *Client) DescribeVRouters(args *DescribeVRoutersArgs) (vrouters []VRouterSetType, pagination *common.PaginationResult, err error)

DescribeVRouters describes Virtual Routers

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vrouter&describevrouters

func (*Client) DescribeVRoutersWithRaw

func (client *Client) DescribeVRoutersWithRaw(args *DescribeVRoutersArgs) (response *DescribeVRoutersResponse, err error)

func (*Client) DescribeVSwitches

func (client *Client) DescribeVSwitches(args *DescribeVSwitchesArgs) (vswitches []VSwitchSetType, pagination *common.PaginationResult, err error)

DescribeVSwitches describes Virtual Switches

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vswitch&describevswitches

func (*Client) DescribeVSwitchesWithRaw

func (client *Client) DescribeVSwitchesWithRaw(args *DescribeVSwitchesArgs) (response *DescribeVSwitchesResponse, err error)

func (*Client) DescribeVpcs

func (client *Client) DescribeVpcs(args *DescribeVpcsArgs) (vpcs []VpcSetType, pagination *common.PaginationResult, err error)

DescribeInstanceStatus describes instance status

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vpc&describevpcs

func (*Client) DescribeVpcsWithRaw

func (client *Client) DescribeVpcsWithRaw(args *DescribeVpcsArgs) (response *DescribeVpcsResponse, err error)

func (*Client) DescribeZones

func (client *Client) DescribeZones(regionId common.Region) (zones []ZoneType, err error)

DescribeZones describes zones

func (*Client) DescribeZonesWithRaw

func (client *Client) DescribeZonesWithRaw(regionId common.Region) (response *DescribeZonesResponse, err error)

func (*Client) DetachDisk

func (client *Client) DetachDisk(instanceId string, diskId string) error

DetachDisk detaches disk from instance

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&detachdisk

func (*Client) DetachInstanceRamRole

func (client *Client) DetachInstanceRamRole(args *AttachInstancesArgs) (err error)

DetachInstanceRamRole detach instances from ram role

You can read doc at https://help.aliyun.com/document_detail/54245.html?spm=5176.doc54243.6.813.bt8RB3

func (*Client) DetachKeyPair

func (client *Client) DetachKeyPair(args *DetachKeyPairArgs) (err error)

DetachKeyPair keyparis from instances

You can read doc at https://help.aliyun.com/document_detail/51776.html?spm=5176.doc51775.6.914.DJ7Gmq

func (*Client) DetachNetworkInterface

func (client *Client) DetachNetworkInterface(args *DetachNetworkInterfaceArgs) (resp *DetachNetworkInterfaceResponse, err error)

func (*Client) ImportImage

func (client *Client) ImportImage(args *ImportImageArgs) (string, error)

func (*Client) ImportKeyPair

func (client *Client) ImportKeyPair(args *ImportKeyPairArgs) (resp *ImportKeyPairResponse, err error)

ImportKeyPair import keypair

You can read doc at https://help.aliyun.com/document_detail/51774.html?spm=5176.doc51771.6.911.BicQq2

func (*Client) JoinSecurityGroup

func (client *Client) JoinSecurityGroup(instanceId string, securityGroupId string) error

JoinSecurityGroup

You can read doc at https://help.aliyun.com/document_detail/ecs/open-api/instance/joinsecuritygroup.html

func (*Client) LeaveSecurityGroup

func (client *Client) LeaveSecurityGroup(instanceId string, securityGroupId string) error

LeaveSecurityGroup

You can read doc at https://help.aliyun.com/document_detail/ecs/open-api/instance/leavesecuritygroup.html

func (*Client) ModifyDiskAttribute

func (client *Client) ModifyDiskAttribute(args *ModifyDiskAttributeArgs) error

ModifyDiskAttribute modifies disk attribute

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&modifydiskattribute

func (*Client) ModifyEipAddressAttribute

func (client *Client) ModifyEipAddressAttribute(allocationId string, bandwidth int) error

ModifyEipAddressAttribute Modifies EIP attribute

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/network&modifyeipaddressattribute

func (*Client) ModifyForwardEntry

func (client *Client) ModifyForwardEntry(args *ModifyForwardEntryArgs) error

func (*Client) ModifyInstanceAttribute

func (client *Client) ModifyInstanceAttribute(args *ModifyInstanceAttributeArgs) error

ModifyInstanceAttribute modify instance attrbute

You can read doc at https://help.aliyun.com/document_detail/ecs/open-api/instance/modifyinstanceattribute.html

func (*Client) ModifyInstanceAutoReleaseTime

func (client *Client) ModifyInstanceAutoReleaseTime(instanceId, time string) error

对给定的实例设定自动释放时间。

You can read doc at https://help.aliyun.com/document_detail/47576.html

func (*Client) ModifyInstanceAutoRenewAttribute

func (client *Client) ModifyInstanceAutoRenewAttribute(args *ModifyInstanceAutoRenewAttributeArgs) error

You can read doc at https://www.alibabacloud.com/help/doc-detail/52843.htm

func (*Client) ModifyInstanceChargeType

func (client *Client) ModifyInstanceChargeType(args *ModifyInstanceChargeTypeArgs) (*ModifyInstanceChargeTypeResponse, error)

ModifyInstanceChargeType modify instance charge type

You can read doc at https://www.alibabacloud.com/help/doc-detail/25504.htm

func (*Client) ModifyInstanceNetworkSpec

func (client *Client) ModifyInstanceNetworkSpec(args *ModifyInstanceNetworkSpec) error

ModifyInstanceNetworkSpec modifies instance network spec

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/network&modifyinstancenetworkspec

func (*Client) ModifyInstanceSpec

func (client *Client) ModifyInstanceSpec(args *ModifyInstanceSpecArgs) error

ModifyInstanceSpec modify instance specification

Notice: 1. An instance that was successfully modified once cannot be modified again within 5 minutes.

  1. The API only can be used Pay-As-You-Go (PostPaid) instance

You can read doc at https://www.alibabacloud.com/help/doc-detail/57633.htm

func (*Client) ModifyInstanceVpcAttribute

func (client *Client) ModifyInstanceVpcAttribute(args *ModifyInstanceVpcAttributeArgs) error

ModifyInstanceVpcAttribute modify instance vswitchID and private ip address

You can read doc at https://www.alibabacloud.com/help/doc-detail/25504.htm

func (*Client) ModifyNatGatewayAttribute

func (client *Client) ModifyNatGatewayAttribute(args *ModifyNatGatewayAttributeArgs) error

func (*Client) ModifyNatGatewaySpec

func (client *Client) ModifyNatGatewaySpec(args *ModifyNatGatewaySpecArgs) error

func (*Client) ModifyNetworkInterfaceAttribute

func (client *Client) ModifyNetworkInterfaceAttribute(args *ModifyNetworkInterfaceAttributeArgs) (resp *ModifyNetworkInterfaceAttributeResponse, err error)

func (*Client) ModifyRouterInterfaceAttribute

func (client *Client) ModifyRouterInterfaceAttribute(args *ModifyRouterInterfaceAttributeArgs) (response *EcsCommonResponse, err error)

ModifyRouterInterfaceAttribute

You can read doc at https://help.aliyun.com/document_detail/36036.html?spm=5176.doc36037.6.670.Dcz3xS

func (*Client) ModifyRouterInterfaceSpec

func (client *Client) ModifyRouterInterfaceSpec(args *ModifyRouterInterfaceSpecArgs) (response *ModifyRouterInterfaceSpecResponse, err error)

ModifyRouterInterfaceSpec

You can read doc at https://help.aliyun.com/document_detail/36037.html?spm=5176.doc36036.6.669.McKiye

func (*Client) ModifySecurityGroupAttribute

func (client *Client) ModifySecurityGroupAttribute(args *ModifySecurityGroupAttributeArgs) error

ModifySecurityGroupAttribute modifies attribute of security group

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/securitygroup&modifysecuritygroupattribute

func (*Client) ModifySecurityGroupPolicy

func (client *Client) ModifySecurityGroupPolicy(args *ModifySecurityGroupPolicyArgs) error

ModifySecurityGroupPolicy modifies inner access policy of security group

You can read doc at https://www.alibabacloud.com/help/doc-detail/57315.htm

func (*Client) ModifySnatEntry

func (client *Client) ModifySnatEntry(args *ModifySnatEntryArgs) error

func (*Client) ModifyVRouterAttribute

func (client *Client) ModifyVRouterAttribute(args *ModifyVRouterAttributeArgs) error

ModifyVRouterAttribute modifies attribute of Virtual Router

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vrouter&modifyvrouterattribute

func (*Client) ModifyVSwitchAttribute

func (client *Client) ModifyVSwitchAttribute(args *ModifyVSwitchAttributeArgs) error

ModifyVSwitchAttribute modifies attribute of Virtual Private Cloud

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vswitch&modifyvswitchattribute

func (*Client) ModifyVpcAttribute

func (client *Client) ModifyVpcAttribute(args *ModifyVpcAttributeArgs) error

ModifyVpcAttribute modifies attribute of Virtual Private Cloud

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vpc&modifyvpcattribute

func (*Client) NewAssociateEipAddress

func (client *Client) NewAssociateEipAddress(args *AssociateEipAddressArgs) error

func (*Client) NewUnassociateEipAddress

func (client *Client) NewUnassociateEipAddress(args *UnallocateEipAddressArgs) error

func (*Client) ReInitDisk

func (client *Client) ReInitDisk(diskId string) error

ReInitDisk reinitizes disk

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&reinitdisk

func (*Client) RebootInstance

func (client *Client) RebootInstance(instanceId string, forceStop bool) error

RebootInstance reboot instance

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&rebootinstance

func (*Client) ReleaseEipAddress

func (client *Client) ReleaseEipAddress(allocationId string) error

ReleaseEipAddress releases Eip address

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/network&releaseeipaddress

func (*Client) RemoveTags

func (client *Client) RemoveTags(args *RemoveTagsArgs) error

RemoveTags remove tags to resource

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/tags&removetags

func (*Client) ReplaceSystemDisk

func (client *Client) ReplaceSystemDisk(args *ReplaceSystemDiskArgs) (diskId string, err error)

ReplaceSystemDisk replace system disk

You can read doc at https://help.aliyun.com/document_detail/ecs/open-api/disk/replacesystemdisk.html

func (*Client) ResetDisk

func (client *Client) ResetDisk(diskId string, snapshotId string) error

ResetDisk resets disk to original status

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&resetdisk

func (*Client) ResizeDisk

func (client *Client) ResizeDisk(diskId string, sizeGB int) error

ResizeDisk can only support to enlarge disk size You can read doc at https://help.aliyun.com/document_detail/25522.html

func (*Client) RunInstances

func (client *Client) RunInstances(args *RunInstanceArgs) (instanceIdSet []string, err error)

func (*Client) StartInstance

func (client *Client) StartInstance(instanceId string) error

StartInstance starts instance

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&startinstance

func (*Client) StopInstance

func (client *Client) StopInstance(instanceId string, forceStop bool) error

StopInstance stops instance

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&stopinstance

Example
fmt.Printf("Stop Instance Example\n")

client := NewTestClient()

err := client.StopInstance(TestInstanceId, true)

if err != nil {
	fmt.Printf("Failed to stop Instance %s vnc url: %v \n", TestInstanceId, err)
}
Output:

func (*Client) UnassignPrivateIpAddresses

func (client *Client) UnassignPrivateIpAddresses(args *UnassignPrivateIpAddressesArgs) (resp *UnassignPrivateIpAddressesResponse, err error)

func (*Client) UnassociateEipAddress

func (client *Client) UnassociateEipAddress(allocationId string, instanceId string) error

UnassociateEipAddress unallocates Eip Address from instance

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/network&unassociateeipaddress

func (*Client) WaitForAllRouteEntriesAvailable

func (client *Client) WaitForAllRouteEntriesAvailable(vrouterId string, routeTableId string, timeout int) error

WaitForAllRouteEntriesAvailable waits for all route entries to Available status

func (*Client) WaitForDisk

func (client *Client) WaitForDisk(regionId common.Region, diskId string, status DiskStatus, timeout int) error

WaitForDisk waits for disk to given status

func (*Client) WaitForEip

func (client *Client) WaitForEip(regionId common.Region, allocationId string, status EipStatus, timeout int) error

WaitForVSwitchAvailable waits for VSwitch to given status

func (*Client) WaitForImageReady

func (client *Client) WaitForImageReady(regionId common.Region, imageId string, timeout int) error

Wait Image ready

func (*Client) WaitForInstance

func (client *Client) WaitForInstance(instanceId string, status InstanceStatus, timeout int) error

WaitForInstance waits for instance to given status

func (*Client) WaitForInstanceAsyn

func (client *Client) WaitForInstanceAsyn(instanceId string, status InstanceStatus, timeout int) error

WaitForInstance waits for instance to given status when instance.NotFound wait until timeout

func (*Client) WaitForNetworkInterface

func (client *Client) WaitForNetworkInterface(regionId common.Region, eniID string, status string, timeout int) error

WaitForInstance waits for instance to given status

func (*Client) WaitForRouterInterfaceAsyn

func (client *Client) WaitForRouterInterfaceAsyn(regionId common.Region, interfaceId string, status InterfaceStatus, timeout int) error

WaitForRouterInterface waits for router interface to given status

func (*Client) WaitForSnapShotReady

func (client *Client) WaitForSnapShotReady(regionId common.Region, snapshotId string, timeout int) error

WaitForSnapShotReady waits for snapshot ready

func (*Client) WaitForSnatEntryAvailable

func (client *Client) WaitForSnatEntryAvailable(regionId common.Region, snatTableId, snatEntryId string, timeout int) error

WaitForSnatEntryAvailable waits for SnatEntry to available status

func (*Client) WaitForVSwitchAvailable

func (client *Client) WaitForVSwitchAvailable(vpcId string, vswitchId string, timeout int) error

WaitForVSwitchAvailable waits for VSwitch to given status

func (*Client) WaitForVpcAvailable

func (client *Client) WaitForVpcAvailable(regionId common.Region, vpcId string, timeout int) error

WaitForInstance waits for instance to given status

type CopyImageArgs

type CopyImageArgs struct {
	RegionId               common.Region
	ImageId                string
	DestinationRegionId    common.Region
	DestinationImageName   string
	DestinationDescription string
	ClientToken            string
}

type CopyImageResponse

type CopyImageResponse struct {
	common.Response
	ImageId string
}

type CreateDiskArgs

type CreateDiskArgs struct {
	RegionId     common.Region
	ZoneId       string
	DiskName     string
	Description  string
	Encrypted    bool
	DiskCategory DiskCategory
	Size         int
	Tag          map[string]string
	SnapshotId   string
	ClientToken  string
	KMSKeyID     string
	StorageSetId string

	PerformanceLevel DiskPerformanceLevel
}

type CreateDisksResponse

type CreateDisksResponse struct {
	common.Response
	DiskId string
}

type CreateForwardEntryArgs

type CreateForwardEntryArgs struct {
	RegionId       common.Region
	ForwardTableId string
	ExternalIp     string
	ExternalPort   string
	IpProtocol     string
	InternalIp     string
	InternalPort   string
}

type CreateForwardEntryResponse

type CreateForwardEntryResponse struct {
	common.Response
	ForwardEntryId string
}

type CreateImageArgs

type CreateImageArgs struct {
	RegionId     common.Region
	SnapshotId   string
	InstanceId   string
	ImageName    string
	ImageVersion string
	Description  string
	ClientToken  string
}

CreateImageArgs repsents arguments to create image

type CreateImageResponse

type CreateImageResponse struct {
	common.Response

	ImageId string
}

type CreateInstanceArgs

type CreateInstanceArgs struct {
	RegionId                    common.Region
	ZoneId                      string
	ImageId                     string
	InstanceType                string
	SecurityGroupId             string
	InstanceName                string
	Description                 string
	InternetChargeType          common.InternetChargeType
	InternetMaxBandwidthIn      int
	InternetMaxBandwidthOut     int
	HostName                    string
	Password                    string
	IoOptimized                 IoOptimized
	SystemDisk                  SystemDiskType
	DataDisk                    []DataDiskType
	VSwitchId                   string
	PrivateIpAddress            string
	ClientToken                 string
	InstanceChargeType          common.InstanceChargeType
	Period                      int
	PeriodUnit                  common.TimeType
	UserData                    string
	AutoRenew                   bool
	AutoRenewPeriod             int
	SpotStrategy                SpotStrategyType
	SpotPriceLimit              float64
	KeyPairName                 string
	RamRoleName                 string
	SecurityEnhancementStrategy SecurityEnhancementStrategy
}

type CreateInstanceResponse

type CreateInstanceResponse struct {
	common.Response
	InstanceId string
}

type CreateKeyPairArgs

type CreateKeyPairArgs struct {
	RegionId    common.Region
	KeyPairName string
}

type CreateKeyPairResponse

type CreateKeyPairResponse struct {
	common.Response
	KeyPairName        string
	KeyPairFingerPrint string
	PrivateKeyBody     string
}

type CreateNatGatewayArgs

type CreateNatGatewayArgs struct {
	RegionId         common.Region
	VpcId            string
	VSwitchId        string
	Spec             string
	BandwidthPackage []BandwidthPackageType
	Name             string
	Description      string
	NatType          NatType
	ClientToken      string
}

type CreateNatGatewayResponse

type CreateNatGatewayResponse struct {
	common.Response
	NatGatewayId        string
	ForwardTableIds     ForwardTableIdType
	BandwidthPackageIds BandwidthPackageIdType
}

type CreateNetworkInterfaceArgs

type CreateNetworkInterfaceArgs struct {
	RegionId                       common.Region
	VSwitchId                      string
	PrimaryIpAddress               string // optional
	SecurityGroupId                string
	NetworkInterfaceName           string            // optional
	Description                    string            // optional
	ClientToken                    string            // optional
	Tag                            map[string]string // optional
	ResourceGroupId                string            // optional
	SecurityGroupIds               []string          `query:"list"` // optional
	PrivateIpAddress               []string          `query:"list"` // optional
	SecondaryPrivateIpAddressCount int
}

type CreateNetworkInterfaceResponse

type CreateNetworkInterfaceResponse struct {
	common.Response
	NetworkInterfaceId string
}

type CreateRouteEntryArgs

type CreateRouteEntryArgs struct {
	RouteTableId         string
	DestinationCidrBlock string
	NextHopType          NextHopType
	NextHopId            string
	ClientToken          string
}

type CreateRouteEntryResponse

type CreateRouteEntryResponse struct {
	common.Response
}

type CreateRouterInterfaceArgs

type CreateRouterInterfaceArgs struct {
	RegionId                 common.Region
	OppositeRegionId         common.Region
	RouterType               RouterType
	OppositeRouterType       RouterType
	RouterId                 string
	OppositeRouterId         string
	Role                     Role
	Spec                     Spec
	AccessPointId            string
	OppositeAccessPointId    string
	OppositeInterfaceId      string
	OppositeInterfaceOwnerId string
	Name                     string
	Description              string
	HealthCheckSourceIp      string
	HealthCheckTargetIp      string
}

type CreateRouterInterfaceResponse

type CreateRouterInterfaceResponse struct {
	common.Response
	RouterInterfaceId string
}

type CreateSecurityGroupArgs

type CreateSecurityGroupArgs struct {
	RegionId          common.Region
	SecurityGroupName string
	Description       string
	VpcId             string
	ClientToken       string
}

type CreateSecurityGroupResponse

type CreateSecurityGroupResponse struct {
	common.Response

	SecurityGroupId string
}

type CreateSnapshotArgs

type CreateSnapshotArgs struct {
	DiskId       string
	SnapshotName string
	Description  string
	ClientToken  string
}

type CreateSnapshotResponse

type CreateSnapshotResponse struct {
	common.Response
	SnapshotId string
}

type CreateSnatEntryArgs

type CreateSnatEntryArgs struct {
	RegionId        common.Region
	SnatTableId     string
	SourceVSwitchId string
	SnatIp          string
	SourceCIDR      string
}

type CreateSnatEntryResponse

type CreateSnatEntryResponse struct {
	common.Response
	SnatEntryId string
}

type CreateVSwitchArgs

type CreateVSwitchArgs struct {
	ZoneId      string
	CidrBlock   string
	VpcId       string
	VSwitchName string
	Description string
	ClientToken string
}

type CreateVSwitchResponse

type CreateVSwitchResponse struct {
	common.Response
	VSwitchId string
}

type CreateVpcArgs

type CreateVpcArgs struct {
	RegionId    common.Region
	CidrBlock   string //192.168.0.0/16 or 172.16.0.0/16 (default)
	VpcName     string
	Description string
	ClientToken string
}

type CreateVpcResponse

type CreateVpcResponse struct {
	common.Response
	VpcId        string
	VRouterId    string
	RouteTableId string
}

type DataDiskType

type DataDiskType struct {
	Size               int
	Category           DiskCategory //Enum cloud, ephemeral, ephemeral_ssd
	SnapshotId         string
	DiskName           string
	Description        string
	Device             string
	DeleteWithInstance bool
}

type DeleteBandwidthPackageArgs

type DeleteBandwidthPackageArgs struct {
	RegionId           common.Region
	BandwidthPackageId string
}

type DeleteBandwidthPackageResponse

type DeleteBandwidthPackageResponse struct {
	common.Response
}

type DeleteDiskArgs

type DeleteDiskArgs struct {
	DiskId string
}

type DeleteDiskResponse

type DeleteDiskResponse struct {
	common.Response
}

type DeleteForwardEntryArgs

type DeleteForwardEntryArgs struct {
	RegionId       common.Region
	ForwardTableId string
	ForwardEntryId string
}

type DeleteForwardEntryResponse

type DeleteForwardEntryResponse struct {
	common.Response
}

type DeleteImageArgs

type DeleteImageArgs struct {
	RegionId common.Region
	ImageId  string
	Force    bool
}

type DeleteImageResponse

type DeleteImageResponse struct {
	common.Response
}

type DeleteInstanceArgs

type DeleteInstanceArgs struct {
	InstanceId string
}

type DeleteInstanceResponse

type DeleteInstanceResponse struct {
	common.Response
}

type DeleteKeyPairsArgs

type DeleteKeyPairsArgs struct {
	RegionId     common.Region
	KeyPairNames string
}

type DeleteNatGatewayArgs

type DeleteNatGatewayArgs struct {
	RegionId     common.Region
	NatGatewayId string
}

type DeleteNatGatewayResponse

type DeleteNatGatewayResponse struct {
	common.Response
}

type DeleteNetworkInterfaceArgs

type DeleteNetworkInterfaceArgs struct {
	RegionId           common.Region
	NetworkInterfaceId string
}

type DeleteNetworkInterfaceResponse

type DeleteNetworkInterfaceResponse struct {
	common.Response
}

type DeleteRouteEntryArgs

type DeleteRouteEntryArgs struct {
	RouteTableId         string
	DestinationCidrBlock string
	NextHopId            string
}

type DeleteRouteEntryResponse

type DeleteRouteEntryResponse struct {
	common.Response
}

type DeleteSecurityGroupArgs

type DeleteSecurityGroupArgs struct {
	RegionId        common.Region
	SecurityGroupId string
}

type DeleteSecurityGroupResponse

type DeleteSecurityGroupResponse struct {
	common.Response
}

type DeleteSnapshotArgs

type DeleteSnapshotArgs struct {
	SnapshotId string
}

type DeleteSnapshotResponse

type DeleteSnapshotResponse struct {
	common.Response
}

type DeleteSnatEntryArgs

type DeleteSnatEntryArgs struct {
	RegionId    common.Region
	SnatTableId string
	SnatEntryId string
}

type DeleteSnatEntryResponse

type DeleteSnatEntryResponse struct {
	common.Response
}

type DeleteVSwitchArgs

type DeleteVSwitchArgs struct {
	VSwitchId string
}

type DeleteVSwitchResponse

type DeleteVSwitchResponse struct {
	common.Response
}

type DeleteVpcArgs

type DeleteVpcArgs struct {
	VpcId string
}

type DeleteVpcResponse

type DeleteVpcResponse struct {
	common.Response
}

type DescribeAvailableResourceArgs

type DescribeAvailableResourceArgs struct {
	RegionId            string
	DestinationResource string
	ZoneId              string
	InstanceChargeType  string
	SpotStrategy        string
	IoOptimized         string
	InstanceType        string
	SystemDiskCategory  string
	DataDiskCategory    string
	NetworkCategory     string
}

type DescribeAvailableResourceResponse

type DescribeAvailableResourceResponse struct {
	common.Response
	AvailableZones struct {
		AvailableZone []AvailableZoneType
	}
}

type DescribeBandwidthPackageType

type DescribeBandwidthPackageType struct {
	Bandwidth          string
	BandwidthPackageId string
	IpCount            string
	PublicIpAddresses  struct {
		PublicIpAddresse []PublicIpAddresseType
	}

	ZoneId string
}

type DescribeBandwidthPackagesArgs

type DescribeBandwidthPackagesArgs struct {
	RegionId common.Region
	common.Pagination
	BandwidthPackageId string
	NatGatewayId       string
}

type DescribeBandwidthPackagesResponse

type DescribeBandwidthPackagesResponse struct {
	common.Response
	common.PaginationResult
	BandwidthPackages struct {
		BandwidthPackage []DescribeBandwidthPackageType
	}
}

type DescribeDiskMonitorDataArgs

type DescribeDiskMonitorDataArgs struct {
	DiskId    string
	StartTime util.ISO6801Time
	EndTime   util.ISO6801Time
	Period    int //Default 60s
}

type DescribeDiskMonitorDataResponse

type DescribeDiskMonitorDataResponse struct {
	common.Response
	TotalCount  int
	MonitorData struct {
		DiskMonitorData []DiskMonitorDataType
	}
}

type DescribeDisksArgs

type DescribeDisksArgs struct {
	RegionId           common.Region
	ZoneId             string
	DiskIds            []string
	InstanceId         string
	DiskType           DiskType     //enum for all(default) | system | data
	Category           DiskCategory //enum for all(default) | cloud | ephemeral
	Status             DiskStatus   //enum for In_use | Available | Attaching | Detaching | Creating | ReIniting | All(default)
	SnapshotId         string
	DiskName           string
	Portable           *bool //optional
	DeleteWithInstance *bool //optional
	DeleteAutoSnapshot *bool //optional
	EnableAutoSnapshot *bool //optional
	DiskChargeType     DiskChargeType
	Tag                map[string]string
	common.Pagination
}

A DescribeDisksArgs defines the arguments to describe disks

type DescribeDisksResponse

type DescribeDisksResponse struct {
	common.Response
	common.PaginationResult
	RegionId common.Region
	Disks    struct {
		Disk []DiskItemType
	}
}

type DescribeEipAddressesArgs

type DescribeEipAddressesArgs struct {
	RegionId               common.Region
	Status                 EipStatus //enum Associating | Unassociating | InUse | Available
	EipAddress             string
	AllocationId           string
	AssociatedInstanceType AssociatedInstanceType //enum EcsInstance | SlbInstance | Nat | HaVip | NetworkInterface
	AssociatedInstanceId   string                 //绑定的资源的Id。 这是一个过滤器性质的参数,若不指定,则表示不适用该条件对结果进行过滤。 如果要使用该过滤器,必须同时使用AssociatedInstanceType。若InstanceType为EcsInstance,则此处填写ECS实例Id。若InstanceType为SlbInstance,则此处填写VPC类型的私网SLB 的实例ID。若InstanceType为Nat,则此处填写NAT 的实例ID。。若InstanceType为HaVip,则此处填写HaVipId。
	common.Pagination
}

type DescribeEipAddressesResponse

type DescribeEipAddressesResponse struct {
	common.Response
	common.PaginationResult
	EipAddresses struct {
		EipAddress []EipAddressSetType
	}
}

type DescribeEipMonitorDataArgs

type DescribeEipMonitorDataArgs struct {
	AllocationId string
	StartTime    util.ISO6801Time
	EndTime      util.ISO6801Time
	Period       int //Default 60s
}

type DescribeEipMonitorDataResponse

type DescribeEipMonitorDataResponse struct {
	common.Response
	EipMonitorDatas struct {
		EipMonitorData []EipMonitorDataType
	}
}

type DescribeForwardTableEntriesArgs

type DescribeForwardTableEntriesArgs struct {
	RegionId       common.Region
	ForwardTableId string
	common.Pagination
}

type DescribeForwardTableEntriesResponse

type DescribeForwardTableEntriesResponse struct {
	common.Response
	common.PaginationResult
	ForwardTableEntries struct {
		ForwardTableEntry []ForwardTableEntrySetType
	}
}

type DescribeImagesArgs

type DescribeImagesArgs struct {
	RegionId        common.Region
	ImageId         string
	SnapshotId      string
	ImageName       string
	Status          ImageStatus
	ImageOwnerAlias ImageOwnerAlias
	common.Pagination
}

DescribeImagesArgs repsents arguments to describe images

type DescribeImagesResponse

type DescribeImagesResponse struct {
	common.Response
	common.PaginationResult

	RegionId common.Region
	Images   struct {
		Image []ImageType
	}
}

type DescribeInstanceAttributeArgs

type DescribeInstanceAttributeArgs struct {
	InstanceId string
}

type DescribeInstanceAttributeResponse

type DescribeInstanceAttributeResponse struct {
	common.Response
	InstanceAttributesType
}

type DescribeInstanceAutoRenewAttributeArgs

type DescribeInstanceAutoRenewAttributeArgs struct {
	InstanceId string
	RegionId   common.Region
}

type DescribeInstanceAutoRenewAttributeResponse

type DescribeInstanceAutoRenewAttributeResponse struct {
	common.Response
	InstanceRenewAttributes struct {
		InstanceRenewAttribute []InstanceRenewAttribute
	}
}

type DescribeInstanceMonitorDataArgs

type DescribeInstanceMonitorDataArgs struct {
	InstanceId string
	StartTime  util.ISO6801Time
	EndTime    util.ISO6801Time
	Period     int //Default 60s
}

type DescribeInstanceMonitorDataResponse

type DescribeInstanceMonitorDataResponse struct {
	common.Response
	MonitorData struct {
		InstanceMonitorData []InstanceMonitorDataType
	}
}

type DescribeInstanceRamRoleResponse

type DescribeInstanceRamRoleResponse struct {
	common.Response
	InstanceRamRoleSets struct {
		InstanceRamRoleSet []InstanceRamRoleSetType
	}
}

type DescribeInstanceStatusArgs

type DescribeInstanceStatusArgs struct {
	RegionId common.Region
	ZoneId   string
	common.Pagination
}

type DescribeInstanceStatusResponse

type DescribeInstanceStatusResponse struct {
	common.Response
	common.PaginationResult
	InstanceStatuses struct {
		InstanceStatus []InstanceStatusItemType
	}
}

type DescribeInstanceTypeFamiliesArgs

type DescribeInstanceTypeFamiliesArgs struct {
	RegionId   common.Region
	Generation string
}

type DescribeInstanceTypeFamiliesResponse

type DescribeInstanceTypeFamiliesResponse struct {
	common.Response

	InstanceTypeFamilies InstanceTypeFamilies
}

type DescribeInstanceTypesArgs

type DescribeInstanceTypesArgs struct {
	InstanceTypeFamily string
	InstanceTypes      []string `query:"list"`
}

type DescribeInstanceTypesResponse

type DescribeInstanceTypesResponse struct {
	common.Response
	InstanceTypes struct {
		InstanceType []InstanceTypeItemType
	}
}

type DescribeInstanceVncUrlArgs

type DescribeInstanceVncUrlArgs struct {
	RegionId   common.Region
	InstanceId string
}

type DescribeInstanceVncUrlResponse

type DescribeInstanceVncUrlResponse struct {
	common.Response
	VncUrl string
}

type DescribeInstancesArgs

type DescribeInstancesArgs struct {
	RegionId            common.Region
	VpcId               string
	VSwitchId           string
	ZoneId              string
	InstanceIds         string
	InstanceNetworkType string
	InstanceName        string
	Status              InstanceStatus
	PrivateIpAddresses  string
	InnerIpAddresses    string
	PublicIpAddresses   string
	SecurityGroupId     string
	Tag                 map[string]string
	InstanceType        string
	SpotStrategy        SpotStrategyType
	common.Pagination
}

type DescribeInstancesResponse

type DescribeInstancesResponse struct {
	common.Response
	common.PaginationResult
	Instances struct {
		Instance []InstanceAttributesType
	}
}

type DescribeKeyPairsArgs

type DescribeKeyPairsArgs struct {
	RegionId           common.Region
	KeyPairFingerPrint string
	KeyPairName        string
	common.Pagination
}

type DescribeKeyPairsResponse

type DescribeKeyPairsResponse struct {
	common.Response
	common.PaginationResult
	RegionId common.Region
	KeyPairs struct {
		KeyPair []KeyPairItemType
	}
}

type DescribeNatGatewayResponse

type DescribeNatGatewayResponse struct {
	common.Response
	common.PaginationResult
	NatGateways struct {
		NatGateway []NatGatewaySetType
	}
}

type DescribeNatGatewaysArgs

type DescribeNatGatewaysArgs struct {
	RegionId     common.Region
	NatGatewayId string
	VpcId        string
	common.Pagination
}

type DescribeNetworkInterfacesArgs

type DescribeNetworkInterfacesArgs struct {
	RegionId             common.Region
	VSwitchId            string
	VpcID                string
	PrimaryIpAddress     string
	PrivateIpAddress     []string `query:"list"`
	SecurityGroupId      string
	NetworkInterfaceName string
	Type                 string
	InstanceId           string
	NetworkInterfaceId   []string `query:"list"`
	PageNumber           int
	PageSize             int
}

type DescribeNetworkInterfacesResponse

type DescribeNetworkInterfacesResponse struct {
	common.Response
	NetworkInterfaceSets struct {
		NetworkInterfaceSet []NetworkInterfaceType
	}
	TotalCount int
	PageNumber int
	PageSize   int
}

type DescribeRegionsArgs

type DescribeRegionsArgs struct {
}

type DescribeRegionsResponse

type DescribeRegionsResponse struct {
	common.Response
	Regions struct {
		Region []RegionType
	}
}

type DescribeResourceByTagsArgs

type DescribeResourceByTagsArgs struct {
	ResourceType TagResourceType //image, instance, snapshot or disk
	RegionId     common.Region
	Tag          map[string]string
	common.Pagination
}

type DescribeResourceByTagsResponse

type DescribeResourceByTagsResponse struct {
	common.Response
	common.PaginationResult
	Resources struct {
		Resource []ResourceItemType
	}
}

type DescribeRouteEntryListArgs

type DescribeRouteEntryListArgs struct {
	RegionId             string
	RouteTableId         string
	DestinationCidrBlock string
	IpVersion            string
	MaxResult            int
	NextHopId            string
	NextHopType          string
	NextToken            string
	RouteEntryId         string
	RouteEntryName       string
	RouteEntryType       string
}

type DescribeRouteEntryListResponse

type DescribeRouteEntryListResponse struct {
	common.Response
	NextToken   string
	RouteEntrys struct {
		RouteEntry []RouteEntry
	}
}

type DescribeRouteTablesArgs

type DescribeRouteTablesArgs struct {
	VRouterId    string
	RouteTableId string
	common.Pagination
}

type DescribeRouteTablesResponse

type DescribeRouteTablesResponse struct {
	common.Response
	common.PaginationResult
	RouteTables struct {
		RouteTable []RouteTableSetType
	}
}

type DescribeRouterInterfacesArgs

type DescribeRouterInterfacesArgs struct {
	RegionId common.Region
	common.Pagination
	Filter []Filter
}

type DescribeRouterInterfacesResponse

type DescribeRouterInterfacesResponse struct {
	RouterInterfaceSet struct {
		RouterInterfaceType []RouterInterfaceItemType
	}
	common.PaginationResult
}

type DescribeSecurityGroupAttributeArgs

type DescribeSecurityGroupAttributeArgs struct {
	SecurityGroupId string
	RegionId        common.Region
	NicType         NicType   //enum for internet (default) |intranet
	Direction       Direction // enum ingress egress
}

type DescribeSecurityGroupAttributeResponse

type DescribeSecurityGroupAttributeResponse struct {
	common.Response

	SecurityGroupId   string
	SecurityGroupName string
	RegionId          common.Region
	Description       string
	Permissions       struct {
		Permission []PermissionType
	}
	VpcId             string
	InnerAccessPolicy GroupInnerAccessPolicy
}

type DescribeSecurityGroupsArgs

type DescribeSecurityGroupsArgs struct {
	RegionId         common.Region
	VpcId            string
	SecurityGroupIds []string
	common.Pagination
}

type DescribeSecurityGroupsResponse

type DescribeSecurityGroupsResponse struct {
	common.Response
	common.PaginationResult

	RegionId       common.Region
	SecurityGroups struct {
		SecurityGroup []SecurityGroupItemType
	}
}

type DescribeSnapshotsArgs

type DescribeSnapshotsArgs struct {
	RegionId    common.Region
	InstanceId  string
	DiskId      string
	SnapshotIds []string //["s-xxxxxxxxx", "s-yyyyyyyyy", ..."s-zzzzzzzzz"]
	common.Pagination
}

type DescribeSnapshotsResponse

type DescribeSnapshotsResponse struct {
	common.Response
	common.PaginationResult
	Snapshots struct {
		Snapshot []SnapshotType
	}
}

type DescribeSnatTableEntriesArgs

type DescribeSnatTableEntriesArgs struct {
	RegionId        common.Region
	SnatTableId     string
	SnatEntryId     string
	SnatEntryName   string
	SnatIp          string
	SourceCIDR      string
	SourceVSwitchId string
	common.Pagination
}

type DescribeSnatTableEntriesResponse

type DescribeSnatTableEntriesResponse struct {
	common.Response
	common.PaginationResult
	SnatTableEntries struct {
		SnatTableEntry []SnatEntrySetType
	}
}

type DescribeTagsArgs

type DescribeTagsArgs struct {
	RegionId     common.Region
	ResourceType TagResourceType //image, instance, snapshot or disk
	ResourceId   string
	Tag          map[string]string
	common.Pagination
}

type DescribeTagsResponse

type DescribeTagsResponse struct {
	common.Response
	common.PaginationResult
	Tags struct {
		Tag []TagItemType
	}
}

type DescribeUserdataArgs

type DescribeUserdataArgs struct {
	RegionId   common.Region
	InstanceId string
}

type DescribeUserdataItemType

type DescribeUserdataItemType struct {
	UserData   string
	InstanceId string
	RegionId   string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&instancestatusitemtype

type DescribeUserdataResponse

type DescribeUserdataResponse struct {
	common.Response
	DescribeUserdataItemType
}

type DescribeVRoutersArgs

type DescribeVRoutersArgs struct {
	VRouterId string
	RegionId  common.Region
	common.Pagination
}

type DescribeVRoutersResponse

type DescribeVRoutersResponse struct {
	common.Response
	common.PaginationResult
	VRouters struct {
		VRouter []VRouterSetType
	}
}

type DescribeVSwitchesArgs

type DescribeVSwitchesArgs struct {
	RegionId  common.Region
	VpcId     string
	VSwitchId string
	ZoneId    string
	common.Pagination
}

type DescribeVSwitchesResponse

type DescribeVSwitchesResponse struct {
	common.Response
	common.PaginationResult
	VSwitches struct {
		VSwitch []VSwitchSetType
	}
}

type DescribeVpcsArgs

type DescribeVpcsArgs struct {
	VpcId    string
	RegionId common.Region
	common.Pagination
}

type DescribeVpcsResponse

type DescribeVpcsResponse struct {
	common.Response
	common.PaginationResult
	Vpcs struct {
		Vpc []VpcSetType
	}
}

type DescribeZonesArgs

type DescribeZonesArgs struct {
	RegionId common.Region
}

type DescribeZonesResponse

type DescribeZonesResponse struct {
	common.Response
	Zones struct {
		Zone []ZoneType
	}
}

type DetachDiskArgs

type DetachDiskArgs struct {
	InstanceId string
	DiskId     string
}

type DetachDiskResponse

type DetachDiskResponse struct {
	common.Response
}

type DetachKeyPairArgs

type DetachKeyPairArgs struct {
	RegionId    common.Region
	KeyPairName string
	InstanceIds string
}

type DetachNetworkInterfaceArgs

type DetachNetworkInterfaceArgs AttachNetworkInterfaceArgs

type DetachNetworkInterfaceResponse

type DetachNetworkInterfaceResponse common.Response

type Direction

type Direction string

type DiskCategory

type DiskCategory string

Categories of disks

type DiskChargeType

type DiskChargeType string

Charge type of disks

type DiskDeviceMapping

type DiskDeviceMapping struct {
	SnapshotId string
	//Why Size Field is string-type.
	Size string
	// Now the key Size change to DiskImageSize
	DiskImageSize string
	Device        string
	//For import images
	Format    string
	OSSBucket string
	OSSObject string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&diskdevicemapping

type DiskItemType

type DiskItemType struct {
	DiskId             string
	RegionId           common.Region
	ZoneId             string
	DiskName           string
	Description        string
	Type               DiskType
	Encrypted          bool
	Category           DiskCategory
	Size               int
	ImageId            string
	SourceSnapshotId   string
	ProductCode        string
	Portable           bool
	Status             DiskStatus
	OperationLocks     OperationLocksType
	InstanceId         string
	Device             string
	DeleteWithInstance bool
	DeleteAutoSnapshot bool
	EnableAutoSnapshot bool
	CreationTime       util.ISO6801Time
	AttachedTime       util.ISO6801Time
	DetachedTime       util.ISO6801Time
	DiskChargeType     DiskChargeType
	StorageSetId       string
	PerformanceLevel   DiskPerformanceLevel
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&diskitemtype

type DiskMonitorDataType

type DiskMonitorDataType struct {
	DiskId    string
	IOPSRead  int
	IOPSWrite int
	IOPSTotal int
	BPSRead   int
	BPSWrite  int
	BPSTotal  int
	TimeStamp util.ISO6801Time
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&diskmonitordatatype

type DiskPerformanceLevel

type DiskPerformanceLevel string

Performance Level of disks

type DiskStatus

type DiskStatus string

Status of disks

type DiskType

type DiskType string

Types of disks

type EcsCommonResponse

type EcsCommonResponse struct {
	common.Response
}

type EipAddressAssociateType

type EipAddressAssociateType struct {
	AllocationId       string
	IpAddress          string
	Bandwidth          int
	InternetChargeType common.InternetChargeType
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&eipaddressassociatetype

type EipAddressSetType

type EipAddressSetType struct {
	RegionId           common.Region
	IpAddress          string
	AllocationId       string
	Status             EipStatus
	InstanceId         string
	InstanceType       string
	Bandwidth          string // Why string
	PrivateIpAddress   string
	InternetChargeType common.InternetChargeType
	OperationLocks     OperationLocksType
	AllocationTime     util.ISO6801Time
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&eipaddresssettype

type EipInstanceType

type EipInstanceType string

type EipMonitorDataType

type EipMonitorDataType struct {
	EipRX        int
	EipTX        int
	EipFlow      int
	EipBandwidth int
	EipPackets   int
	TimeStamp    util.ISO6801Time
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&eipmonitordatatype

type EipStatus

type EipStatus string

Status of disks

type Filter

type Filter struct {
	Key   string
	Value []string
}

type ForwardTableEntrySetType

type ForwardTableEntrySetType struct {
	RegionId       common.Region
	ExternalIp     string
	ExternalPort   string
	ForwardEntryId string
	ForwardTableId string
	InternalIp     string
	InternalPort   string
	IpProtocol     string
	Status         string
}

type ForwardTableIdType

type ForwardTableIdType struct {
	ForwardTableId []string
}

type GroupInnerAccessPolicy

type GroupInnerAccessPolicy string

type ImageFormatType

type ImageFormatType string

type ImageOwnerAlias

type ImageOwnerAlias string

ImageOwnerAlias represents image owner

type ImageSharePermissionResponse

type ImageSharePermissionResponse struct {
	common.Response
	ImageId  string
	RegionId string
	Accounts struct {
		Account []AccountType
	}
	TotalCount int
	PageNumber int
	PageSize   int
}

type ImageStatus

type ImageStatus string

type ImageType

type ImageType struct {
	ImageId            string
	ImageVersion       string
	Architecture       string
	ImageName          string
	Description        string
	Size               int
	ImageOwnerAlias    string
	OSName             string
	OSType             string
	Platform           string
	DiskDeviceMappings struct {
		DiskDeviceMapping []DiskDeviceMapping
	}
	ProductCode          string
	IsSubscribed         bool
	IsSelfShared         string
	IsCopied             bool
	IsSupportIoOptimized bool
	Progress             string
	Usage                ImageUsage
	Status               ImageStatus
	CreationTime         util.ISO6801Time
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&imagetype

type ImageUsage

type ImageUsage string

type ImportImageArgs

type ImportImageArgs struct {
	RegionId           common.Region
	ImageName          string
	ImageVersion       string
	Description        string
	ClientToken        string
	Architecture       string
	OSType             string
	Platform           string
	DiskDeviceMappings struct {
		DiskDeviceMapping []DiskDeviceMapping
	}
}

ImportImageArgs repsents arguments to import image from oss

type ImportImageResponse

type ImportImageResponse struct {
	common.Response
	RegionId     common.Region
	ImageId      string
	ImportTaskId string
}

type ImportKeyPairArgs

type ImportKeyPairArgs struct {
	RegionId      common.Region
	PublicKeyBody string
	KeyPairName   string
}

type ImportKeyPairResponse

type ImportKeyPairResponse struct {
	common.Response
	KeyPairName        string
	KeyPairFingerPrint string
}

type InstanceAttributesType

type InstanceAttributesType struct {
	InstanceId         string
	InstanceName       string
	Description        string
	ImageId            string
	RegionId           common.Region
	ZoneId             string
	CPU                int
	Memory             int
	ClusterId          string
	InstanceType       string
	InstanceTypeFamily string
	HostName           string
	SerialNumber       string
	Status             InstanceStatus
	OperationLocks     OperationLocksType
	SecurityGroupIds   struct {
		SecurityGroupId []string
	}
	PublicIpAddress         IpAddressSetType
	InnerIpAddress          IpAddressSetType
	InstanceNetworkType     string //enum Classic | Vpc
	InternetMaxBandwidthIn  int
	InternetMaxBandwidthOut int
	InternetChargeType      common.InternetChargeType
	CreationTime            util.ISO6801Time //time.Time
	VpcAttributes           VpcAttributesType
	EipAddress              EipAddressAssociateType
	IoOptimized             StringOrBool
	InstanceChargeType      common.InstanceChargeType
	ExpiredTime             util.ISO6801Time
	Tags                    struct {
		Tag []TagItemType
	}
	SpotStrategy   SpotStrategyType
	SpotPriceLimit float64
	KeyPairName    string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&instanceattributestype

type InstanceIdSets

type InstanceIdSets struct {
	InstanceIdSet []string
}

type InstanceMonitorDataType

type InstanceMonitorDataType struct {
	InstanceId        string
	CPU               int
	IntranetRX        int
	IntranetTX        int
	IntranetBandwidth int
	InternetRX        int
	InternetTX        int
	InternetBandwidth int
	IOPSRead          int
	IOPSWrite         int
	BPSRead           int
	BPSWrite          int
	TimeStamp         util.ISO6801Time
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&instancemonitordatatype

type InstanceRamRoleSetType

type InstanceRamRoleSetType struct {
	InstanceId  string
	RamRoleName string
}

type InstanceRenewAttribute

type InstanceRenewAttribute struct {
	InstanceId       string
	Duration         int
	AutoRenewEnabled bool
	PeriodUnit       string
	RenewalStatus    RenewalStatus
}

type InstanceStatus

type InstanceStatus string

InstanceStatus represents instance status

type InstanceStatusItemType

type InstanceStatusItemType struct {
	InstanceId string
	Status     InstanceStatus
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&instancestatusitemtype

type InstanceTypeFamilies

type InstanceTypeFamilies struct {
	InstanceTypeFamily []InstanceTypeFamily
}

type InstanceTypeFamily

type InstanceTypeFamily struct {
	InstanceTypeFamilyId string
	Generation           string
}

type InstanceTypeItemType

type InstanceTypeItemType struct {
	InstanceTypeId              string
	CpuCoreCount                int
	MemorySize                  float64
	InstanceTypeFamily          string
	GPUAmount                   int
	GPUSpec                     string
	InitialCredit               int
	BaselineCredit              int
	EniQuantity                 int
	EniPrivateIpAddressQuantity int
	LocalStorageCapacity        int
	LocalStorageAmount          int
	LocalStorageCategory        string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&instancetypeitemtype

type InterfaceStatus

type InterfaceStatus string

type IoOptimized

type IoOptimized string

type IpAddressSetType

type IpAddressSetType struct {
	IpAddress []string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&ipaddresssettype

type IpListItem

type IpListItem struct {
	IpAddress    string
	AllocationId string
	UsingStatus  string
}

type IpListsType

type IpListsType struct {
	IpList []IpListItem
}

type IpProtocol

type IpProtocol string

type KeyPairItemType

type KeyPairItemType struct {
	KeyPairName        string
	KeyPairFingerPrint string
}

type LockReason

type LockReason string

type LockReasonType

type LockReasonType struct {
	LockReason LockReason
}

type ModifyDiskAttributeArgs

type ModifyDiskAttributeArgs struct {
	DiskId             string
	DiskName           string
	Description        string
	DeleteWithInstance *bool
	DeleteAutoSnapshot *bool
	EnableAutoSnapshot *bool
}

type ModifyDiskAttributeResponse

type ModifyDiskAttributeResponse struct {
	common.Response
}

type ModifyEipAddressAttributeArgs

type ModifyEipAddressAttributeArgs struct {
	AllocationId string
	Bandwidth    int
}

type ModifyEipAddressAttributeResponse

type ModifyEipAddressAttributeResponse struct {
	common.Response
}

type ModifyForwardEntryArgs

type ModifyForwardEntryArgs struct {
	RegionId       common.Region
	ForwardTableId string
	ForwardEntryId string
	ExternalIp     string
	IpProtocol     string
	ExternalPort   string
	InternalIp     string
	InternalPort   string
}

type ModifyForwardEntryResponse

type ModifyForwardEntryResponse struct {
	common.Response
}

type ModifyImageSharePermissionArgs

type ModifyImageSharePermissionArgs struct {
	RegionId      common.Region
	ImageId       string
	AddAccount    []string
	RemoveAccount []string
}

ModifyImageSharePermission repsents arguments to share image

type ModifyInstanceAttributeArgs

type ModifyInstanceAttributeArgs struct {
	InstanceId   string
	InstanceName string
	Description  string
	Password     string
	HostName     string
	UserData     string
}

type ModifyInstanceAttributeResponse

type ModifyInstanceAttributeResponse struct {
	common.Response
}

type ModifyInstanceAutoReleaseTimeArgs

type ModifyInstanceAutoReleaseTimeArgs struct {
	InstanceId      string
	AutoReleaseTime string
}

type ModifyInstanceAutoReleaseTimeResponse

type ModifyInstanceAutoReleaseTimeResponse struct {
	common.Response
}

type ModifyInstanceAutoRenewAttributeArgs

type ModifyInstanceAutoRenewAttributeArgs struct {
	InstanceId    string
	RegionId      common.Region
	Duration      int
	AutoRenew     bool
	RenewalStatus RenewalStatus
}

type ModifyInstanceChargeTypeArgs

type ModifyInstanceChargeTypeArgs struct {
	InstanceIds      string
	RegionId         common.Region
	Period           int
	PeriodUnit       common.TimeType
	IncludeDataDisks bool
	DryRun           bool
	AutoPay          bool
	ClientToken      string
}

type ModifyInstanceChargeTypeResponse

type ModifyInstanceChargeTypeResponse struct {
	common.Response
	Order string
}

type ModifyInstanceNetworkSpec

type ModifyInstanceNetworkSpec struct {
	InstanceId              string
	InternetMaxBandwidthOut *int
	InternetMaxBandwidthIn  *int
	NetworkChargeType       common.InternetChargeType
}

type ModifyInstanceNetworkSpecResponse

type ModifyInstanceNetworkSpecResponse struct {
	common.Response
}

type ModifyInstanceSpecArgs

type ModifyInstanceSpecArgs struct {
	InstanceId              string
	InstanceType            string
	InternetMaxBandwidthOut *int
	InternetMaxBandwidthIn  *int
	ClientToken             string
}

type ModifyInstanceSpecResponse

type ModifyInstanceSpecResponse struct {
	common.Response
}

type ModifyInstanceVpcAttributeArgs

type ModifyInstanceVpcAttributeArgs struct {
	InstanceId       string
	VSwitchId        string
	PrivateIpAddress string
}

type ModifyInstanceVpcAttributeResponse

type ModifyInstanceVpcAttributeResponse struct {
	common.Response
}

type ModifyNatGatewayAttributeArgs

type ModifyNatGatewayAttributeArgs struct {
	RegionId     common.Region
	NatGatewayId string
	Name         string
	Description  string
}

type ModifyNatGatewayAttributeResponse

type ModifyNatGatewayAttributeResponse struct {
	common.Response
}

type ModifyNatGatewaySpecArgs

type ModifyNatGatewaySpecArgs struct {
	RegionId     common.Region
	NatGatewayId string
	Spec         NatGatewaySpec
}

type ModifyNetworkInterfaceAttributeArgs

type ModifyNetworkInterfaceAttributeArgs struct {
	RegionId             common.Region
	NetworkInterfaceId   string
	SecurityGroupId      []string `query:"list"`
	NetworkInterfaceName string
	Description          string
}

type ModifyNetworkInterfaceAttributeResponse

type ModifyNetworkInterfaceAttributeResponse common.Response

type ModifyRouterInterfaceAttributeArgs

type ModifyRouterInterfaceAttributeArgs struct {
	RegionId                 common.Region
	RouterInterfaceId        string
	Name                     string
	Description              string
	OppositeInterfaceId      string
	OppositeRouterId         string
	OppositeInterfaceOwnerId string
	HealthCheckSourceIp      string
	HealthCheckTargetIp      string
}

type ModifyRouterInterfaceSpecArgs

type ModifyRouterInterfaceSpecArgs struct {
	RegionId          common.Region
	RouterInterfaceId string
	Spec              Spec
}

type ModifyRouterInterfaceSpecResponse

type ModifyRouterInterfaceSpecResponse struct {
	common.Response
	Spec Spec
}

type ModifySecurityGroupAttributeArgs

type ModifySecurityGroupAttributeArgs struct {
	RegionId          common.Region
	SecurityGroupId   string
	SecurityGroupName string
	Description       string
}

type ModifySecurityGroupAttributeResponse

type ModifySecurityGroupAttributeResponse struct {
	common.Response
}

type ModifySecurityGroupPolicyArgs

type ModifySecurityGroupPolicyArgs struct {
	RegionId          common.Region
	SecurityGroupId   string
	InnerAccessPolicy GroupInnerAccessPolicy
}

type ModifySnatEntryArgs

type ModifySnatEntryArgs struct {
	RegionId      common.Region
	SnatTableId   string
	SnatEntryId   string
	SnatIp        string
	SnatEntryName string
}

type ModifySnatEntryResponse

type ModifySnatEntryResponse struct {
	common.Response
}

type ModifyVRouterAttributeArgs

type ModifyVRouterAttributeArgs struct {
	VRouterId   string
	VRouterName string
	Description string
}

type ModifyVRouterAttributeResponse

type ModifyVRouterAttributeResponse struct {
	common.Response
}

type ModifyVSwitchAttributeArgs

type ModifyVSwitchAttributeArgs struct {
	VSwitchId   string
	VSwitchName string
	Description string
}

type ModifyVSwitchAttributeResponse

type ModifyVSwitchAttributeResponse struct {
	common.Response
}

type ModifyVpcAttributeArgs

type ModifyVpcAttributeArgs struct {
	VpcId       string
	VpcName     string
	Description string
}

type ModifyVpcAttributeResponse

type ModifyVpcAttributeResponse struct {
	common.Response
}

type NatGatewaySetType

type NatGatewaySetType struct {
	BusinessStatus      string
	Description         string
	BandwidthPackageIds BandwidthPackageIdType
	ForwardTableIds     ForwardTableIdType
	SnatTableIds        SnatTableIdType
	IpLists             IpListsType
	InstanceChargeType  string
	Name                string
	NatGatewayId        string
	RegionId            common.Region
	Spec                string
	Status              string
	VpcId               string
	NatType             NatType
}

type NatGatewaySpec

type NatGatewaySpec string

type NatType

type NatType string

type NetworkInterfaceType

type NetworkInterfaceType struct {
	NetworkInterfaceId   string
	NetworkInterfaceName string
	PrimaryIpAddress     string
	PrivateIpSets        struct {
		PrivateIpSet []PrivateIpType
	}
	MacAddress         string
	Status             string
	Type               string
	VpcId              string
	VSwitchId          string
	ZoneId             string
	AssociatedPublicIp AssociatedPublicIp
	SecurityGroupIds   struct {
		SecurityGroupId []string
	}
	Description      string
	InstanceId       string
	CreationTime     util.ISO6801Time
	PrivateIpAddress string
}

type NewAvailableResourcesType

type NewAvailableResourcesType struct {
	Type               string
	SupportedResources struct {
		SupportedResource []SupportedResourcesType
	}
}

type NextHop

type NextHop struct {
	Enabled            int
	Weight             int
	NextHopId          string
	NextHopRegionId    string
	NextHopType        string
	NextHopRelatedInfo NextHopRelatedInfo
}

type NextHopItemType

type NextHopItemType struct {
	NextHopType string
	NextHopId   string
}

type NextHopListType

type NextHopListType struct {
	NextHopList struct {
		NextHopItem []NextHopItemType
	}
}

type NextHopRelatedInfo

type NextHopRelatedInfo struct {
	RegionId     string
	InstanceId   string
	InstanceType string
}

type NextHopType

type NextHopType string

type NicType

type NicType string

type OperateRouterInterfaceArgs

type OperateRouterInterfaceArgs struct {
	RegionId          common.Region
	RouterInterfaceId string
}

type OperationLocksType

type OperationLocksType struct {
	LockReason []LockReasonType //enum for financial, security
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&operationlockstype

type PermissionPolicy

type PermissionPolicy string

type PermissionType

type PermissionType struct {
	IpProtocol              IpProtocol
	PortRange               string
	SourceCidrIp            string
	SourceGroupId           string
	SourceGroupOwnerAccount string
	DestCidrIp              string
	DestGroupId             string
	DestGroupOwnerAccount   string
	Policy                  PermissionPolicy
	NicType                 NicType
	Priority                int
	Direction               string
	Description             string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&permissiontype

type PrivateIpType

type PrivateIpType struct {
	PrivateIpAddress   string
	Primary            bool
	AssociatedPublicIp AssociatedPublicIp
}

type PublicIpAddresseType

type PublicIpAddresseType struct {
	AllocationId string
	IpAddress    string
}

type ReInitDiskArgs

type ReInitDiskArgs struct {
	DiskId string
}

type ReInitDiskResponse

type ReInitDiskResponse struct {
	common.Response
}

type RebootInstanceArgs

type RebootInstanceArgs struct {
	InstanceId string
	ForceStop  bool
}

type RebootInstanceResponse

type RebootInstanceResponse struct {
	common.Response
}

type RegionType

type RegionType struct {
	RegionId  common.Region
	LocalName string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&regiontype

type ReleaseEipAddressArgs

type ReleaseEipAddressArgs struct {
	AllocationId string
}

type ReleaseEipAddressResponse

type ReleaseEipAddressResponse struct {
	common.Response
}

type RemoveTagsArgs

type RemoveTagsArgs struct {
	ResourceId   string
	ResourceType TagResourceType //image, instance, snapshot or disk
	RegionId     common.Region
	Tag          map[string]string
}

type RemoveTagsResponse

type RemoveTagsResponse struct {
	common.Response
}

type RenewalStatus

type RenewalStatus string

type ReplaceSystemDiskArgs

type ReplaceSystemDiskArgs struct {
	InstanceId  string
	ImageId     string
	SystemDisk  SystemDiskType
	ClientToken string
}

type ReplaceSystemDiskResponse

type ReplaceSystemDiskResponse struct {
	common.Response
	DiskId string
}

type ResetDiskArgs

type ResetDiskArgs struct {
	DiskId     string
	SnapshotId string
}

type ResetDiskResponse

type ResetDiskResponse struct {
	common.Response
}

type ResizeDiskArgs

type ResizeDiskArgs struct {
	DiskId  string
	NewSize int
}

type ResizeDiskResponse

type ResizeDiskResponse struct {
	common.Response
}

type ResourceItemType

type ResourceItemType struct {
	ResourceId   string
	ResourceType TagResourceType
	RegionId     common.Region
}

type ResourceType

type ResourceType string

type ResourcesInfoType

type ResourcesInfoType struct {
	ResourcesInfo []AvailableResourcesType
}

You can read doc at https://help.aliyun.com/document_detail/25670.html?spm=5176.doc25640.2.1.J24zQt

type RevokeSecurityGroupArgs

type RevokeSecurityGroupArgs struct {
	AuthorizeSecurityGroupArgs
}

type RevokeSecurityGroupEgressArgs

type RevokeSecurityGroupEgressArgs struct {
	AuthorizeSecurityGroupEgressArgs
}

type RevokeSecurityGroupEgressResponse

type RevokeSecurityGroupEgressResponse struct {
	common.Response
}

type RevokeSecurityGroupResponse

type RevokeSecurityGroupResponse struct {
	common.Response
}

type Role

type Role string

type RouteEntry

type RouteEntry struct {
	DestinationCidrBlock string
	IpVersion            string
	RouteEntryId         string
	RouteEntryName       string
	RouteTableId         string
	Status               string
	Type                 string
	NextHops             struct {
		NextHop []NextHop
	}
}

type RouteEntrySetType

type RouteEntrySetType struct {
	RouteTableId         string
	DestinationCidrBlock string
	Type                 RouteTableType
	NextHopType          string
	NextHopId            string
	NextHopList          NextHopListType
	InstanceId           string
	Status               RouteEntryStatus // enum Pending | Available | Modifying
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&routeentrysettype

type RouteEntryStatus

type RouteEntryStatus string

type RouteTableSetType

type RouteTableSetType struct {
	VRouterId    string
	RouteTableId string
	RouteEntrys  struct {
		RouteEntry []RouteEntrySetType
	}
	RouteTableType RouteTableType
	CreationTime   util.ISO6801Time
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&routetablesettype

type RouteTableType

type RouteTableType string

type RouterInterfaceItemType

type RouterInterfaceItemType struct {
	ChargeType                      string
	RouterInterfaceId               string
	AccessPointId                   string
	OppositeRegionId                string
	OppositeAccessPointId           string
	Role                            Role
	Spec                            Spec
	Name                            string
	Description                     string
	RouterId                        string
	RouterType                      RouterType
	CreationTime                    string
	Status                          string
	BusinessStatus                  string
	ConnectedTime                   string
	OppositeInterfaceId             string
	OppositeInterfaceSpec           string
	OppositeInterfaceStatus         string
	OppositeInterfaceBusinessStatus string
	OppositeRouterId                string
	OppositeRouterType              RouterType
	OppositeInterfaceOwnerId        string
	HealthCheckSourceIp             string
	HealthCheckTargetIp             string
}

type RouterType

type RouterType string

type RunInstanceArgs

type RunInstanceArgs struct {
	CreateInstanceArgs
	MinAmount       int
	MaxAmount       int
	AutoReleaseTime string
	NetworkType     string
	InnerIpAddress  string
	BusinessInfo    string
}

type RunInstanceResponse

type RunInstanceResponse struct {
	common.Response
	InstanceIdSets InstanceIdSets
}

type SecurityEnhancementStrategy

type SecurityEnhancementStrategy string

type SecurityGroupArgs

type SecurityGroupArgs struct {
	InstanceId      string
	SecurityGroupId string
}

type SecurityGroupIdSetType

type SecurityGroupIdSetType struct {
	SecurityGroupId string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&securitygroupidsettype

type SecurityGroupItemType

type SecurityGroupItemType struct {
	SecurityGroupId   string
	SecurityGroupName string
	Description       string
	VpcId             string
	SecurityGroupType SecurityGroupType // normal|enterprise
	ServiceManaged    bool
	CreationTime      util.ISO6801Time
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&securitygroupitemtype

type SecurityGroupResponse

type SecurityGroupResponse struct {
	common.Response
}

type SecurityGroupType

type SecurityGroupType string

type SnapshotType

type SnapshotType struct {
	SnapshotId     string
	SnapshotName   string
	Description    string
	Progress       string
	SourceDiskId   string
	SourceDiskSize int
	SourceDiskType string //enum for System | Data
	ProductCode    string
	Status         string
	Usage          string
	CreationTime   util.ISO6801Time
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&snapshottype

type SnatEntrySetType

type SnatEntrySetType struct {
	RegionId        common.Region
	SnatEntryId     string
	SnatIp          string
	SnatTableId     string
	SourceCIDR      string
	SourceVSwitchId string
	Status          SnatEntryStatus
}

type SnatEntryStatus

type SnatEntryStatus string

type SnatTableIdType

type SnatTableIdType struct {
	SnatTableId []string
}

type Spec

type Spec string

type SpotStrategyType

type SpotStrategyType string

Experimental feature

type StartInstanceArgs

type StartInstanceArgs struct {
	InstanceId string
}

type StartInstanceResponse

type StartInstanceResponse struct {
	common.Response
}

type StopInstanceArgs

type StopInstanceArgs struct {
	InstanceId string
	ForceStop  bool
}

type StopInstanceResponse

type StopInstanceResponse struct {
	common.Response
}

type StringOrBool

type StringOrBool struct {
	Value bool
}

func (StringOrBool) Bool

func (io StringOrBool) Bool() bool

func (StringOrBool) String

func (io StringOrBool) String() string

func (*StringOrBool) UnmarshalJSON

func (io *StringOrBool) UnmarshalJSON(value []byte) error

UnmarshalJSON implements the json.Unmarshaller interface.

type SupportedResourceType

type SupportedResourceType string

The sub-item of the type AvailableResourcesType

type SupportedResourcesType

type SupportedResourcesType struct {
	Value  string
	Status string
	Min    string
	Max    string
	Unit   string
}

type SystemDiskType

type SystemDiskType struct {
	Size                 int
	Category             DiskCategory //Enum cloud, ephemeral, ephemeral_ssd
	DiskName             string
	Description          string
	PerformanceLevel     DiskPerformanceLevel
	AutoSnapshotPolicyId string
}

type TagItemType

type TagItemType struct {
	TagKey   string
	TagValue string
}

type TagResourceType

type TagResourceType string

type UnallocateEipAddressArgs

type UnallocateEipAddressArgs struct {
	AllocationId     string
	InstanceId       string
	InstanceType     EipInstanceType
	PrivateIpAddress string
}

type UnallocateEipAddressResponse

type UnallocateEipAddressResponse struct {
	common.Response
}

type UnassignPrivateIpAddressesArgs

type UnassignPrivateIpAddressesArgs struct {
	RegionId           common.Region
	NetworkInterfaceId string
	PrivateIpAddress   []string `query:"list"`
}

type UnassignPrivateIpAddressesResponse

type UnassignPrivateIpAddressesResponse common.Response

type VRouterSetType

type VRouterSetType struct {
	VRouterId     string
	RegionId      common.Region
	VpcId         string
	RouteTableIds struct {
		RouteTableId []string
	}
	VRouterName  string
	Description  string
	CreationTime util.ISO6801Time
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&vroutersettype

type VSwitchSetType

type VSwitchSetType struct {
	VSwitchId               string
	VpcId                   string
	Status                  VSwitchStatus // enum Pending | Available
	CidrBlock               string
	ZoneId                  string
	AvailableIpAddressCount int
	Description             string
	VSwitchName             string
	IsDefault               bool
	CreationTime            util.ISO6801Time
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&vswitchsettype

type VSwitchStatus

type VSwitchStatus string

type VpcAttributesType

type VpcAttributesType struct {
	VpcId            string
	VSwitchId        string
	PrivateIpAddress IpAddressSetType
	NatIpAddress     string
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&vpcattributestype

type VpcSetType

type VpcSetType struct {
	VpcId      string
	RegionId   common.Region
	Status     VpcStatus // enum Pending | Available
	VpcName    string
	VSwitchIds struct {
		VSwitchId []string
	}
	CidrBlock           string
	VRouterId           string
	Description         string
	IsDefault           bool
	CreationTime        util.ISO6801Time
	SecondaryCidrBlocks struct {
		SecondaryCidrBlock []string
	}
	RouterTableIds struct {
		RouterTableIds []string
	}
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&vpcsettype

type VpcStatus

type VpcStatus string

type ZoneType

type ZoneType struct {
	ZoneId                    string
	LocalName                 string
	AvailableResources        ResourcesInfoType
	AvailableInstanceTypes    AvailableInstanceTypesType
	AvailableResourceCreation AvailableResourceCreationType
	AvailableDiskCategories   AvailableDiskCategoriesType
}

You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&zonetype

Jump to

Keyboard shortcuts

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