Documentation ¶
Index ¶
- Constants
- Variables
- type AccountType
- type AddTagsArgs
- type AddTagsResponse
- type AllocateEipAddressArgs
- type AllocateEipAddressResponse
- type AllocatePublicIpAddressArgs
- type AllocatePublicIpAddressResponse
- type AssignPrivateIpAddressesArgs
- type AssignPrivateIpAddressesResponse
- type AssociateEipAddressArgs
- type AssociateEipAddressMode
- type AssociateEipAddressResponse
- type AssociatedInstanceType
- type AssociatedPublicIp
- type AttachDiskArgs
- type AttachDiskResponse
- type AttachInstancesArgs
- type AttachKeyPairArgs
- type AttachNetworkInterfaceArgs
- type AttachNetworkInterfaceResponse
- type AuthorizeSecurityGroupArgs
- type AuthorizeSecurityGroupEgressArgs
- type AuthorizeSecurityGroupEgressResponse
- type AuthorizeSecurityGroupResponse
- type AvailableDiskCategoriesType
- type AvailableInstanceTypesType
- type AvailableResourceCreationType
- type AvailableResourcesType
- type AvailableZoneType
- type BandwidthPackageIdType
- type BandwidthPackageType
- type BusinessInfo
- type CancelCopyImageRequest
- type Client
- func NewClient(accessKeyId, accessKeySecret string) *Client
- func NewClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string) *Client
- func NewClientWithRegion(endpoint string, accessKeyId string, accessKeySecret string, ...) *Client
- func NewECSClient(accessKeyId, accessKeySecret string, regionID common.Region) *Client
- func NewECSClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string, ...) *Client
- func NewECSClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, ...) *Client
- func NewECSClientWithEndpointAndSecurityToken4RegionalDomain(endpoint string, accessKeyId string, accessKeySecret string, ...) *Client
- func NewECSClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string, ...) *Client
- func NewECSClientWithSecurityToken4RegionalDomain(accessKeyId string, accessKeySecret string, securityToken string, ...) *Client
- func NewVPCClient(accessKeyId string, accessKeySecret string, regionID common.Region) *Client
- func NewVPCClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string, ...) *Client
- func NewVPCClientWithEndpointAndSecurityToken(endpoint string, accessKeyId string, accessKeySecret string, ...) *Client
- func NewVPCClientWithEndpointAndSecurityToken4RegionalDomain(endpoint string, accessKeyId string, accessKeySecret string, ...) *Client
- func NewVPCClientWithRegion(endpoint string, accessKeyId string, accessKeySecret string, ...) *Client
- func NewVPCClientWithSecurityToken(accessKeyId string, accessKeySecret string, securityToken string, ...) *Client
- func NewVPCClientWithSecurityToken4RegionalDomain(accessKeyId string, accessKeySecret string, securityToken string, ...) *Client
- func (client *Client) ActivateRouterInterface(args *OperateRouterInterfaceArgs) (response *EcsCommonResponse, err error)
- 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) AssignPrivateIpAddresses(args *AssignPrivateIpAddressesArgs) (resp *AssignPrivateIpAddressesResponse, err error)
- func (client *Client) AssociateEipAddress(allocationId string, instanceId string) error
- func (client *Client) AttachDisk(args *AttachDiskArgs) error
- func (client *Client) AttachInstanceRamRole(args *AttachInstancesArgs) (err error)
- func (client *Client) AttachKeyPair(args *AttachKeyPairArgs) (err error)
- func (client *Client) AttachNetworkInterface(args *AttachNetworkInterfaceArgs) 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) ConnectRouterInterface(args *OperateRouterInterfaceArgs) (response *EcsCommonResponse, err 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) CreateKeyPair(args *CreateKeyPairArgs) (resp *CreateKeyPairResponse, err error)
- func (client *Client) CreateNatGateway(args *CreateNatGatewayArgs) (resp *CreateNatGatewayResponse, err error)
- func (client *Client) CreateNetworkInterface(args *CreateNetworkInterfaceArgs) (resp *CreateNetworkInterfaceResponse, err error)
- func (client *Client) CreateRouteEntry(args *CreateRouteEntryArgs) error
- func (client *Client) CreateRouterInterface(args *CreateRouterInterfaceArgs) (response *CreateRouterInterfaceResponse, err 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) DeactivateRouterInterface(args *OperateRouterInterfaceArgs) (response *EcsCommonResponse, 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) DeleteImageWithForce(regionId common.Region, imageId string, force bool) error
- func (client *Client) DeleteInstance(instanceId string) error
- func (client *Client) DeleteKeyPairs(args *DeleteKeyPairsArgs) (err error)
- func (client *Client) DeleteNatGateway(args *DeleteNatGatewayArgs) error
- func (client *Client) DeleteNetworkInterface(args *DeleteNetworkInterfaceArgs) (resp *DeleteNetworkInterfaceResponse, err error)
- func (client *Client) DeleteRouteEntry(args *DeleteRouteEntryArgs) error
- func (client *Client) DeleteRouterInterface(args *OperateRouterInterfaceArgs) (response *EcsCommonResponse, err 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) DescribeAvailableResource(args *DescribeAvailableResourceArgs) (response *DescribeAvailableResourceResponse, err error)
- func (client *Client) DescribeBandwidthPackages(args *DescribeBandwidthPackagesArgs) (*DescribeBandwidthPackagesResponse, 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) DescribeDisksWithRaw(args *DescribeDisksArgs) (response *DescribeDisksResponse, err error)
- func (client *Client) DescribeEipAddresses(args *DescribeEipAddressesArgs) (eipAddresses []EipAddressSetType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeEipAddressesWithRaw(args *DescribeEipAddressesArgs) (response *DescribeEipAddressesResponse, err error)
- func (client *Client) DescribeEipMonitorData(args *DescribeEipMonitorDataArgs) (monitorData []EipMonitorDataType, err error)
- func (client *Client) DescribeForwardTableEntries(args *DescribeForwardTableEntriesArgs) (forwardTableEntries []ForwardTableEntrySetType, ...)
- func (client *Client) DescribeForwardTableEntriesWithRaw(args *DescribeForwardTableEntriesArgs) (response *DescribeForwardTableEntriesResponse, err error)
- func (client *Client) DescribeImageSharePermission(args *ModifyImageSharePermissionArgs) (*ImageSharePermissionResponse, error)
- func (client *Client) DescribeImages(args *DescribeImagesArgs) (images []ImageType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeImagesWithRaw(args *DescribeImagesArgs) (response *DescribeImagesResponse, err error)
- func (client *Client) DescribeInstanceAttribute(instanceId string) (instance *InstanceAttributesType, err error)
- func (client *Client) DescribeInstanceAutoRenewAttribute(args *DescribeInstanceAutoRenewAttributeArgs) (*DescribeInstanceAutoRenewAttributeResponse, error)
- func (client *Client) DescribeInstanceMonitorData(args *DescribeInstanceMonitorDataArgs) (monitorData []InstanceMonitorDataType, err error)
- func (client *Client) DescribeInstanceRamRole(args *AttachInstancesArgs) (resp *DescribeInstanceRamRoleResponse, err error)
- func (client *Client) DescribeInstanceStatus(args *DescribeInstanceStatusArgs) (instanceStatuses []InstanceStatusItemType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeInstanceStatusWithRaw(args *DescribeInstanceStatusArgs) (response *DescribeInstanceStatusResponse, err error)
- 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) DescribeInstancesWithRaw(args *DescribeInstancesArgs) (response *DescribeInstancesResponse, err error)
- func (client *Client) DescribeKeyPairs(args *DescribeKeyPairsArgs) (KeyPairs []KeyPairItemType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeKeyPairsWithRaw(args *DescribeKeyPairsArgs) (response *DescribeKeyPairsResponse, err error)
- func (client *Client) DescribeNatGateways(args *DescribeNatGatewaysArgs) (natGateways []NatGatewaySetType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeNatGatewaysWithRaw(args *DescribeNatGatewaysArgs) (response *DescribeNatGatewayResponse, err error)
- func (client *Client) DescribeNetworkInterfaces(args *DescribeNetworkInterfacesArgs) (resp *DescribeNetworkInterfacesResponse, err error)
- func (client *Client) DescribeRegions() (regions []RegionType, err error)
- func (client *Client) DescribeResourceByTags(args *DescribeResourceByTagsArgs) (resources []ResourceItemType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeResourceByTagsWithRaw(args *DescribeResourceByTagsArgs) (response *DescribeResourceByTagsResponse, err error)
- func (client *Client) DescribeRouteEntryList(args *DescribeRouteEntryListArgs) (*DescribeRouteEntryListResponse, error)
- func (client *Client) DescribeRouteTables(args *DescribeRouteTablesArgs) (routeTables []RouteTableSetType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeRouteTablesWithRaw(args *DescribeRouteTablesArgs) (response *DescribeRouteTablesResponse, err error)
- func (client *Client) DescribeRouterInterfaces(args *DescribeRouterInterfacesArgs) (response *DescribeRouterInterfacesResponse, err error)
- func (client *Client) DescribeSecurityGroupAttribute(args *DescribeSecurityGroupAttributeArgs) (response *DescribeSecurityGroupAttributeResponse, err error)
- func (client *Client) DescribeSecurityGroups(args *DescribeSecurityGroupsArgs) (securityGroupItems []SecurityGroupItemType, ...)
- func (client *Client) DescribeSecurityGroupsWithRaw(args *DescribeSecurityGroupsArgs) (response *DescribeSecurityGroupsResponse, err error)
- func (client *Client) DescribeSnapshots(args *DescribeSnapshotsArgs) (snapshots []SnapshotType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeSnapshotsWithRaw(args *DescribeSnapshotsArgs) (response *DescribeSnapshotsResponse, err error)
- func (client *Client) DescribeSnatTableEntries(args *DescribeSnatTableEntriesArgs) (snatTableEntries []SnatEntrySetType, pagination *common.PaginationResult, ...)
- func (client *Client) DescribeSnatTableEntriesWithRaw(args *DescribeSnatTableEntriesArgs) (response *DescribeSnatTableEntriesResponse, err error)
- 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) DescribeVRoutersWithRaw(args *DescribeVRoutersArgs) (response *DescribeVRoutersResponse, err error)
- func (client *Client) DescribeVSwitches(args *DescribeVSwitchesArgs) (vswitches []VSwitchSetType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeVSwitchesWithRaw(args *DescribeVSwitchesArgs) (response *DescribeVSwitchesResponse, err error)
- func (client *Client) DescribeVpcs(args *DescribeVpcsArgs) (vpcs []VpcSetType, pagination *common.PaginationResult, err error)
- func (client *Client) DescribeVpcsWithRaw(args *DescribeVpcsArgs) (response *DescribeVpcsResponse, err error)
- func (client *Client) DescribeZones(regionId common.Region) (zones []ZoneType, err error)
- func (client *Client) DescribeZonesWithRaw(regionId common.Region) (response *DescribeZonesResponse, err error)
- func (client *Client) DetachDisk(instanceId string, diskId string) error
- func (client *Client) DetachInstanceRamRole(args *AttachInstancesArgs) (err error)
- func (client *Client) DetachKeyPair(args *DetachKeyPairArgs) (err error)
- func (client *Client) DetachNetworkInterface(args *DetachNetworkInterfaceArgs) (resp *DetachNetworkInterfaceResponse, err error)
- func (client *Client) ImportImage(args *ImportImageArgs) (string, error)
- func (client *Client) ImportKeyPair(args *ImportKeyPairArgs) (resp *ImportKeyPairResponse, err 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) ModifyInstanceAutoReleaseTime(instanceId, time string) error
- func (client *Client) ModifyInstanceAutoRenewAttribute(args *ModifyInstanceAutoRenewAttributeArgs) error
- func (client *Client) ModifyInstanceChargeType(args *ModifyInstanceChargeTypeArgs) (*ModifyInstanceChargeTypeResponse, error)
- func (client *Client) ModifyInstanceNetworkSpec(args *ModifyInstanceNetworkSpec) error
- func (client *Client) ModifyInstanceSpec(args *ModifyInstanceSpecArgs) error
- func (client *Client) ModifyInstanceVpcAttribute(args *ModifyInstanceVpcAttributeArgs) error
- func (client *Client) ModifyNatGatewayAttribute(args *ModifyNatGatewayAttributeArgs) error
- func (client *Client) ModifyNatGatewaySpec(args *ModifyNatGatewaySpecArgs) error
- func (client *Client) ModifyNetworkInterfaceAttribute(args *ModifyNetworkInterfaceAttributeArgs) (resp *ModifyNetworkInterfaceAttributeResponse, err error)
- func (client *Client) ModifyRouterInterfaceAttribute(args *ModifyRouterInterfaceAttributeArgs) (response *EcsCommonResponse, err error)
- func (client *Client) ModifyRouterInterfaceSpec(args *ModifyRouterInterfaceSpecArgs) (response *ModifyRouterInterfaceSpecResponse, err error)
- func (client *Client) ModifySecurityGroupAttribute(args *ModifySecurityGroupAttributeArgs) error
- func (client *Client) ModifySecurityGroupPolicy(args *ModifySecurityGroupPolicyArgs) 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) NewAssociateEipAddress(args *AssociateEipAddressArgs) error
- func (client *Client) NewUnassociateEipAddress(args *UnallocateEipAddressArgs) 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) ResizeDisk(diskId string, sizeGB int) 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) UnassignPrivateIpAddresses(args *UnassignPrivateIpAddressesArgs) (resp *UnassignPrivateIpAddressesResponse, err 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) WaitForNetworkInterface(regionId common.Region, eniID string, status string, timeout int) error
- func (client *Client) WaitForRouterInterfaceAsyn(regionId common.Region, interfaceId string, status InterfaceStatus, ...) error
- func (client *Client) WaitForSnapShotReady(regionId common.Region, snapshotId string, timeout int) error
- func (client *Client) WaitForSnatEntryAvailable(regionId common.Region, snatTableId, snatEntryId 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 CpuOptionsType
- type CreateDiskArgs
- type CreateDisksResponse
- type CreateForwardEntryArgs
- type CreateForwardEntryResponse
- type CreateImageArgs
- type CreateImageResponse
- type CreateInstanceArgs
- type CreateInstanceResponse
- type CreateKeyPairArgs
- type CreateKeyPairResponse
- type CreateNatGatewayArgs
- type CreateNatGatewayResponse
- type CreateNetworkInterfaceArgs
- type CreateNetworkInterfaceResponse
- type CreateRouteEntryArgs
- type CreateRouteEntryResponse
- type CreateRouterInterfaceArgs
- type CreateRouterInterfaceResponse
- type CreateSecurityGroupArgs
- type CreateSecurityGroupResponse
- type CreateSnapshotArgs
- type CreateSnapshotResponse
- type CreateSnatEntryArgs
- type CreateSnatEntryResponse
- type CreateVSwitchArgs
- type CreateVSwitchResponse
- type CreateVpcArgs
- type CreateVpcResponse
- type DataDiskType
- type DedicatedHostAttributeType
- type DedicatedInstanceAttributeType
- type DeleteBandwidthPackageArgs
- type DeleteBandwidthPackageResponse
- type DeleteDiskArgs
- type DeleteDiskResponse
- type DeleteForwardEntryArgs
- type DeleteForwardEntryResponse
- type DeleteImageArgs
- type DeleteImageResponse
- type DeleteInstanceArgs
- type DeleteInstanceResponse
- type DeleteKeyPairsArgs
- type DeleteNatGatewayArgs
- type DeleteNatGatewayResponse
- type DeleteNetworkInterfaceArgs
- type DeleteNetworkInterfaceResponse
- 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 DescribeAvailableResourceArgs
- type DescribeAvailableResourceResponse
- 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 DescribeInstanceAutoRenewAttributeArgs
- type DescribeInstanceAutoRenewAttributeResponse
- type DescribeInstanceMonitorDataArgs
- type DescribeInstanceMonitorDataResponse
- type DescribeInstanceRamRoleResponse
- type DescribeInstanceStatusArgs
- type DescribeInstanceStatusResponse
- type DescribeInstanceTypeFamiliesArgs
- type DescribeInstanceTypeFamiliesResponse
- type DescribeInstanceTypesArgs
- type DescribeInstanceTypesResponse
- type DescribeInstanceVncUrlArgs
- type DescribeInstanceVncUrlResponse
- type DescribeInstancesArgs
- type DescribeInstancesResponse
- type DescribeKeyPairsArgs
- type DescribeKeyPairsResponse
- type DescribeNatGatewayResponse
- type DescribeNatGatewaysArgs
- type DescribeNetworkInterfacesArgs
- type DescribeNetworkInterfacesResponse
- type DescribeRegionsArgs
- type DescribeRegionsResponse
- type DescribeResourceByTagsArgs
- type DescribeResourceByTagsResponse
- type DescribeRouteEntryListArgs
- type DescribeRouteEntryListResponse
- type DescribeRouteTablesArgs
- type DescribeRouteTablesResponse
- type DescribeRouterInterfacesArgs
- type DescribeRouterInterfacesResponse
- 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 DetachKeyPairArgs
- type DetachNetworkInterfaceArgs
- type DetachNetworkInterfaceResponse
- type Direction
- type DiskCategory
- type DiskChargeType
- type DiskDeviceMapping
- type DiskItemType
- type DiskMonitorDataType
- type DiskPerformanceLevel
- type DiskStatus
- type DiskType
- type EcsCapacityReservationAttrType
- type EcsCommonResponse
- type EipAddressAssociateType
- type EipAddressSetType
- type EipInstanceType
- type EipMonitorDataType
- type EipStatus
- type Filter
- type ForwardTableEntrySetType
- type ForwardTableIdType
- type GroupInnerAccessPolicy
- type HibernationOptionsType
- type ImageFormatType
- type ImageOwnerAlias
- type ImageSharePermissionResponse
- type ImageStatus
- type ImageType
- type ImageUsage
- type ImportImageArgs
- type ImportImageResponse
- type ImportKeyPairArgs
- type ImportKeyPairResponse
- type InstanceAttributesType
- type InstanceIdSets
- type InstanceMonitorDataType
- type InstanceNetworkInterfaceType
- type InstanceRamRoleSetType
- type InstanceRenewAttribute
- type InstanceStatus
- type InstanceStatusItemType
- type InstanceTypeFamilies
- type InstanceTypeFamily
- type InstanceTypeItemType
- type InterfaceStatus
- type IoOptimized
- type IpAddressSetType
- type IpListItem
- type IpListsType
- type IpProtocol
- type Ipv6SetType
- type KeyPairItemType
- type LockReason
- type LockReasonType
- type MetadataOptionsType
- type ModifyDiskAttributeArgs
- type ModifyDiskAttributeResponse
- type ModifyEipAddressAttributeArgs
- type ModifyEipAddressAttributeResponse
- type ModifyForwardEntryArgs
- type ModifyForwardEntryResponse
- type ModifyImageSharePermissionArgs
- type ModifyInstanceAttributeArgs
- type ModifyInstanceAttributeResponse
- type ModifyInstanceAutoReleaseTimeArgs
- type ModifyInstanceAutoReleaseTimeResponse
- type ModifyInstanceAutoRenewAttributeArgs
- type ModifyInstanceChargeTypeArgs
- type ModifyInstanceChargeTypeResponse
- type ModifyInstanceNetworkSpec
- type ModifyInstanceNetworkSpecResponse
- type ModifyInstanceSpecArgs
- type ModifyInstanceSpecResponse
- type ModifyInstanceVpcAttributeArgs
- type ModifyInstanceVpcAttributeResponse
- type ModifyNatGatewayAttributeArgs
- type ModifyNatGatewayAttributeResponse
- type ModifyNatGatewaySpecArgs
- type ModifyNetworkInterfaceAttributeArgs
- type ModifyNetworkInterfaceAttributeResponse
- type ModifyRouterInterfaceAttributeArgs
- type ModifyRouterInterfaceSpecArgs
- type ModifyRouterInterfaceSpecResponse
- type ModifySecurityGroupAttributeArgs
- type ModifySecurityGroupAttributeResponse
- type ModifySecurityGroupPolicyArgs
- type ModifySnatEntryArgs
- type ModifySnatEntryResponse
- type ModifyVRouterAttributeArgs
- type ModifyVRouterAttributeResponse
- type ModifyVSwitchAttributeArgs
- type ModifyVSwitchAttributeResponse
- type ModifyVpcAttributeArgs
- type ModifyVpcAttributeResponse
- type NatGatewaySetType
- type NatGatewaySpec
- type NatType
- type NetworkInterfaceType
- type NewAvailableResourcesType
- type NextHop
- type NextHopItemType
- type NextHopListType
- type NextHopRelatedInfo
- type NextHopType
- type NicType
- type OperateRouterInterfaceArgs
- type OperationLocksType
- type PermissionPolicy
- type PermissionType
- type PrivateIpSetType
- type PrivateIpType
- type PrivatePoolOptionsType
- type PublicIpAddresseType
- type RdmaIpAddressType
- type ReInitDiskArgs
- type ReInitDiskResponse
- type RebootInstanceArgs
- type RebootInstanceResponse
- type RegionType
- type ReleaseEipAddressArgs
- type ReleaseEipAddressResponse
- type RemoveTagsArgs
- type RemoveTagsResponse
- type RenewalStatus
- type ReplaceSystemDiskArgs
- type ReplaceSystemDiskResponse
- type ResetDiskArgs
- type ResetDiskResponse
- type ResizeDiskArgs
- type ResizeDiskResponse
- type ResourceItemType
- type ResourceType
- type ResourcesInfoType
- type RevokeSecurityGroupArgs
- type RevokeSecurityGroupEgressArgs
- type RevokeSecurityGroupEgressResponse
- type RevokeSecurityGroupResponse
- type Role
- type RouteEntry
- type RouteEntrySetType
- type RouteEntryStatus
- type RouteTableSetType
- type RouteTableType
- type RouterInterfaceItemType
- type RouterType
- type RunInstanceArgs
- type RunInstanceResponse
- type SecurityEnhancementStrategy
- type SecurityGroupArgs
- type SecurityGroupIdSetType
- type SecurityGroupItemType
- type SecurityGroupResponse
- type SecurityGroupType
- type SnapshotType
- type SnatEntrySetType
- type SnatEntryStatus
- type SnatTableIdType
- type Spec
- type SpotStrategyType
- type StartInstanceArgs
- type StartInstanceResponse
- type StopInstanceArgs
- type StopInstanceResponse
- type StringOrBool
- type SupportedResourceType
- type SupportedResourcesType
- type SystemDiskType
- type TagItemType
- type TagResourceType
- type TagType
- type UnallocateEipAddressArgs
- type UnallocateEipAddressResponse
- type UnassignPrivateIpAddressesArgs
- type UnassignPrivateIpAddressesResponse
- 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") DiskCategoryCloudESSD = DiskCategory("cloud_essd") )
const ( DiskPL0 = DiskCategory("PL0") DiskPL1 = DiskCategory("PL1") DiskPL2 = DiskCategory("PL2") DiskPL3 = DiskCategory("PL3") )
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 ( RAW = ImageFormatType("RAW") VHD = ImageFormatType("VHD") )
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
const ( LockReasonFinancial = LockReason("financial") LockReasonSecurity = LockReason("security") )
const ( NoSpot = SpotStrategyType("NoSpot") SpotWithPriceLimit = SpotStrategyType("SpotWithPriceLimit") SpotAsPriceGo = SpotStrategyType("SpotAsPriceGo") )
Constants of SpotStrategyType
const ( RenewAutoRenewal = RenewalStatus("AutoRenewal") RenewNormal = RenewalStatus("Normal") RenewNotRenewal = RenewalStatus("NotRenewal") )
const ( NgwNatTypeNormal = NatType("Normal") NgwNatTypeEnhanced = NatType("Enhanced") )
const ( NatGatewaySmallSpec = NatGatewaySpec("Small") NatGatewayMiddleSpec = NatGatewaySpec("Middle") NatGatewayLargeSpec = NatGatewaySpec("Large") )
const ( EcsInstance = "EcsInstance" SlbInstance = "SlbInstance" Nat = "Nat" HaVip = "HaVip" NetworkInterface = "NetworkInterface" )
const ( NAT = "NAT" MULTI_BINDED = "MULTI_BINDED" BINDED = "BINDED" )
const ( EipStatusAssociating = EipStatus("Associating") EipStatusUnassociating = EipStatus("Unassociating") EipStatusInUse = EipStatus("InUse") EipStatusAvailable = EipStatus("Available") )
const ( AssociatedInstanceTypeEcsInstance = AssociatedInstanceType("EcsInstance") AssociatedInstanceTypeSlbInstance = AssociatedInstanceType("SlbInstance") AssociatedInstanceTypeNat = AssociatedInstanceType("Nat") AssociatedInstanceTypeHaVip = AssociatedInstanceType("HaVip") AssociatedInstanceTypeNetworkInterface = AssociatedInstanceType("NetworkInterface") )
const ( RouteTableSystem = RouteTableType("System") RouteTableCustom = RouteTableType("Custom") )
const ( RouteEntryStatusPending = RouteEntryStatus("Pending") RouteEntryStatusAvailable = RouteEntryStatus("Available") RouteEntryStatusModifying = RouteEntryStatus("Modifying") )
const ( NextHopInstance = NextHopType("Instance") //Default NextHopHaVip = NextHopType("HaVip") NextHopRouterInterface = NextHopType("RouterInterface") NextHopNetworkInterface = NextHopType("NetworkInterface") NextHopVpnGateway = NextHopType("VpnGateway") NextHopIPv6Gateway = NextHopType("IPv6Gateway") NextHopTunnel = NextHopType("Tunnel") )
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") )
const ( NicTypeInternet = NicType("internet") NicTypeIntranet = NicType("intranet") DirectionIngress = Direction("ingress") DirectionEgress = Direction("egress") DirectionAll = Direction("all") SecurityGroupTypeNormal = SecurityGroupType("normal") SecurityGroupTypeEnterprise = SecurityGroupType("enterprise") )
const ( IpProtocolAll = IpProtocol("all") IpProtocolTCP = IpProtocol("tcp") IpProtocolUDP = IpProtocol("udp") IpProtocolICMP = IpProtocol("icmp") IpProtocolGRE = IpProtocol("gre") )
const ( PermissionPolicyAccept = PermissionPolicy("accept") PermissionPolicyDrop = PermissionPolicy("drop") )
const ( GroupInnerAccept = GroupInnerAccessPolicy("Accept") GroupInnerDrop = GroupInnerAccessPolicy("Drop") )
const ( SnatEntryStatusPending = SnatEntryStatus("Pending") SnatEntryStatusAvailable = SnatEntryStatus("Available") )
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 ( SupportedInstanceType = SupportedResourceType("supportedInstanceType") SupportedInstanceTypeFamily = SupportedResourceType("supportedInstanceTypeFamily") SupportedInstanceGeneration = SupportedResourceType("supportedInstanceGeneration") SupportedSystemDiskCategory = SupportedResourceType("supportedSystemDiskCategory") SupportedDataDiskCategory = SupportedResourceType("supportedDataDiskCategory") SupportedNetworkCategory = SupportedResourceType("supportedNetworkCategory") )
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 NetworkInterfacesDefaultTimeout = 120
Default timeout value for WaitForInstance method
const SnapshotDefaultTimeout = 120
Default timeout value for WaitForSnapShotReady method
Variables ¶
var ( IoOptimizedNone = IoOptimized("none") IoOptimizedOptimized = IoOptimized("optimized") )
var ( InactiveSecurityEnhancementStrategy = SecurityEnhancementStrategy("Active") DeactiveSecurityEnhancementStrategy = SecurityEnhancementStrategy("Deactive") )
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 AssociateEipAddressArgs struct { AllocationId string InstanceId string InstanceRegionId common.Region InstanceType EipInstanceType PrivateIpAddress string Mode AssociateEipAddressMode }
type AssociateEipAddressMode ¶
type AssociateEipAddressMode string
type AssociatedInstanceType ¶
type AssociatedInstanceType string
type AssociatedPublicIp ¶
type AttachDiskArgs ¶
type AttachDiskResponse ¶
type AttachInstancesArgs ¶
type AttachKeyPairArgs ¶
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 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 BusinessInfo ¶
type CancelCopyImageRequest ¶
type CancelCopyImageRequest struct { ImageId string // contains filtered or unexported fields }
type Client ¶
func NewClientWithEndpoint ¶
func NewClientWithRegion ¶
func NewECSClient ¶
--------------------------------------- NewECSClient creates a new instance of ECS client ---------------------------------------
func NewECSClientWithSecurityToken4RegionalDomain ¶
func NewECSClientWithSecurityToken4RegionalDomain(accessKeyId string, accessKeySecret string, securityToken string, regionID common.Region) *Client
only for Hangzhou Regional Domain
func NewVPCClient ¶
--------------------------------------- NewVPCClient creates a new instance of VPC 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 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 ¶
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 ¶
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 ¶
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 ¶
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) 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 ¶
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 ¶
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) DescribeAvailableResource ¶
func (client *Client) DescribeAvailableResource(args *DescribeAvailableResourceArgs) (response *DescribeAvailableResourceResponse, err error)
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) DescribeInstanceAutoRenewAttribute ¶
func (client *Client) DescribeInstanceAutoRenewAttribute(args *DescribeInstanceAutoRenewAttributeArgs) (*DescribeInstanceAutoRenewAttributeResponse, error)
You can read doc at https://www.alibabacloud.com/help/doc-detail/52844.htm
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) 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) 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 ¶
DescribeZones describes zones
func (*Client) DescribeZonesWithRaw ¶
func (client *Client) DescribeZonesWithRaw(regionId common.Region) (response *DescribeZonesResponse, err error)
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) 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 ¶
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) ModifyInstanceAutoReleaseTime ¶
对给定的实例设定自动释放时间。
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.
- 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 ¶
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) ResizeDisk ¶
ResizeDisk can only support to enlarge disk size You can read doc at https://help.aliyun.com/document_detail/25522.html
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) }
Output:
func (*Client) UnassignPrivateIpAddresses ¶
func (client *Client) UnassignPrivateIpAddresses(args *UnassignPrivateIpAddressesArgs) (resp *UnassignPrivateIpAddressesResponse, err error)
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) 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 ¶
WaitForVSwitchAvailable waits for VSwitch to given status
type CopyImageArgs ¶
type CopyImageResponse ¶
type CpuOptionsType ¶
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 arguments to create image
type CreateImageResponse ¶
type CreateInstanceArgs ¶
type CreateInstanceArgs struct { RegionId common.Region ZoneId string ImageId string ImageFamily string InstanceType string SecurityGroupId string InstanceName string Description string InternetChargeType common.InternetChargeType InternetMaxBandwidthIn int InternetMaxBandwidthOut int HostName string Password string PasswordInherit bool DeploymentSetId string ClusterId string VlanId string InnerIpAddress string IoOptimized IoOptimized UseAdditionalService *bool 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 SpotDuration *int SpotInterruptionBehavior string KeyPairName string RamRoleName string SecurityEnhancementStrategy SecurityEnhancementStrategy ResourceGroupId string HpcClusterId string DryRun bool DedicatedHostId string CreditSpecification string DeletionProtection bool Affinity string Tenancy string StorageSetId string StorageSetPartitionNumber int HttpEndpoint string HttpTokens string PrivatePoolOptions []PrivatePoolOptionsType Tag []TagType }
type CreateInstanceResponse ¶
type CreateKeyPairArgs ¶
type CreateKeyPairResponse ¶
type CreateNatGatewayArgs ¶
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 CreateRouteEntryArgs ¶
type CreateRouteEntryArgs struct { RouteTableId string DestinationCidrBlock string NextHopType NextHopType NextHopId string ClientToken string }
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 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 DeleteKeyPairsArgs ¶
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 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 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 DescribeInstanceAttributeArgs ¶
type DescribeInstanceAttributeArgs struct {
InstanceId string
}
type DescribeInstanceAttributeResponse ¶
type DescribeInstanceAttributeResponse struct { common.Response InstanceAttributesType }
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 DescribeInstanceTypeFamiliesResponse ¶
type DescribeInstanceTypeFamiliesResponse struct { common.Response InstanceTypeFamilies InstanceTypeFamilies }
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 EipAddresses string InstanceChargeType common.InstanceChargeType InternetChargeType common.InternetChargeType ImageId string LockReason string SecurityGroupId string InstanceType string SpotStrategy SpotStrategyType common.Pagination NextToken string MaxResults int Filter []Filter IoOptimized *bool InstanceTypeFamily string KeyPairName string ResourceGroupId string HpcClusterId string RdmaIpAddresses string DryRun bool HttpEndpoint string HttpTokens string Tag []TagType }
type DescribeInstancesResponse ¶
type DescribeInstancesResponse struct { common.Response common.PaginationResult NextToken string Instances struct { Instance []InstanceAttributesType } }
type DescribeKeyPairsArgs ¶
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 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 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 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 DescribeSecurityGroupAttributeResponse ¶
type DescribeSecurityGroupAttributeResponse struct { common.Response SecurityGroupId string SecurityGroupName string RegionId common.Region Description string Permissions struct { Permission []PermissionType } VpcId string InnerAccessPolicy GroupInnerAccessPolicy }
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 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 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 DetachKeyPairArgs ¶
type DetachNetworkInterfaceArgs ¶
type DetachNetworkInterfaceArgs AttachNetworkInterfaceArgs
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 EcsCommonResponse ¶
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 ForwardTableIdType ¶
type ForwardTableIdType struct {
ForwardTableId []string
}
type GroupInnerAccessPolicy ¶
type GroupInnerAccessPolicy string
type HibernationOptionsType ¶
type HibernationOptionsType struct {
Configured bool
}
type ImageFormatType ¶
type ImageFormatType string
type ImageSharePermissionResponse ¶
type ImageSharePermissionResponse struct { AccountType } }Account []
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 arguments to import image from oss
type ImportImageResponse ¶
type ImportKeyPairArgs ¶
type ImportKeyPairResponse ¶
type InstanceAttributesType ¶
type InstanceAttributesType struct { AutoReleaseTime string InstanceId string InstanceName string Description string ImageId string RegionId common.Region ZoneId string Cpu int CpuOptions CpuOptionsType 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 CreditSpecification string DedicatedHostAttribute DedicatedHostAttributeType DedicatedInstanceAttribute DedicatedInstanceAttributeType DeletionProtection bool DeploymentSetGroupNo int DeploymentSetId string DeviceAvailable bool EcsCapacityReservationAttr EcsCapacityReservationAttrType VpcAttributes VpcAttributesType EipAddress EipAddressAssociateType IoOptimized StringOrBool InstanceChargeType common.InstanceChargeType ExpiredTime util.ISO6801Time GPUAmount int GPUSpec string HibernationOptions HibernationOptionsType HpcClusterId string ISP string LocalStorageAmount int LocalStorageCapacity int MetadataOptions MetadataOptionsType NetworkInterfaces struct { NetworkInterface []InstanceNetworkInterfaceType } OSName string OSNameEn string OSType string RdmaIpAddress RdmaIpAddressType Recyclable bool ResourceGroupId string SaleCycle string SpotDuration int StartTime string StoppedMode string Tags struct { Tag []TagItemType } VlanId string 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 InstanceNetworkInterfaceType ¶
type InstanceNetworkInterfaceType struct { Ipv6Sets struct { Ipv6Set []Ipv6SetType } MacAddress string NetworkInterfaceId string PrimaryIpAddress string Type string PrivateIpSets struct { PrivateIpSet []PrivateIpSetType } }
type InstanceRamRoleSetType ¶
type InstanceRenewAttribute ¶
type InstanceRenewAttribute struct { InstanceId string Duration int AutoRenewEnabled bool PeriodUnit string RenewalStatus RenewalStatus }
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 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 IpListsType ¶
type IpListsType struct {
IpList []IpListItem
}
type IpProtocol ¶
type IpProtocol string
type Ipv6SetType ¶
type Ipv6SetType struct {
Ipv6Address string
}
type KeyPairItemType ¶
type LockReason ¶
type LockReason string
type LockReasonType ¶
type LockReasonType struct {
LockReason LockReason
}
type MetadataOptionsType ¶
type ModifyDiskAttributeArgs ¶
type ModifyForwardEntryArgs ¶
type ModifyImageSharePermissionArgs ¶
type ModifyImageSharePermissionArgs struct {}
ModifyImageSharePermission repsents arguments to share image
type ModifyInstanceNetworkSpec ¶
type ModifyInstanceNetworkSpec struct { InstanceId string InternetMaxBandwidthOut *int InternetMaxBandwidthIn *int NetworkChargeType common.InternetChargeType }
type ModifyInstanceSpecArgs ¶
type ModifyNatGatewaySpecArgs ¶
type ModifyNatGatewaySpecArgs struct { RegionId common.Region NatGatewayId string Spec NatGatewaySpec }
type ModifySecurityGroupPolicyArgs ¶
type ModifySecurityGroupPolicyArgs struct { RegionId common.Region SecurityGroupId string InnerAccessPolicy GroupInnerAccessPolicy }
type ModifySnatEntryArgs ¶
type ModifySnatEntryResponse ¶
type ModifyVpcAttributeArgs ¶
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 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 NextHopItemType ¶
type NextHopListType ¶
type NextHopListType struct { NextHopList struct { NextHopItem []NextHopItemType } }
type NextHopRelatedInfo ¶
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 PrivateIpSetType ¶
type PrivateIpType ¶
type PrivateIpType struct { PrivateIpAddress string Primary bool AssociatedPublicIp AssociatedPublicIp }
type PrivatePoolOptionsType ¶
type PublicIpAddresseType ¶
type RdmaIpAddressType ¶
type RdmaIpAddressType struct {
RdmaIpAddress []string
}
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 RenewalStatus ¶
type RenewalStatus string
type ReplaceSystemDiskArgs ¶
type ReplaceSystemDiskArgs struct { InstanceId string ImageId string SystemDisk SystemDiskType ClientToken string }
type ResetDiskArgs ¶
type ResetDiskResponse ¶
type ResizeDiskArgs ¶
type ResizeDiskResponse ¶
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 RouteEntry ¶
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 RunInstanceResponse ¶
type RunInstanceResponse struct { common.Response InstanceIdSets InstanceIdSets }
type SecurityEnhancementStrategy ¶
type SecurityEnhancementStrategy string
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 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 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 SnatEntryStatus ¶
type SnatEntryStatus string
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 SupportedResourceType ¶
type SupportedResourceType string
The sub-item of the type AvailableResourcesType
type SupportedResourcesType ¶
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 TagResourceType ¶
type TagResourceType string
type UnallocateEipAddressArgs ¶
type UnallocateEipAddressArgs struct { AllocationId string InstanceId string InstanceType EipInstanceType PrivateIpAddress 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 SecondaryCidrBlocks struct { SecondaryCidrBlock []string } RouterTableIds struct { RouterTableIds []string } }
You can read doc at http://docs.aliyun.com/#/pub/ecs/open-api/datatype&vpcsettype
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