Documentation
¶
Index ¶
- Constants
- Variables
- type AccountType
- type AddTagsArgs
- type AddTagsResponse
- type AllocateEipAddressArgs
- type AllocateEipAddressResponse
- type AllocatePublicIpAddressArgs
- type AllocatePublicIpAddressResponse
- type AssociateEipAddressArgs
- type AssociateEipAddressResponse
- type AttachDiskArgs
- type AttachDiskResponse
- type AuthorizeSecurityGroupArgs
- type AuthorizeSecurityGroupEgressArgs
- type AuthorizeSecurityGroupEgressResponse
- type AuthorizeSecurityGroupResponse
- type AvailableDiskCategoriesType
- type AvailableInstanceTypesType
- type AvailableResourceCreationType
- type BandwidthPackageIdType
- type BandwidthPackageType
- type BusinessInfo
- type CancelCopyImageRequest
- type Client
- func NewClient(accessKeyId, accessKeySecret string) *Client
- func NewClientWithEndpoint(endpoint string, accessKeyId, accessKeySecret string) *Client
- func NewClientWithRegion(endpoint string, accessKeyId, accessKeySecret string, regionID common.Region) *Client
- func NewECSClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client
- func NewVPCClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client
- func NewVPCClientWithRegion(endpoint string, accessKeyId, accessKeySecret string, regionID common.Region) *Client
- func (client *Client) AddTags(args *AddTagsArgs) error
- func (client *Client) AllocateEipAddress(args *AllocateEipAddressArgs) (EipAddress string, AllocationId string, err error)
- func (client *Client) AllocatePublicIpAddress(instanceId string) (ipAddress string, err error)
- func (client *Client) AssociateEipAddress(allocationId string, instanceId string) error
- func (client *Client) AttachDisk(args *AttachDiskArgs) error
- func (client *Client) AuthorizeSecurityGroup(args *AuthorizeSecurityGroupArgs) error
- func (client *Client) AuthorizeSecurityGroupEgress(args *AuthorizeSecurityGroupEgressArgs) error
- func (client *Client) CancelCopyImage(regionId common.Region, imageId string) error
- func (client *Client) CopyImage(args *CopyImageArgs) (string, error)
- func (client *Client) CreateDisk(args *CreateDiskArgs) (diskId string, err error)
- func (client *Client) CreateForwardEntry(args *CreateForwardEntryArgs) (resp *CreateForwardEntryResponse, err error)
- func (client *Client) CreateImage(args *CreateImageArgs) (imageId string, err error)
- func (client *Client) CreateInstance(args *CreateInstanceArgs) (instanceId string, err error)
- func (client *Client) CreateNatGateway(args *CreateNatGatewayArgs) (resp *CreateNatGatewayResponse, err error)
- func (client *Client) CreateRouteEntry(args *CreateRouteEntryArgs) error
- func (client *Client) CreateSecurityGroup(args *CreateSecurityGroupArgs) (securityGroupId string, err error)
- func (client *Client) CreateSnapshot(args *CreateSnapshotArgs) (snapshotId string, err error)
- func (client *Client) CreateSnatEntry(args *CreateSnatEntryArgs) (resp *CreateSnatEntryResponse, err error)
- func (client *Client) CreateVSwitch(args *CreateVSwitchArgs) (vswitchId string, err error)
- func (client *Client) CreateVpc(args *CreateVpcArgs) (resp *CreateVpcResponse, err error)
- func (client *Client) DeleteBandwidthPackage(args *DeleteBandwidthPackageArgs) error
- func (client *Client) DeleteDisk(diskId string) error
- func (client *Client) DeleteForwardEntry(args *DeleteForwardEntryArgs) error
- func (client *Client) DeleteImage(regionId common.Region, imageId string) error
- func (client *Client) DeleteInstance(instanceId string) error
- func (client *Client) DeleteNatGateway(args *DeleteNatGatewayArgs) error
- func (client *Client) DeleteRouteEntry(args *DeleteRouteEntryArgs) error
- func (client *Client) DeleteSecurityGroup(regionId common.Region, securityGroupId string) error
- func (client *Client) DeleteSnapshot(snapshotId string) error
- func (client *Client) DeleteSnatEntry(args *DeleteSnatEntryArgs) error
- func (client *Client) DeleteVSwitch(VSwitchId string) error
- func (client *Client) DeleteVpc(vpcId string) error
- func (client *Client) DescribeBandwidthPackages(args *DescribeBandwidthPackagesArgs) ([]DescribeBandwidthPackageType, error)
- func (client *Client) DescribeDiskMonitorData(args *DescribeDiskMonitorDataArgs) (monitorData []DiskMonitorDataType, totalCount int, err error)
- func (client *Client) DescribeDisks(args *DescribeDisksArgs) (disks []DiskItemType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeEipAddresses(args *DescribeEipAddressesArgs) (eipAddresses []EipAddressSetType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeEipMonitorData(args *DescribeEipMonitorDataArgs) (monitorData []EipMonitorDataType, err error)
- func (client *Client) DescribeForwardTableEntries(args *DescribeForwardTableEntriesArgs) (forwardTableEntries []ForwardTableEntrySetType, ...)
- func (client *Client) DescribeImageSharePermission(args *ModifyImageSharePermissionArgs) (*ImageSharePermissionResponse, error)
- func (client *Client) DescribeImages(args *DescribeImagesArgs) (images []ImageType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeInstanceAttribute(instanceId string) (instance *InstanceAttributesType, err error)
- func (client *Client) DescribeInstanceMonitorData(args *DescribeInstanceMonitorDataArgs) (monitorData []InstanceMonitorDataType, err error)
- func (client *Client) DescribeInstanceStatus(args *DescribeInstanceStatusArgs) (instanceStatuses []InstanceStatusItemType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeInstanceTypeFamilies(args *DescribeInstanceTypeFamiliesArgs) (*DescribeInstanceTypeFamiliesResponse, error)
- func (client *Client) DescribeInstanceTypes() (instanceTypes []InstanceTypeItemType, err error)
- func (client *Client) DescribeInstanceTypesNew(args *DescribeInstanceTypesArgs) (instanceTypes []InstanceTypeItemType, err error)
- func (client *Client) DescribeInstanceVncUrl(args *DescribeInstanceVncUrlArgs) (string, error)
- func (client *Client) DescribeInstances(args *DescribeInstancesArgs) (instances []InstanceAttributesType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeNatGateways(args *DescribeNatGatewaysArgs) (natGateways []NatGatewaySetType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeRegions() (regions []RegionType, err error)
- func (client *Client) DescribeResourceByTags(args *DescribeResourceByTagsArgs) (resources []ResourceItemType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeRouteTables(args *DescribeRouteTablesArgs) (routeTables []RouteTableSetType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeSecurityGroupAttribute(args *DescribeSecurityGroupAttributeArgs) (response *DescribeSecurityGroupAttributeResponse, err error)
- func (client *Client) DescribeSecurityGroups(args *DescribeSecurityGroupsArgs) (securityGroupItems []SecurityGroupItemType, ...)
- func (client *Client) DescribeSnapshots(args *DescribeSnapshotsArgs) (snapshots []SnapshotType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeSnatTableEntries(args *DescribeSnatTableEntriesArgs) (snatTableEntries []SnatEntrySetType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeTags(args *DescribeTagsArgs) (tags []TagItemType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeUserdata(args *DescribeUserdataArgs) (userData *DescribeUserdataItemType, err error)
- func (client *Client) DescribeVRouters(args *DescribeVRoutersArgs) (vrouters []VRouterSetType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeVSwitches(args *DescribeVSwitchesArgs) (vswitches []VSwitchSetType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeVpcs(args *DescribeVpcsArgs) (vpcs []VpcSetType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeZones(regionId common.Region) (zones []ZoneType, err error)
- func (client *Client) DetachDisk(instanceId string, diskId string) error
- func (client *Client) ImportImage(args *ImportImageArgs) (string, error)
- func (client *Client) JoinSecurityGroup(instanceId string, securityGroupId string) error
- func (client *Client) LeaveSecurityGroup(instanceId string, securityGroupId string) error
- func (client *Client) ModifyDiskAttribute(args *ModifyDiskAttributeArgs) error
- func (client *Client) ModifyEipAddressAttribute(allocationId string, bandwidth int) error
- func (client *Client) ModifyForwardEntry(args *ModifyForwardEntryArgs) error
- func (client *Client) ModifyImageSharePermission(args *ModifyImageSharePermissionArgs) error
- func (client *Client) ModifyInstanceAttribute(args *ModifyInstanceAttributeArgs) error
- func (client *Client) ModifyInstanceNetworkSpec(args *ModifyInstanceNetworkSpec) error
- func (client *Client) ModifyNatGatewayAttribute(args *ModifyNatGatewayAttributeArgs) error
- func (client *Client) ModifyNatGatewaySpec(args *ModifyNatGatewaySpecArgs) error
- func (client *Client) ModifySecurityGroupAttribute(args *ModifySecurityGroupAttributeArgs) error
- func (client *Client) ModifySnatEntry(args *ModifySnatEntryArgs) error
- func (client *Client) ModifyVRouterAttribute(args *ModifyVRouterAttributeArgs) error
- func (client *Client) ModifyVSwitchAttribute(args *ModifyVSwitchAttributeArgs) error
- func (client *Client) ModifyVpcAttribute(args *ModifyVpcAttributeArgs) error
- func (client *Client) ReInitDisk(diskId string) error
- func (client *Client) RebootInstance(instanceId string, forceStop bool) error
- func (client *Client) ReleaseEipAddress(allocationId string) error
- func (client *Client) RemoveTags(args *RemoveTagsArgs) error
- func (client *Client) ReplaceSystemDisk(args *ReplaceSystemDiskArgs) (diskId string, err error)
- func (client *Client) ResetDisk(diskId string, snapshotId string) error
- func (client *Client) RevokeSecurityGroup(args *RevokeSecurityGroupArgs) error
- func (client *Client) RevokeSecurityGroupEgress(args *RevokeSecurityGroupEgressArgs) error
- func (client *Client) RunInstances(args *RunInstanceArgs) (instanceIdSet []string, err error)
- func (client *Client) StartInstance(instanceId string) error
- func (client *Client) StopInstance(instanceId string, forceStop bool) error
- func (client *Client) UnassociateEipAddress(allocationId string, instanceId string) error
- func (client *Client) WaitForAllRouteEntriesAvailable(vrouterId string, routeTableId string, timeout int) error
- func (client *Client) WaitForDisk(regionId common.Region, diskId string, status DiskStatus, timeout int) error
- func (client *Client) WaitForEip(regionId common.Region, allocationId string, status EipStatus, timeout int) error
- func (client *Client) WaitForImageReady(regionId common.Region, imageId string, timeout int) error
- func (client *Client) WaitForInstance(instanceId string, status InstanceStatus, timeout int) error
- func (client *Client) WaitForInstanceAsyn(instanceId string, status InstanceStatus, timeout int) error
- func (client *Client) WaitForSnapShotReady(regionId common.Region, snapshotId string, timeout int) error
- func (client *Client) WaitForVSwitchAvailable(vpcId string, vswitchId string, timeout int) error
- func (client *Client) WaitForVpcAvailable(regionId common.Region, vpcId string, timeout int) error
- type CopyImageArgs
- type CopyImageResponse
- type CreateDiskArgs
- type CreateDisksResponse
- type CreateForwardEntryArgs
- type CreateForwardEntryResponse
- type CreateImageArgs
- type CreateImageResponse
- type CreateInstanceArgs
- type CreateInstanceResponse
- type CreateNatGatewayArgs
- type CreateNatGatewayResponse
- type CreateRouteEntryArgs
- type CreateRouteEntryResponse
- type CreateSecurityGroupArgs
- type CreateSecurityGroupResponse
- type CreateSnapshotArgs
- type CreateSnapshotResponse
- type CreateSnatEntryArgs
- type CreateSnatEntryResponse
- type CreateVSwitchArgs
- type CreateVSwitchResponse
- type CreateVpcArgs
- type CreateVpcResponse
- type DataDiskType
- type DeleteBandwidthPackageArgs
- type DeleteBandwidthPackageResponse
- type DeleteDiskArgs
- type DeleteDiskResponse
- type DeleteForwardEntryArgs
- type DeleteForwardEntryResponse
- type DeleteImageArgs
- type DeleteImageResponse
- type DeleteInstanceArgs
- type DeleteInstanceResponse
- type DeleteNatGatewayArgs
- type DeleteNatGatewayResponse
- type DeleteRouteEntryArgs
- type DeleteRouteEntryResponse
- type DeleteSecurityGroupArgs
- type DeleteSecurityGroupResponse
- type DeleteSnapshotArgs
- type DeleteSnapshotResponse
- type DeleteSnatEntryArgs
- type DeleteSnatEntryResponse
- type DeleteVSwitchArgs
- type DeleteVSwitchResponse
- type DeleteVpcArgs
- type DeleteVpcResponse
- type DescribeBandwidthPackageType
- type DescribeBandwidthPackagesArgs
- type DescribeBandwidthPackagesResponse
- type DescribeDiskMonitorDataArgs
- type DescribeDiskMonitorDataResponse
- type DescribeDisksArgs
- type DescribeDisksResponse
- type DescribeEipAddressesArgs
- type DescribeEipAddressesResponse
- type DescribeEipMonitorDataArgs
- type DescribeEipMonitorDataResponse
- type DescribeForwardTableEntriesArgs
- type DescribeForwardTableEntriesResponse
- type DescribeImagesArgs
- type DescribeImagesResponse
- type DescribeInstanceAttributeArgs
- type DescribeInstanceAttributeResponse
- type DescribeInstanceMonitorDataArgs
- type DescribeInstanceMonitorDataResponse
- type DescribeInstanceStatusArgs
- type DescribeInstanceStatusResponse
- type DescribeInstanceTypeFamiliesArgs
- type DescribeInstanceTypeFamiliesResponse
- type DescribeInstanceTypesArgs
- type DescribeInstanceTypesResponse
- type DescribeInstanceVncUrlArgs
- type DescribeInstanceVncUrlResponse
- type DescribeInstancesArgs
- type DescribeInstancesResponse
- type DescribeNatGatewayResponse
- type DescribeNatGatewaysArgs
- type DescribeRegionsArgs
- type DescribeRegionsResponse
- type DescribeResourceByTagsArgs
- type DescribeResourceByTagsResponse
- type DescribeRouteTablesArgs
- type DescribeRouteTablesResponse
- type DescribeSecurityGroupAttributeArgs
- type DescribeSecurityGroupAttributeResponse
- type DescribeSecurityGroupsArgs
- type DescribeSecurityGroupsResponse
- type DescribeSnapshotsArgs
- type DescribeSnapshotsResponse
- type DescribeSnatTableEntriesArgs
- type DescribeSnatTableEntriesResponse
- type DescribeTagsArgs
- type DescribeTagsResponse
- type DescribeUserdataArgs
- type DescribeUserdataItemType
- type DescribeUserdataResponse
- type DescribeVRoutersArgs
- type DescribeVRoutersResponse
- type DescribeVSwitchesArgs
- type DescribeVSwitchesResponse
- type DescribeVpcsArgs
- type DescribeVpcsResponse
- type DescribeZonesArgs
- type DescribeZonesResponse
- type DetachDiskArgs
- type DetachDiskResponse
- type DiskCategory
- type DiskChargeType
- type DiskDeviceMapping
- type DiskItemType
- type DiskMonitorDataType
- type DiskStatus
- type DiskType
- type EipAddressAssociateType
- type EipAddressSetType
- type EipMonitorDataType
- type EipStatus
- type ForwardTableEntrySetType
- type ForwardTableIdType
- type ImageOwnerAlias
- type ImageSharePermissionResponse
- type ImageStatus
- type ImageType
- type ImageUsage
- type ImportImageArgs
- type ImportImageResponse
- type InstanceAttributesType
- type InstanceIdSets
- type InstanceMonitorDataType
- type InstanceStatus
- type InstanceStatusItemType
- type InstanceTypeFamilies
- type InstanceTypeFamily
- type InstanceTypeItemType
- type IoOptimized
- type IpAddressSetType
- type IpProtocol
- type LockReason
- type LockReasonType
- type ModifyDiskAttributeArgs
- type ModifyDiskAttributeResponse
- type ModifyEipAddressAttributeArgs
- type ModifyEipAddressAttributeResponse
- type ModifyForwardEntryArgs
- type ModifyForwardEntryResponse
- type ModifyImageSharePermissionArgs
- type ModifyInstanceAttributeArgs
- type ModifyInstanceAttributeResponse
- type ModifyInstanceNetworkSpec
- type ModifyInstanceNetworkSpecResponse
- type ModifyNatGatewayAttributeArgs
- type ModifyNatGatewayAttributeResponse
- type ModifyNatGatewaySpecArgs
- type ModifySecurityGroupAttributeArgs
- type ModifySecurityGroupAttributeResponse
- type ModifySnatEntryArgs
- type ModifySnatEntryResponse
- type ModifyVRouterAttributeArgs
- type ModifyVRouterAttributeResponse
- type ModifyVSwitchAttributeArgs
- type ModifyVSwitchAttributeResponse
- type ModifyVpcAttributeArgs
- type ModifyVpcAttributeResponse
- type NatGatewaySetType
- type NatGatewaySpec
- type NextHopItemType
- type NextHopListType
- type NextHopType
- type NicType
- type OperationLocksType
- type PermissionPolicy
- type PermissionType
- type PublicIpAddresseType
- type ReInitDiskArgs
- type ReInitDiskResponse
- type RebootInstanceArgs
- type RebootInstanceResponse
- type RegionType
- type ReleaseEipAddressArgs
- type ReleaseEipAddressResponse
- type RemoveTagsArgs
- type RemoveTagsResponse
- type ReplaceSystemDiskArgs
- type ReplaceSystemDiskResponse
- type ResetDiskArgs
- type ResetDiskResponse
- type ResourceItemType
- type ResourceType
- type RevokeSecurityGroupArgs
- type RevokeSecurityGroupEgressArgs
- type RevokeSecurityGroupEgressResponse
- type RevokeSecurityGroupResponse
- type RouteEntrySetType
- type RouteEntryStatus
- type RouteTableSetType
- type RouteTableType
- type RunInstanceArgs
- type RunInstanceResponse
- type SecurityGroupArgs
- type SecurityGroupIdSetType
- type SecurityGroupItemType
- type SecurityGroupResponse
- type SnapshotType
- type SnatEntrySetType
- type SnatTableIdType
- type SpotStrategyType
- type StartInstanceArgs
- type StartInstanceResponse
- type StopInstanceArgs
- type StopInstanceResponse
- type StringOrBool
- type SystemDiskType
- type TagItemType
- type TagResourceType
- type UnallocateEipAddressArgs
- type UnallocateEipAddressResponse
- type VRouterSetType
- type VSwitchSetType
- type VSwitchStatus
- type VpcAttributesType
- type VpcSetType
- type VpcStatus
- type ZoneType
Examples ¶
Constants ¶
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" )
const ( DiskTypeAll = DiskType("all") //Default DiskTypeAllSystem = DiskType("system") DiskTypeAllData = DiskType("data") )
const ( DiskCategoryAll = DiskCategory("all") //Default DiskCategoryCloud = DiskCategory("cloud") DiskCategoryEphemeral = DiskCategory("ephemeral") DiskCategoryEphemeralSSD = DiskCategory("ephemeral_ssd") DiskCategoryCloudEfficiency = DiskCategory("cloud_efficiency") DiskCategoryCloudSSD = DiskCategory("cloud_ssd") )
const ( DiskStatusInUse = DiskStatus("In_use") DiskStatusAvailable = DiskStatus("Available") DiskStatusAttaching = DiskStatus("Attaching") DiskStatusDetaching = DiskStatus("Detaching") DiskStatusCreating = DiskStatus("Creating") DiskStatusReIniting = DiskStatus("ReIniting") DiskStatusAll = DiskStatus("All") //Default )
const ( PrePaid = DiskChargeType("PrePaid") PostPaid = DiskChargeType("PostPaid") )
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
const ( ImageStatusAvailable = ImageStatus("Available") ImageStatusUnAvailable = ImageStatus("UnAvailable") ImageStatusCreating = ImageStatus("Creating") ImageStatusCreateFailed = ImageStatus("CreateFailed") )
const ( ImageUsageInstance = ImageUsage("instance") ImageUsageNone = ImageUsage("none") )
const ( Creating = InstanceStatus("Creating") // For backward compatability Pending = InstanceStatus("Pending") Running = InstanceStatus("Running") Starting = InstanceStatus("Starting") Stopped = InstanceStatus("Stopped") Stopping = InstanceStatus("Stopping") Deleted = InstanceStatus("Deleted") )
Constants of InstanceStatus
const ( LockReasonFinancial = LockReason("financial") LockReasonSecurity = LockReason("security") )
const ( NoSpot = SpotStrategyType("NoSpot") SpotWithPriceLimit = SpotStrategyType("SpotWithPriceLimit") )
Constants of SpotStrategyType
const ( NatGatewaySmallSpec = NatGatewaySpec("Small") NatGatewayMiddleSpec = NatGatewaySpec("Middle") NatGatewayLargeSpec = NatGatewaySpec("Large") )
const ( EipStatusAssociating = EipStatus("Associating") EipStatusUnassociating = EipStatus("Unassociating") EipStatusInUse = EipStatus("InUse") EipStatusAvailable = EipStatus("Available") )
const ( RouteTableSystem = RouteTableType("System") RouteTableCustom = RouteTableType("Custom") )
const ( RouteEntryStatusPending = RouteEntryStatus("Pending") RouteEntryStatusAvailable = RouteEntryStatus("Available") RouteEntryStatusModifying = RouteEntryStatus("Modifying") )
const ( NextHopIntance = NextHopType("Instance") //Default NextHopTunnel = NextHopType("Tunnel") )
const ( NicTypeInternet = NicType("internet") NicTypeIntranet = NicType("intranet") )
const ( IpProtocolAll = IpProtocol("all") IpProtocolTCP = IpProtocol("tcp") IpProtocolUDP = IpProtocol("udp") IpProtocolICMP = IpProtocol("icmp") IpProtocolGRE = IpProtocol("gre") )
const ( PermissionPolicyAccept = PermissionPolicy("accept") PermissionPolicyDrop = PermissionPolicy("drop") )
const ( TagResourceImage = TagResourceType("image") TagResourceInstance = TagResourceType("instance") TagResourceSnapshot = TagResourceType("snapshot") TagResourceDisk = TagResourceType("disk") )
const ( VpcStatusPending = VpcStatus("Pending") VpcStatusAvailable = VpcStatus("Available") )
const ( VSwitchStatusPending = VSwitchStatus("Pending") VSwitchStatusAvailable = VSwitchStatus("Available") )
const ( ResourceTypeInstance = ResourceType("Instance") ResourceTypeDisk = ResourceType("Disk") ResourceTypeVSwitch = ResourceType("VSwitch") ResourceTypeIOOptimizedInstance = ResourceType("IoOptimized") )
const DefaultTimeout = 60
Default timeout value for WaitForXXX method
const DefaultWaitForInterval = 5
Interval for checking status in WaitForXXX method
const ImageDefaultTimeout = 120
Default timeout value for WaitForImageReady method
const InstanceDefaultTimeout = 120
Default timeout value for WaitForInstance method
const SnapshotDefaultTimeout = 120
Default timeout value for WaitForSnapShotReady method
Variables ¶
var ( IoOptimizedNone = IoOptimized("none") IoOptimizedOptimized = IoOptimized("optimized") )
Functions ¶
This section is empty.
Types ¶
type AccountType ¶
type AccountType struct {
AliyunId string
}
type AddTagsArgs ¶
type AddTagsResponse ¶
type AllocateEipAddressArgs ¶
type AllocatePublicIpAddressArgs ¶
type AllocatePublicIpAddressArgs struct {
InstanceId string
}
type AssociateEipAddressArgs ¶
type AttachDiskArgs ¶
type AttachDiskResponse ¶
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 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 BandwidthPackageIdType ¶
type BandwidthPackageIdType struct {
BandwidthPackageId []string
}
type BandwidthPackageType ¶
type BusinessInfo ¶
type CancelCopyImageRequest ¶
type CancelCopyImageRequest struct {
ImageId string
// contains filtered or unexported fields
}
type Client ¶
func NewClientWithEndpoint ¶
func NewClientWithRegion ¶
func NewECSClient ¶
func NewVPCClient ¶
func NewVPCClientWithRegion ¶
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 ¶
AllocatePublicIpAddress allocates Public Ip Address
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/network&allocatepublicipaddress
func (*Client) AssociateEipAddress ¶
AssociateEipAddress associates EIP address to VM instance
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/network&associateeipaddress
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) 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 ¶
You can read doc at https://help.aliyun.com/document_detail/25539.html
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) 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) 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) 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) DeleteBandwidthPackage ¶
func (client *Client) DeleteBandwidthPackage(args *DeleteBandwidthPackageArgs) error
func (*Client) DeleteDisk ¶
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 ¶
DeleteImage deletes Image
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/image&deleteimage
func (*Client) DeleteInstance ¶
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)
}
func (*Client) DeleteNatGateway ¶
func (client *Client) DeleteNatGateway(args *DeleteNatGatewayArgs) 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) DeleteSecurityGroup ¶
DeleteSecurityGroup deletes security group
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/securitygroup&deletesecuritygroup
func (*Client) DeleteSnapshot ¶
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 ¶
DeleteVSwitch deletes Virtual Switch
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/vswitch&deletevswitch
func (*Client) DeleteVpc ¶
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) ([]DescribeBandwidthPackageType, 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) 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) 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) 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) 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)
}
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) 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)
}
}
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)
}
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
Example ¶
fmt.Printf("DescribeInstances Example\n")
args := DescribeInstancesArgs{
RegionId: "cn-zhangjiakou",
//RegionId: "ap-northeast-1",
//RegionId: "eu-central-1",
//RegionId: "ap-southeast-1",
Pagination: common.Pagination{
PageNumber: 1,
PageSize: 20,
},
}
client := NetTestLocationClientForDebug()
instanceStatus, _, err := client.DescribeInstances(&args)
if err != nil {
fmt.Printf("Failed to describe Instance: %s status:%v \n", TestInstanceId, err)
return err
} else {
for i := 0; i < len(instanceStatus); i++ {
fmt.Printf("Instance %s Status: %s \n", instanceStatus[i].InstanceId, instanceStatus[i].Status)
}
}
return nil
func (*Client) DescribeNatGateways ¶
func (client *Client) DescribeNatGateways(args *DescribeNatGatewaysArgs) (natGateways []NatGatewaySetType, pagination *common.PaginationResult, 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) 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) DescribeSecurityGroupAttribute ¶
func (client *Client) DescribeSecurityGroupAttribute(args *DescribeSecurityGroupAttributeArgs) (response *DescribeSecurityGroupAttributeResponse, err error)
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/securitygroup&describesecuritygroupattribute
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) 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) DescribeSnatTableEntries ¶
func (client *Client) DescribeSnatTableEntries(args *DescribeSnatTableEntriesArgs) (snatTableEntries []SnatEntrySetType, pagination *common.PaginationResult, 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) 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) 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) DescribeZones ¶
DescribeZones describes zones
func (*Client) DetachDisk ¶
DetachDisk detaches disk from instance
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&detachdisk
func (*Client) ImportImage ¶
func (client *Client) ImportImage(args *ImportImageArgs) (string, error)
func (*Client) JoinSecurityGroup ¶
JoinSecurityGroup
You can read doc at https://help.aliyun.com/document_detail/ecs/open-api/instance/joinsecuritygroup.html
func (*Client) LeaveSecurityGroup ¶
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 ¶
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) ModifyImageSharePermission ¶
func (client *Client) ModifyImageSharePermission(args *ModifyImageSharePermissionArgs) error
You can read doc at http://help.aliyun.com/document_detail/ecs/open-api/image/modifyimagesharepermission.html
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) 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) ModifyNatGatewayAttribute ¶
func (client *Client) ModifyNatGatewayAttribute(args *ModifyNatGatewayAttributeArgs) error
func (*Client) ModifyNatGatewaySpec ¶
func (client *Client) ModifyNatGatewaySpec(args *ModifyNatGatewaySpecArgs) error
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) 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) ReInitDisk ¶
ReInitDisk reinitizes disk
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&reinitdisk
func (*Client) RebootInstance ¶
RebootInstance reboot instance
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&rebootinstance
func (*Client) ReleaseEipAddress ¶
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 ¶
ResetDisk resets disk to original status
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/disk&resetdisk
func (*Client) RevokeSecurityGroup ¶
func (client *Client) RevokeSecurityGroup(args *RevokeSecurityGroupArgs) error
You can read doc at https://help.aliyun.com/document_detail/25557.html?spm=5176.doc25554.6.755.O6Tjz0
func (*Client) RevokeSecurityGroupEgress ¶
func (client *Client) RevokeSecurityGroupEgress(args *RevokeSecurityGroupEgressArgs) error
You can read doc at https://help.aliyun.com/document_detail/25561.html?spm=5176.doc25557.6.759.qcR4Az
func (*Client) RunInstances ¶
func (client *Client) RunInstances(args *RunInstanceArgs) (instanceIdSet []string, err error)
func (*Client) StartInstance ¶
StartInstance starts instance
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/instance&startinstance
func (*Client) StopInstance ¶
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)
}
func (*Client) UnassociateEipAddress ¶
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 ¶
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) WaitForSnapShotReady ¶
func (client *Client) WaitForSnapShotReady(regionId common.Region, snapshotId string, timeout int) error
WaitForSnapShotReady waits for snapshot ready
func (*Client) WaitForVSwitchAvailable ¶
WaitForVSwitchAvailable waits for VSwitch to given status
type CopyImageArgs ¶
type CopyImageResponse ¶
type CreateDiskArgs ¶
type CreateDisksResponse ¶
type CreateForwardEntryArgs ¶
type CreateImageArgs ¶
type CreateImageArgs struct {
RegionId common.Region
SnapshotId string
InstanceId string
ImageName string
ImageVersion string
Description string
ClientToken string
}
CreateImageArgs repsents arguements to create image
type CreateImageResponse ¶
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
UserData string
AutoRenew bool
AutoRenewPeriod int
SpotStrategy SpotStrategyType
}
type CreateInstanceResponse ¶
type CreateNatGatewayArgs ¶
type CreateNatGatewayResponse ¶
type CreateNatGatewayResponse struct {
common.Response
NatGatewayId string
ForwardTableIds ForwardTableIdType
BandwidthPackageIds BandwidthPackageIdType
}
type CreateRouteEntryArgs ¶
type CreateRouteEntryArgs struct {
RouteTableId string
DestinationCidrBlock string
NextHopType NextHopType
NextHopId string
ClientToken string
}
type CreateSecurityGroupArgs ¶
type CreateSnapshotArgs ¶
type CreateSnapshotResponse ¶
type CreateSnatEntryArgs ¶
type CreateSnatEntryResponse ¶
type CreateVSwitchArgs ¶
type CreateVSwitchResponse ¶
type CreateVpcArgs ¶
type CreateVpcResponse ¶
type DataDiskType ¶
type DeleteDiskArgs ¶
type DeleteDiskArgs struct {
DiskId string
}
type DeleteDiskResponse ¶
type DeleteForwardEntryArgs ¶
type DeleteImageArgs ¶
type DeleteImageResponse ¶
type DeleteInstanceArgs ¶
type DeleteInstanceArgs struct {
InstanceId string
}
type DeleteInstanceResponse ¶
type DeleteNatGatewayArgs ¶
type DeleteRouteEntryArgs ¶
type DeleteSecurityGroupArgs ¶
type DeleteSnapshotArgs ¶
type DeleteSnapshotArgs struct {
SnapshotId string
}
type DeleteSnapshotResponse ¶
type DeleteSnatEntryArgs ¶
type DeleteSnatEntryResponse ¶
type DeleteVSwitchArgs ¶
type DeleteVSwitchArgs struct {
VSwitchId string
}
type DeleteVSwitchResponse ¶
type DeleteVpcArgs ¶
type DeleteVpcArgs struct {
VpcId string
}
type DeleteVpcResponse ¶
type DescribeBandwidthPackageType ¶
type DescribeBandwidthPackageType struct {
Bandwidth string
BandwidthPackageId string
IpCount string
PublicIpAddresses struct {
PublicIpAddresse []PublicIpAddresseType
}
ZoneId string
}
type DescribeBandwidthPackagesResponse ¶
type DescribeBandwidthPackagesResponse struct {
common.Response
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
Name 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 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 arguements to describe images
type DescribeImagesResponse ¶
type DescribeInstanceAttributeArgs ¶
type DescribeInstanceAttributeArgs struct {
InstanceId string
}
type DescribeInstanceAttributeResponse ¶
type DescribeInstanceAttributeResponse struct {
common.Response
InstanceAttributesType
}
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 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 DescribeInstanceTypeFamiliesResponse ¶
type DescribeInstanceTypeFamiliesResponse struct {
common.Response
InstanceTypeFamilies InstanceTypeFamilies
}
type DescribeInstanceTypesArgs ¶
type DescribeInstanceTypesArgs struct {
InstanceTypeFamily string
}
type DescribeInstanceTypesResponse ¶
type DescribeInstanceTypesResponse struct {
common.Response
InstanceTypes struct {
InstanceType []InstanceTypeItemType
}
}
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 DescribeNatGatewayResponse ¶
type DescribeNatGatewayResponse struct {
common.Response
common.PaginationResult
NatGateways struct {
NatGateway []NatGatewaySetType
}
}
type DescribeNatGatewaysArgs ¶
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 DescribeRouteTablesArgs ¶
type DescribeRouteTablesArgs struct {
VRouterId string
RouteTableId string
common.Pagination
}
type DescribeRouteTablesResponse ¶
type DescribeRouteTablesResponse struct {
common.Response
common.PaginationResult
RouteTables struct {
RouteTable []RouteTableSetType
}
}
type DescribeSecurityGroupsArgs ¶
type DescribeSecurityGroupsArgs struct {
RegionId common.Region
VpcId string
common.Pagination
}
type DescribeSecurityGroupsResponse ¶
type DescribeSecurityGroupsResponse struct {
common.Response
common.PaginationResult
RegionId common.Region
SecurityGroups struct {
SecurityGroup []SecurityGroupItemType
}
}
type DescribeSnapshotsArgs ¶
type DescribeSnapshotsResponse ¶
type DescribeSnapshotsResponse struct {
common.Response
common.PaginationResult
Snapshots struct {
Snapshot []SnapshotType
}
}
type DescribeSnatTableEntriesArgs ¶
type DescribeSnatTableEntriesArgs struct {
RegionId common.Region
SnatTableId 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 DescribeUserdataItemType ¶
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 {
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 DescribeZonesResponse ¶
type DetachDiskArgs ¶
type DetachDiskResponse ¶
type DiskDeviceMapping ¶
type DiskDeviceMapping struct {
SnapshotId string
//Why Size Field is string-type.
Size 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
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
}
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 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
Bandwidth string // Why 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 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 ForwardTableIdType ¶
type ForwardTableIdType struct {
ForwardTableId []string
}
type ImageSharePermissionResponse ¶
type ImageSharePermissionResponse struct {
Account []AccountType
}
}
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
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 arguements to import image from oss
type ImportImageResponse ¶
type InstanceAttributesType ¶
type InstanceAttributesType struct {
AccountName string
InstanceId string
InstanceName string
Description string
ImageId string
OSType 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
LastSyncTime 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 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 InstanceTypeItemType ¶
type InstanceTypeItemType struct {
InstanceTypeId string
CpuCoreCount int
MemorySize float64
InstanceTypeFamily string
}
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&instancetypeitemtype
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 IpProtocol ¶
type IpProtocol string
type LockReason ¶
type LockReason string
type LockReasonType ¶
type LockReasonType struct {
LockReason LockReason
}
type ModifyDiskAttributeArgs ¶
type ModifyForwardEntryArgs ¶
type ModifyImageSharePermissionArgs ¶
type ModifyImageSharePermissionArgs struct {
}
ModifyImageSharePermission repsents arguements to share image
type ModifyNatGatewaySpecArgs ¶
type ModifyNatGatewaySpecArgs struct {
RegionId common.Region
NatGatewayId string
Spec NatGatewaySpec
}
type ModifySnatEntryArgs ¶
type ModifySnatEntryResponse ¶
type ModifyVpcAttributeArgs ¶
type NatGatewaySetType ¶
type NatGatewaySetType struct {
BusinessStatus string
Description string
BandwidthPackageIds BandwidthPackageIdType
ForwardTableIds ForwardTableIdType
SnatTableIds SnatTableIdType
InstanceChargeType string
Name string
NatGatewayId string
RegionId common.Region
Spec string
Status string
VpcId string
}
type NatGatewaySpec ¶
type NatGatewaySpec string
type NextHopItemType ¶
type NextHopListType ¶
type NextHopListType struct {
NextHopList struct {
NextHopItem []NextHopItemType
}
}
type NextHopType ¶
type NextHopType 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 PublicIpAddresseType ¶
type ReInitDiskArgs ¶
type ReInitDiskArgs struct {
DiskId string
}
type ReInitDiskResponse ¶
type RebootInstanceArgs ¶
type RebootInstanceResponse ¶
type RegionType ¶
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype®iontype
type ReleaseEipAddressArgs ¶
type ReleaseEipAddressArgs struct {
AllocationId string
}
type RemoveTagsArgs ¶
type RemoveTagsResponse ¶
type ReplaceSystemDiskArgs ¶
type ReplaceSystemDiskArgs struct {
InstanceId string
ImageId string
SystemDisk SystemDiskType
ClientToken string
}
type ResetDiskArgs ¶
type ResetDiskResponse ¶
type ResourceItemType ¶
type ResourceItemType struct {
ResourceId string
ResourceType TagResourceType
RegionId common.Region
}
type ResourceType ¶
type ResourceType string
type RevokeSecurityGroupArgs ¶
type RevokeSecurityGroupArgs struct {
AuthorizeSecurityGroupArgs
}
type RevokeSecurityGroupEgressArgs ¶
type RevokeSecurityGroupEgressArgs struct {
AuthorizeSecurityGroupEgressArgs
}
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 RunInstanceArgs ¶
type RunInstanceResponse ¶
type RunInstanceResponse struct {
common.Response
InstanceIdSets InstanceIdSets
}
type SecurityGroupArgs ¶
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
CreationTime util.ISO6801Time
}
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&securitygroupitemtype
type SecurityGroupResponse ¶
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
CreationTime util.ISO6801Time
}
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&snapshottype
type SnatEntrySetType ¶
type SnatTableIdType ¶
type SnatTableIdType struct {
SnatTableId []string
}
type StartInstanceArgs ¶
type StartInstanceArgs struct {
InstanceId string
}
type StartInstanceResponse ¶
type StopInstanceArgs ¶
type StopInstanceResponse ¶
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 SystemDiskType ¶
type SystemDiskType struct {
Size int
Category DiskCategory //Enum cloud, ephemeral, ephemeral_ssd
DiskName string
Description string
}
type TagItemType ¶
type TagResourceType ¶
type TagResourceType string
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
}
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&vpcsettype
type ZoneType ¶
type ZoneType struct {
ZoneId string
LocalName string
AvailableInstanceTypes AvailableInstanceTypesType
AvailableResourceCreation AvailableResourceCreationType
AvailableDiskCategories AvailableDiskCategoriesType
}
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&zonetype