aliyungo: github.com/denverdino/aliyungo/ecs Index | Examples | Files

package ecs

import "github.com/denverdino/aliyungo/ecs"

Index

Examples

Package Files

client.go disks.go eni.go forward_entry.go images.go instance_types.go instances.go monitoring.go nat_gateway.go networks.go regions.go route_entry.go route_tables.go router_interface.go security_groups.go snapshots.go snat_entry.go ssh_key_pair.go tags.go vpcs.go vrouters.go vswitches.go zones.go

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")
)

type AccountType Uses

type AccountType struct {
    AliyunId string
}

type AddTagsArgs Uses

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

type AddTagsResponse Uses

type AddTagsResponse struct {
    common.Response
}

type AllocateEipAddressArgs Uses

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

type AllocateEipAddressResponse Uses

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

type AllocatePublicIpAddressArgs Uses

type AllocatePublicIpAddressArgs struct {
    InstanceId string
}

type AllocatePublicIpAddressResponse Uses

type AllocatePublicIpAddressResponse struct {
    common.Response

    IpAddress string
}

type AssignPrivateIpAddressesArgs Uses

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

type AssignPrivateIpAddressesResponse Uses

type AssignPrivateIpAddressesResponse struct {
    common.Response

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

type AssociateEipAddressArgs Uses

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

type AssociateEipAddressMode Uses

type AssociateEipAddressMode string

type AssociateEipAddressResponse Uses

type AssociateEipAddressResponse struct {
    common.Response
}

type AssociatedInstanceType Uses

type AssociatedInstanceType string

type AssociatedPublicIp Uses

type AssociatedPublicIp struct {
    PublicIpAddress string
    AllocationId    string
}

type AttachDiskArgs Uses

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

type AttachDiskResponse Uses

type AttachDiskResponse struct {
    common.Response
}

type AttachInstancesArgs Uses

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

type AttachKeyPairArgs Uses

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

type AttachNetworkInterfaceArgs Uses

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

type AttachNetworkInterfaceResponse Uses

type AttachNetworkInterfaceResponse common.Response

type AuthorizeSecurityGroupArgs Uses

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 Uses

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

type AuthorizeSecurityGroupEgressResponse Uses

type AuthorizeSecurityGroupEgressResponse struct {
    common.Response
}

type AuthorizeSecurityGroupResponse Uses

type AuthorizeSecurityGroupResponse struct {
    common.Response
}

type AvailableDiskCategoriesType Uses

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 Uses

type AvailableInstanceTypesType struct {
    InstanceTypes []string
}

type AvailableResourceCreationType Uses

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 Uses

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 Uses

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

type BandwidthPackageIdType Uses

type BandwidthPackageIdType struct {
    BandwidthPackageId []string
}

type BandwidthPackageType Uses

type BandwidthPackageType struct {
    IpCount   int
    Bandwidth int
    Zone      string
}

type BusinessInfo Uses

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

type CancelCopyImageRequest Uses

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

type Client Uses

type Client struct {
    common.Client
}

func NewClient Uses

func NewClient(accessKeyId, accessKeySecret string) *Client

NewClient creates a new instance of ECS client

func NewClientWithEndpoint Uses

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

func NewClientWithRegion Uses

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

func NewECSClient Uses

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

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

func NewECSClientWithEndpoint Uses

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

func NewECSClientWithEndpointAndSecurityToken Uses

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

func NewECSClientWithEndpointAndSecurityToken4RegionalDomain Uses

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

func NewECSClientWithSecurityToken Uses

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

func NewECSClientWithSecurityToken4RegionalDomain Uses

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

only for Hangzhou Regional Domain

func NewVPCClient Uses

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

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

func NewVPCClientWithEndpoint Uses

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

func NewVPCClientWithEndpointAndSecurityToken Uses

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

func NewVPCClientWithEndpointAndSecurityToken4RegionalDomain Uses

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

Only for Hangzhou

func NewVPCClientWithRegion Uses

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

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

func NewVPCClientWithSecurityToken Uses

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

func NewVPCClientWithSecurityToken4RegionalDomain Uses

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

Only for Hangzhou

func (*Client) ActivateRouterInterface Uses

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 Uses

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 Uses

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 Uses

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

AllocatePublicIpAddress allocates Public Ip Address

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

func (*Client) AssignPrivateIpAddresses Uses

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

func (*Client) AssociateEipAddress Uses

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

AssociateEipAddress associates EIP address to instance

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

func (*Client) AttachDisk Uses

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 Uses

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 Uses

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 Uses

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

func (*Client) AuthorizeSecurityGroup Uses

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 Uses

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 Uses

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

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

func (*Client) ConnectRouterInterface Uses

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 Uses

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

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

func (*Client) CreateDisk Uses

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 Uses

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

func (*Client) CreateImage Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

func (*Client) CreateRouteEntry Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

func (*Client) CreateVSwitch Uses

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 Uses

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 Uses

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 Uses

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

func (*Client) DeleteDisk Uses

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

DeleteDisk deletes disk

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

func (*Client) DeleteForwardEntry Uses

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

func (*Client) DeleteImage Uses

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

DeleteImage deletes Image

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

func (*Client) DeleteImageWithForce Uses

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 Uses

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

DeleteInstance deletes instance

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

Code:

fmt.Printf("Delete Instance Example")

client := NewTestClient()

err := client.DeleteInstance(TestInstanceId)

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

func (*Client) DeleteKeyPairs Uses

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 Uses

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

func (*Client) DeleteNetworkInterface Uses

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

func (*Client) DeleteRouteEntry Uses

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 Uses

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 Uses

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

DeleteSecurityGroup deletes security group

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

func (*Client) DeleteSnapshot Uses

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

DeleteSnapshot deletes snapshot

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

func (*Client) DeleteSnatEntry Uses

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

func (*Client) DeleteVSwitch Uses

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

DeleteVSwitch deletes Virtual Switch

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

func (*Client) DeleteVpc Uses

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

DeleteVpc deletes Virtual Private Cloud

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

func (*Client) DescribeAvailableResource Uses

func (client *Client) DescribeAvailableResource(args *DescribeAvailableResourceArgs) (response *DescribeAvailableResourceResponse, err error)

https://www.alibabacloud.com/help/doc-detail/66186.htm

func (*Client) DescribeBandwidthPackages Uses

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

func (*Client) DescribeDiskMonitorData Uses

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 Uses

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 Uses

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

func (*Client) DescribeEipAddresses Uses

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 Uses

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

func (*Client) DescribeEipMonitorData Uses

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 Uses

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

func (*Client) DescribeForwardTableEntriesWithRaw Uses

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

func (*Client) DescribeImageSharePermission Uses

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

func (*Client) DescribeImages Uses

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 Uses

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

func (*Client) DescribeInstanceAttribute Uses

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

Code:

fmt.Printf("DescribeInstanceAttribute Example\n")

client := NewTestClient()

instanceAttributeType, err := client.DescribeInstanceAttribute(TestInstanceId)

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

func (*Client) DescribeInstanceAutoRenewAttribute Uses

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 Uses

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 Uses

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 Uses

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

Code:

fmt.Printf("DescribeInstanceStatus Example\n")

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

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

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

func (*Client) DescribeInstanceStatusWithRaw Uses

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

func (*Client) DescribeInstanceTypeFamilies Uses

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

func (*Client) DescribeInstanceTypes Uses

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 Uses

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

support user args

func (*Client) DescribeInstanceVncUrl Uses

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

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

Code:

fmt.Printf("DescribeInstanceVncUrl Example\n")

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

client := NewTestClient()

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

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

func (*Client) DescribeInstances Uses

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 Uses

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

func (*Client) DescribeKeyPairs Uses

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 Uses

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

func (*Client) DescribeNatGateways Uses

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

func (*Client) DescribeNatGatewaysWithRaw Uses

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

func (*Client) DescribeNetworkInterfaces Uses

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

func (*Client) DescribeRegions Uses

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 Uses

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 Uses

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

func (*Client) DescribeRouteEntryList Uses

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

DescribeRouteEntryList describes route entries

func (*Client) DescribeRouteTables Uses

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 Uses

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

func (*Client) DescribeRouterInterfaces Uses

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 Uses

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 Uses

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 Uses

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

func (*Client) DescribeSnapshots Uses

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 Uses

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

func (*Client) DescribeSnatTableEntries Uses

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

func (*Client) DescribeSnatTableEntriesWithRaw Uses

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

func (*Client) DescribeTags Uses

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 Uses

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 Uses

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 Uses

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

func (*Client) DescribeVSwitches Uses

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 Uses

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

func (*Client) DescribeVpcs Uses

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 Uses

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

func (*Client) DescribeZones Uses

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

DescribeZones describes zones

func (*Client) DescribeZonesWithRaw Uses

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

func (*Client) DetachDisk Uses

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

DetachDisk detaches disk from instance

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

func (*Client) DetachInstanceRamRole Uses

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 Uses

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 Uses

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

func (*Client) ImportImage Uses

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

func (*Client) ImportKeyPair Uses

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 Uses

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

JoinSecurityGroup

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

func (*Client) LeaveSecurityGroup Uses

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

LeaveSecurityGroup

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

func (*Client) ModifyDiskAttribute Uses

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 Uses

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

ModifyEipAddressAttribute Modifies EIP attribute

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

func (*Client) ModifyForwardEntry Uses

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

func (*Client) ModifyImageSharePermission Uses

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 Uses

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 Uses

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

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

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

func (*Client) ModifyInstanceAutoRenewAttribute Uses

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

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

func (*Client) ModifyInstanceChargeType Uses

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 Uses

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 Uses

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.

2. 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 Uses

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 Uses

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

func (*Client) ModifyNatGatewaySpec Uses

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

func (*Client) ModifyNetworkInterfaceAttribute Uses

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

func (*Client) ModifyRouterInterfaceAttribute Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

func (*Client) ModifyVRouterAttribute Uses

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 Uses

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 Uses

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 Uses

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

func (*Client) NewUnassociateEipAddress Uses

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

func (*Client) ReInitDisk Uses

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

ReInitDisk reinitizes disk

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

func (*Client) RebootInstance Uses

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

RebootInstance reboot instance

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

func (*Client) ReleaseEipAddress Uses

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

ReleaseEipAddress releases Eip address

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

func (*Client) RemoveTags Uses

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 Uses

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 Uses

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

ResetDisk resets disk to original status

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

func (*Client) ResizeDisk Uses

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

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

func (*Client) RevokeSecurityGroup Uses

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 Uses

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 Uses

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

func (*Client) StartInstance Uses

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

StartInstance starts instance

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

func (*Client) StopInstance Uses

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

StopInstance stops instance

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

Code:

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

client := NewTestClient()

err := client.StopInstance(TestInstanceId, true)

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

func (*Client) UnassignPrivateIpAddresses Uses

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

func (*Client) UnassociateEipAddress Uses

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

UnassociateEipAddress unallocates Eip Address from instance

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

func (*Client) WaitForAllRouteEntriesAvailable Uses

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

WaitForAllRouteEntriesAvailable waits for all route entries to Available status

func (*Client) WaitForDisk Uses

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

WaitForDisk waits for disk to given status

func (*Client) WaitForEip Uses

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

WaitForVSwitchAvailable waits for VSwitch to given status

func (*Client) WaitForImageReady Uses

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

Wait Image ready

func (*Client) WaitForInstance Uses

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

WaitForInstance waits for instance to given status

func (*Client) WaitForInstanceAsyn Uses

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 Uses

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

WaitForInstance waits for instance to given status

func (*Client) WaitForRouterInterfaceAsyn Uses

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 Uses

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

WaitForSnapShotReady waits for snapshot ready

func (*Client) WaitForSnatEntryAvailable Uses

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

WaitForSnatEntryAvailable waits for SnatEntry to available status

func (*Client) WaitForVSwitchAvailable Uses

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

WaitForVSwitchAvailable waits for VSwitch to given status

func (*Client) WaitForVpcAvailable Uses

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

WaitForInstance waits for instance to given status

type CopyImageArgs Uses

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

type CopyImageResponse Uses

type CopyImageResponse struct {
    common.Response
    ImageId string
}

type CreateDiskArgs Uses

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

    PerformanceLevel DiskPerformanceLevel
}

type CreateDisksResponse Uses

type CreateDisksResponse struct {
    common.Response
    DiskId string
}

type CreateForwardEntryArgs Uses

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

type CreateForwardEntryResponse Uses

type CreateForwardEntryResponse struct {
    common.Response
    ForwardEntryId string
}

type CreateImageArgs Uses

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 Uses

type CreateImageResponse struct {
    common.Response

    ImageId string
}

type CreateInstanceArgs Uses

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

type CreateInstanceResponse Uses

type CreateInstanceResponse struct {
    common.Response
    InstanceId string
}

type CreateKeyPairArgs Uses

type CreateKeyPairArgs struct {
    RegionId    common.Region
    KeyPairName string
}

type CreateKeyPairResponse Uses

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

type CreateNatGatewayArgs Uses

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

type CreateNatGatewayResponse Uses

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

type CreateNetworkInterfaceArgs Uses

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

type CreateNetworkInterfaceResponse Uses

type CreateNetworkInterfaceResponse struct {
    common.Response
    NetworkInterfaceId string
}

type CreateRouteEntryArgs Uses

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

type CreateRouteEntryResponse Uses

type CreateRouteEntryResponse struct {
    common.Response
}

type CreateRouterInterfaceArgs Uses

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

type CreateRouterInterfaceResponse Uses

type CreateRouterInterfaceResponse struct {
    common.Response
    RouterInterfaceId string
}

type CreateSecurityGroupArgs Uses

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

type CreateSecurityGroupResponse Uses

type CreateSecurityGroupResponse struct {
    common.Response

    SecurityGroupId string
}

type CreateSnapshotArgs Uses

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

type CreateSnapshotResponse Uses

type CreateSnapshotResponse struct {
    common.Response
    SnapshotId string
}

type CreateSnatEntryArgs Uses

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

type CreateSnatEntryResponse Uses

type CreateSnatEntryResponse struct {
    common.Response
    SnatEntryId string
}

type CreateVSwitchArgs Uses

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

type CreateVSwitchResponse Uses

type CreateVSwitchResponse struct {
    common.Response
    VSwitchId string
}

type CreateVpcArgs Uses

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

type CreateVpcResponse Uses

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

type DataDiskType Uses

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

type DeleteBandwidthPackageArgs Uses

type DeleteBandwidthPackageArgs struct {
    RegionId           common.Region
    BandwidthPackageId string
}

type DeleteBandwidthPackageResponse Uses

type DeleteBandwidthPackageResponse struct {
    common.Response
}

type DeleteDiskArgs Uses

type DeleteDiskArgs struct {
    DiskId string
}

type DeleteDiskResponse Uses

type DeleteDiskResponse struct {
    common.Response
}

type DeleteForwardEntryArgs Uses

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

type DeleteForwardEntryResponse Uses

type DeleteForwardEntryResponse struct {
    common.Response
}

type DeleteImageArgs Uses

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

type DeleteImageResponse Uses

type DeleteImageResponse struct {
    common.Response
}

type DeleteInstanceArgs Uses

type DeleteInstanceArgs struct {
    InstanceId string
}

type DeleteInstanceResponse Uses

type DeleteInstanceResponse struct {
    common.Response
}

type DeleteKeyPairsArgs Uses

type DeleteKeyPairsArgs struct {
    RegionId     common.Region
    KeyPairNames string
}

type DeleteNatGatewayArgs Uses

type DeleteNatGatewayArgs struct {
    RegionId     common.Region
    NatGatewayId string
}

type DeleteNatGatewayResponse Uses

type DeleteNatGatewayResponse struct {
    common.Response
}

type DeleteNetworkInterfaceArgs Uses

type DeleteNetworkInterfaceArgs struct {
    RegionId           common.Region
    NetworkInterfaceId string
}

type DeleteNetworkInterfaceResponse Uses

type DeleteNetworkInterfaceResponse struct {
    common.Response
}

type DeleteRouteEntryArgs Uses

type DeleteRouteEntryArgs struct {
    RouteTableId         string
    DestinationCidrBlock string
    NextHopId            string
}

type DeleteRouteEntryResponse Uses

type DeleteRouteEntryResponse struct {
    common.Response
}

type DeleteSecurityGroupArgs Uses

type DeleteSecurityGroupArgs struct {
    RegionId        common.Region
    SecurityGroupId string
}

type DeleteSecurityGroupResponse Uses

type DeleteSecurityGroupResponse struct {
    common.Response
}

type DeleteSnapshotArgs Uses

type DeleteSnapshotArgs struct {
    SnapshotId string
}

type DeleteSnapshotResponse Uses

type DeleteSnapshotResponse struct {
    common.Response
}

type DeleteSnatEntryArgs Uses

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

type DeleteSnatEntryResponse Uses

type DeleteSnatEntryResponse struct {
    common.Response
}

type DeleteVSwitchArgs Uses

type DeleteVSwitchArgs struct {
    VSwitchId string
}

type DeleteVSwitchResponse Uses

type DeleteVSwitchResponse struct {
    common.Response
}

type DeleteVpcArgs Uses

type DeleteVpcArgs struct {
    VpcId string
}

type DeleteVpcResponse Uses

type DeleteVpcResponse struct {
    common.Response
}

type DescribeAvailableResourceArgs Uses

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

type DescribeAvailableResourceResponse Uses

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

type DescribeBandwidthPackageType Uses

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

    ZoneId string
}

type DescribeBandwidthPackagesArgs Uses

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

type DescribeBandwidthPackagesResponse Uses

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

type DescribeDiskMonitorDataArgs Uses

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

type DescribeDiskMonitorDataResponse Uses

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

type DescribeDisksArgs Uses

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 Uses

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

type DescribeEipAddressesArgs Uses

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 Uses

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

type DescribeEipMonitorDataArgs Uses

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

type DescribeEipMonitorDataResponse Uses

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

type DescribeForwardTableEntriesArgs Uses

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

type DescribeForwardTableEntriesResponse Uses

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

type DescribeImagesArgs Uses

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 Uses

type DescribeImagesResponse struct {
    common.Response
    common.PaginationResult

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

type DescribeInstanceAttributeArgs Uses

type DescribeInstanceAttributeArgs struct {
    InstanceId string
}

type DescribeInstanceAttributeResponse Uses

type DescribeInstanceAttributeResponse struct {
    common.Response
    InstanceAttributesType
}

type DescribeInstanceAutoRenewAttributeArgs Uses

type DescribeInstanceAutoRenewAttributeArgs struct {
    InstanceId string
    RegionId   common.Region
}

type DescribeInstanceAutoRenewAttributeResponse Uses

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

type DescribeInstanceMonitorDataArgs Uses

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

type DescribeInstanceMonitorDataResponse Uses

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

type DescribeInstanceRamRoleResponse Uses

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

type DescribeInstanceStatusArgs Uses

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

type DescribeInstanceStatusResponse Uses

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

type DescribeInstanceTypeFamiliesArgs Uses

type DescribeInstanceTypeFamiliesArgs struct {
    RegionId   common.Region
    Generation string
}

type DescribeInstanceTypeFamiliesResponse Uses

type DescribeInstanceTypeFamiliesResponse struct {
    common.Response

    InstanceTypeFamilies InstanceTypeFamilies
}

type DescribeInstanceTypesArgs Uses

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

type DescribeInstanceTypesResponse Uses

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

type DescribeInstanceVncUrlArgs Uses

type DescribeInstanceVncUrlArgs struct {
    RegionId   common.Region
    InstanceId string
}

type DescribeInstanceVncUrlResponse Uses

type DescribeInstanceVncUrlResponse struct {
    common.Response
    VncUrl string
}

type DescribeInstancesArgs Uses

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

type DescribeInstancesResponse Uses

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

type DescribeKeyPairsArgs Uses

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

type DescribeKeyPairsResponse Uses

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

type DescribeNatGatewayResponse Uses

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

type DescribeNatGatewaysArgs Uses

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

type DescribeNetworkInterfacesArgs Uses

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

type DescribeNetworkInterfacesResponse Uses

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

type DescribeRegionsArgs Uses

type DescribeRegionsArgs struct {
}

type DescribeRegionsResponse Uses

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

type DescribeResourceByTagsArgs Uses

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

type DescribeResourceByTagsResponse Uses

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

type DescribeRouteEntryListArgs Uses

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

type DescribeRouteEntryListResponse Uses

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

type DescribeRouteTablesArgs Uses

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

type DescribeRouteTablesResponse Uses

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

type DescribeRouterInterfacesArgs Uses

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

type DescribeRouterInterfacesResponse Uses

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

type DescribeSecurityGroupAttributeArgs Uses

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

type DescribeSecurityGroupAttributeResponse Uses

type DescribeSecurityGroupAttributeResponse struct {
    common.Response

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

type DescribeSecurityGroupsArgs Uses

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

type DescribeSecurityGroupsResponse Uses

type DescribeSecurityGroupsResponse struct {
    common.Response
    common.PaginationResult

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

type DescribeSnapshotsArgs Uses

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

type DescribeSnapshotsResponse Uses

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

type DescribeSnatTableEntriesArgs Uses

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

type DescribeSnatTableEntriesResponse Uses

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

type DescribeTagsArgs Uses

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

type DescribeTagsResponse Uses

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

type DescribeUserdataArgs Uses

type DescribeUserdataArgs struct {
    RegionId   common.Region
    InstanceId string
}

type DescribeUserdataItemType Uses

type DescribeUserdataItemType struct {
    UserData   string
    InstanceId string
    RegionId   string
}

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

type DescribeUserdataResponse Uses

type DescribeUserdataResponse struct {
    common.Response
    DescribeUserdataItemType
}

type DescribeVRoutersArgs Uses

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

type DescribeVRoutersResponse Uses

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

type DescribeVSwitchesArgs Uses

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

type DescribeVSwitchesResponse Uses

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

type DescribeVpcsArgs Uses

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

type DescribeVpcsResponse Uses

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

type DescribeZonesArgs Uses

type DescribeZonesArgs struct {
    RegionId common.Region
}

type DescribeZonesResponse Uses

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

type DetachDiskArgs Uses

type DetachDiskArgs struct {
    InstanceId string
    DiskId     string
}

type DetachDiskResponse Uses

type DetachDiskResponse struct {
    common.Response
}

type DetachKeyPairArgs Uses

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

type DetachNetworkInterfaceArgs Uses

type DetachNetworkInterfaceArgs AttachNetworkInterfaceArgs

type DetachNetworkInterfaceResponse Uses

type DetachNetworkInterfaceResponse common.Response

type Direction Uses

type Direction string

type DiskCategory Uses

type DiskCategory string

Categories of disks

type DiskChargeType Uses

type DiskChargeType string

Charge type of disks

type DiskDeviceMapping Uses

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 Uses

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 Uses

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

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

type DiskPerformanceLevel Uses

type DiskPerformanceLevel string

Performance Level of disks

type DiskStatus Uses

type DiskStatus string

Status of disks

type DiskType Uses

type DiskType string

Types of disks

type EcsCommonResponse Uses

type EcsCommonResponse struct {
    common.Response
}

type EipAddressAssociateType Uses

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 Uses

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 Uses

type EipInstanceType string

type EipMonitorDataType Uses

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

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

type EipStatus Uses

type EipStatus string

Status of disks

type Filter Uses

type Filter struct {
    Key   string
    Value []string
}

type ForwardTableEntrySetType Uses

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

type ForwardTableIdType Uses

type ForwardTableIdType struct {
    ForwardTableId []string
}

type GroupInnerAccessPolicy Uses

type GroupInnerAccessPolicy string

type ImageFormatType Uses

type ImageFormatType string

type ImageOwnerAlias Uses

type ImageOwnerAlias string

ImageOwnerAlias represents image owner

type ImageSharePermissionResponse Uses

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

type ImageStatus Uses

type ImageStatus string

type ImageType Uses

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

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

type ImageUsage Uses

type ImageUsage string

type ImportImageArgs Uses

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 Uses

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

type ImportKeyPairArgs Uses

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

type ImportKeyPairResponse Uses

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

type InstanceAttributesType Uses

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

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

type InstanceIdSets Uses

type InstanceIdSets struct {
    InstanceIdSet []string
}

type InstanceMonitorDataType Uses

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

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

type InstanceRamRoleSetType Uses

type InstanceRamRoleSetType struct {
    InstanceId  string
    RamRoleName string
}

type InstanceRenewAttribute Uses

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

type InstanceStatus Uses

type InstanceStatus string

InstanceStatus represents instance status

type InstanceStatusItemType Uses

type InstanceStatusItemType struct {
    InstanceId string
    Status     InstanceStatus
}

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

type InstanceTypeFamilies Uses

type InstanceTypeFamilies struct {
    InstanceTypeFamily []InstanceTypeFamily
}

type InstanceTypeFamily Uses

type InstanceTypeFamily struct {
    InstanceTypeFamilyId string
    Generation           string
}

type InstanceTypeItemType Uses

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 Uses

type InterfaceStatus string

type IoOptimized Uses

type IoOptimized string

type IpAddressSetType Uses

type IpAddressSetType struct {
    IpAddress []string
}

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

type IpListItem Uses

type IpListItem struct {
    IpAddress    string
    AllocationId string
    UsingStatus  string
}

type IpListsType Uses

type IpListsType struct {
    IpList []IpListItem
}

type IpProtocol Uses

type IpProtocol string

type KeyPairItemType Uses

type KeyPairItemType struct {
    KeyPairName        string
    KeyPairFingerPrint string
}

type LockReason Uses

type LockReason string

type LockReasonType Uses

type LockReasonType struct {
    LockReason LockReason
}

type ModifyDiskAttributeArgs Uses

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

type ModifyDiskAttributeResponse Uses

type ModifyDiskAttributeResponse struct {
    common.Response
}

type ModifyEipAddressAttributeArgs Uses

type ModifyEipAddressAttributeArgs struct {
    AllocationId string
    Bandwidth    int
}

type ModifyEipAddressAttributeResponse Uses

type ModifyEipAddressAttributeResponse struct {
    common.Response
}

type ModifyForwardEntryArgs Uses

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

type ModifyForwardEntryResponse Uses

type ModifyForwardEntryResponse struct {
    common.Response
}

type ModifyImageSharePermissionArgs Uses

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

ModifyImageSharePermission repsents arguments to share image

type ModifyInstanceAttributeArgs Uses

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

type ModifyInstanceAttributeResponse Uses

type ModifyInstanceAttributeResponse struct {
    common.Response
}

type ModifyInstanceAutoReleaseTimeArgs Uses

type ModifyInstanceAutoReleaseTimeArgs struct {
    InstanceId      string
    AutoReleaseTime string
}

type ModifyInstanceAutoReleaseTimeResponse Uses

type ModifyInstanceAutoReleaseTimeResponse struct {
    common.Response
}

type ModifyInstanceAutoRenewAttributeArgs Uses

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

type ModifyInstanceChargeTypeArgs Uses

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

type ModifyInstanceChargeTypeResponse Uses

type ModifyInstanceChargeTypeResponse struct {
    common.Response
    Order string
}

type ModifyInstanceNetworkSpec Uses

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

type ModifyInstanceNetworkSpecResponse Uses

type ModifyInstanceNetworkSpecResponse struct {
    common.Response
}

type ModifyInstanceSpecArgs Uses

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

type ModifyInstanceSpecResponse Uses

type ModifyInstanceSpecResponse struct {
    common.Response
}

type ModifyInstanceVpcAttributeArgs Uses

type ModifyInstanceVpcAttributeArgs struct {
    InstanceId       string
    VSwitchId        string
    PrivateIpAddress string
}

type ModifyInstanceVpcAttributeResponse Uses

type ModifyInstanceVpcAttributeResponse struct {
    common.Response
}

type ModifyNatGatewayAttributeArgs Uses

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

type ModifyNatGatewayAttributeResponse Uses

type ModifyNatGatewayAttributeResponse struct {
    common.Response
}

type ModifyNatGatewaySpecArgs Uses

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

type ModifyNetworkInterfaceAttributeArgs Uses

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

type ModifyNetworkInterfaceAttributeResponse Uses

type ModifyNetworkInterfaceAttributeResponse common.Response

type ModifyRouterInterfaceAttributeArgs Uses

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

type ModifyRouterInterfaceSpecArgs Uses

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

type ModifyRouterInterfaceSpecResponse Uses

type ModifyRouterInterfaceSpecResponse struct {
    common.Response
    Spec Spec
}

type ModifySecurityGroupAttributeArgs Uses

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

type ModifySecurityGroupAttributeResponse Uses

type ModifySecurityGroupAttributeResponse struct {
    common.Response
}

type ModifySecurityGroupPolicyArgs Uses

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

type ModifySnatEntryArgs Uses

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

type ModifySnatEntryResponse Uses

type ModifySnatEntryResponse struct {
    common.Response
}

type ModifyVRouterAttributeArgs Uses

type ModifyVRouterAttributeArgs struct {
    VRouterId   string
    VRouterName string
    Description string
}

type ModifyVRouterAttributeResponse Uses

type ModifyVRouterAttributeResponse struct {
    common.Response
}

type ModifyVSwitchAttributeArgs Uses

type ModifyVSwitchAttributeArgs struct {
    VSwitchId   string
    VSwitchName string
    Description string
}

type ModifyVSwitchAttributeResponse Uses

type ModifyVSwitchAttributeResponse struct {
    common.Response
}

type ModifyVpcAttributeArgs Uses

type ModifyVpcAttributeArgs struct {
    VpcId       string
    VpcName     string
    Description string
}

type ModifyVpcAttributeResponse Uses

type ModifyVpcAttributeResponse struct {
    common.Response
}

type NatGatewaySetType Uses

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 Uses

type NatGatewaySpec string

type NatType Uses

type NatType string

type NetworkInterfaceType Uses

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 Uses

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

type NextHop Uses

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

type NextHopItemType Uses

type NextHopItemType struct {
    NextHopType string
    NextHopId   string
}

type NextHopListType Uses

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

type NextHopRelatedInfo Uses

type NextHopRelatedInfo struct {
    RegionId     string
    InstanceId   string
    InstanceType string
}

type NextHopType Uses

type NextHopType string

type NicType Uses

type NicType string

type OperateRouterInterfaceArgs Uses

type OperateRouterInterfaceArgs struct {
    RegionId          common.Region
    RouterInterfaceId string
}

type OperationLocksType Uses

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 Uses

type PermissionPolicy string

type PermissionType Uses

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

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

type PrivateIpType Uses

type PrivateIpType struct {
    PrivateIpAddress   string
    Primary            bool
    AssociatedPublicIp AssociatedPublicIp
}

type PublicIpAddresseType Uses

type PublicIpAddresseType struct {
    AllocationId string
    IpAddress    string
}

type ReInitDiskArgs Uses

type ReInitDiskArgs struct {
    DiskId string
}

type ReInitDiskResponse Uses

type ReInitDiskResponse struct {
    common.Response
}

type RebootInstanceArgs Uses

type RebootInstanceArgs struct {
    InstanceId string
    ForceStop  bool
}

type RebootInstanceResponse Uses

type RebootInstanceResponse struct {
    common.Response
}

type RegionType Uses

type RegionType struct {
    RegionId  common.Region
    LocalName string
}

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

type ReleaseEipAddressArgs Uses

type ReleaseEipAddressArgs struct {
    AllocationId string
}

type ReleaseEipAddressResponse Uses

type ReleaseEipAddressResponse struct {
    common.Response
}

type RemoveTagsArgs Uses

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

type RemoveTagsResponse Uses

type RemoveTagsResponse struct {
    common.Response
}

type RenewalStatus Uses

type RenewalStatus string

type ReplaceSystemDiskArgs Uses

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

type ReplaceSystemDiskResponse Uses

type ReplaceSystemDiskResponse struct {
    common.Response
    DiskId string
}

type ResetDiskArgs Uses

type ResetDiskArgs struct {
    DiskId     string
    SnapshotId string
}

type ResetDiskResponse Uses

type ResetDiskResponse struct {
    common.Response
}

type ResizeDiskArgs Uses

type ResizeDiskArgs struct {
    DiskId  string
    NewSize int
}

type ResizeDiskResponse Uses

type ResizeDiskResponse struct {
    common.Response
}

type ResourceItemType Uses

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

type ResourceType Uses

type ResourceType string

type ResourcesInfoType Uses

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 Uses

type RevokeSecurityGroupArgs struct {
    AuthorizeSecurityGroupArgs
}

type RevokeSecurityGroupEgressArgs Uses

type RevokeSecurityGroupEgressArgs struct {
    AuthorizeSecurityGroupEgressArgs
}

type RevokeSecurityGroupEgressResponse Uses

type RevokeSecurityGroupEgressResponse struct {
    common.Response
}

type RevokeSecurityGroupResponse Uses

type RevokeSecurityGroupResponse struct {
    common.Response
}

type Role Uses

type Role string

type RouteEntry Uses

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

type RouteEntrySetType Uses

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 Uses

type RouteEntryStatus string

type RouteTableSetType Uses

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 Uses

type RouteTableType string

type RouterInterfaceItemType Uses

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 Uses

type RouterType string

type RunInstanceArgs Uses

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

type RunInstanceResponse Uses

type RunInstanceResponse struct {
    common.Response
    InstanceIdSets InstanceIdSets
}

type SecurityEnhancementStrategy Uses

type SecurityEnhancementStrategy string

type SecurityGroupArgs Uses

type SecurityGroupArgs struct {
    InstanceId      string
    SecurityGroupId string
}

type SecurityGroupIdSetType Uses

type SecurityGroupIdSetType struct {
    SecurityGroupId string
}

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

type SecurityGroupItemType Uses

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 Uses

type SecurityGroupResponse struct {
    common.Response
}

type SecurityGroupType Uses

type SecurityGroupType string

type SnapshotType Uses

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 Uses

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

type SnatEntryStatus Uses

type SnatEntryStatus string

type SnatTableIdType Uses

type SnatTableIdType struct {
    SnatTableId []string
}

type Spec Uses

type Spec string

type SpotStrategyType Uses

type SpotStrategyType string

Experimental feature

type StartInstanceArgs Uses

type StartInstanceArgs struct {
    InstanceId string
}

type StartInstanceResponse Uses

type StartInstanceResponse struct {
    common.Response
}

type StopInstanceArgs Uses

type StopInstanceArgs struct {
    InstanceId string
    ForceStop  bool
}

type StopInstanceResponse Uses

type StopInstanceResponse struct {
    common.Response
}

type StringOrBool Uses

type StringOrBool struct {
    Value bool
}

func (StringOrBool) Bool Uses

func (io StringOrBool) Bool() bool

func (StringOrBool) String Uses

func (io StringOrBool) String() string

func (*StringOrBool) UnmarshalJSON Uses

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

UnmarshalJSON implements the json.Unmarshaller interface.

type SupportedResourceType Uses

type SupportedResourceType string

The sub-item of the type AvailableResourcesType

type SupportedResourcesType Uses

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

type SystemDiskType Uses

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

type TagItemType Uses

type TagItemType struct {
    TagKey   string
    TagValue string
}

type TagResourceType Uses

type TagResourceType string

type UnallocateEipAddressArgs Uses

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

type UnallocateEipAddressResponse Uses

type UnallocateEipAddressResponse struct {
    common.Response
}

type UnassignPrivateIpAddressesArgs Uses

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

type UnassignPrivateIpAddressesResponse Uses

type UnassignPrivateIpAddressesResponse common.Response

type VRouterSetType Uses

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 Uses

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 Uses

type VSwitchStatus string

type VpcAttributesType Uses

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 Uses

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

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

type VpcStatus Uses

type VpcStatus string

type ZoneType Uses

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

Package ecs imports 9 packages (graph) and is imported by 94 packages. Updated 2020-11-17. Refresh now. Tools for package owners.