You can call this operation to create a subscription or pay-as-you-go ECS instance.

Description

Note You can call the DescribeAvailableResource operation to query available instance resources in the specified region or zone. If you want to create multiple instances at a time that automatically enter the Running state, we recommend that you call the RunInstances operation.

When you create an ECS instance, take note of the following items:

  • Billing method:
    • You must fully understand the ECS billing methods before you create an instance, because resources used by the instance may incur fees. For more information, see Billing overview.
    • If you create a subscription instance (PrePaid), available coupons under your account will be used by default.
  • Instance type:
    • You can specify the IoOptimized parameter to indicate whether to create an I/O optimized instance.
    • Select instance types: See Instance families or call the DescribeInstanceTypes operation to query the performance data of the target instance type, or see Select instance types to learn how to select instance types.
    • Query available ECS resources: You can call the DescribeAvailableResource operation to query available instance resources in the specified region or zone.
  • Image:
    • The image determines the system disk configurations of the new instance. The system disk of the new instance is a clone of the specified image.
    • If the instance memory is 512 MiB, you cannot use Windows Server images except for Windows Server Semi-Annual Channel.
    • If the instance memory is 4 GiB or more, you cannot use 32-bit OS images.
  • Network type:
    • VPC-type instances must belong to only one VSwitch.
    • When you specify VSwitchId, ensure that the security group specified by SecurityGroupId and the VSwitch specified by VSwitchId belong to the same VPC.
    • The PrivateIpAddress parameter depends on the VSwitchId parameter and cannot be specified separately. If you specify both the VSwitchId and PrivateIpAddress parameters, the specified value of the PrivateIpAddress parameter must be within the range of the idle CIDR block of the VSwitch.
  • Public bandwidth:
    • If you call the CreateInstance operation to create an instance, no public IP address is assigned to the instance. You can call the AllocatePublicIpAddress operation to allocate public IP addresses manually.
    • Settings of InternetChargeType and InternetMaxBandwidthOut determine bandwidth fees.
    • The inbound data traffic to the instance is free of charge, so the value of the InternetMaxBandwidthIn parameter is irrelevant to billing.
    • If you set InternetChargeType to PayByBandwidth, set the InternetMaxBandwidthOut parameter to specify a bandwidth value.
    • If you set InternetChargeType to PayByTraffic, set the InternetMaxBandwidthOut parameter to specify a peak bandwidth value. Actual fees are based on the network traffic.
  • Security group:
    • You can call the CreateSecurityGroup operation to create a security group before you create an instance.
    • One security group can contain a maximum of 1,000 instances.
    • Instances in the same security group can communicate with each other through an internal network. Instances in different security groups cannot communicate with each other by default. However, you can allow communication between instances by authorizing mutual access between their security groups. For more information, see AuthorizeSecurityGroup and AuthorizeSecurityGroupEgress.
  • Storage:
    • The instance is assigned a system disk whose capacity is based on the image you specified. The capacity of the system disk must be at least 20 GiB and greater than or equal to the size of the image. For more information about categories of system disks, see the description of the SystemDisk.Category parameter.
    • When the system disk is a basic disk (cloud), ultra disk (cloud_efficiency), or SSD disk (cloud_ssd), data disks cannot be local SSDs (ephemeral_ssd).
    • The system disks of I/O optimized instances can only be ultra disks (cloud_efficiency) or SSD disks (cloud_ssd).
    • The maximum capacity of data disks varies with their categories. For more information, see the description of the DataDisk.N.Size parameter.
    • A maximum of 16 data disks can be attached to an instance. The mount points of data disks are allocated by the system in the default order, from /dev/xvdb to /dev/xvdz.
    • When data disks are local SSDs (ephemeral_ssd), system disks must also be a local SSD. Excluding the system disk, the total capacity of local SSDs attached to an instance cannot exceed 1 TiB.
    • Local SSDs (ephemeral_ssd) must be specified when you create the instance and cannot be added after you create the instance.
  • User data: If the instance type supports user data, you can use the UserData parameter to pass in user data as needed. UserData is encoded in Base64. We recommend that you do not pass in confidential information such as passwords and private keys in plaintext. This is because the system does not encrypt the specified UserData value when API requests are transferred. If you must pass in confidential information, we recommend that you first encrypt and encode UserData in Base64. You can then decode and decrypt UserData in the instance.
  • Others: When you call API operations in Alibaba Cloud Command Line Interface (CLI) and SDKs, you must delete the periods (.) from input parameters before you use them. For example, use SystemDiskCategory instead of SystemDisk.Category for the input parameter.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String No CreateInstance

The operation that you want to perform. For API requests using the HTTP and HTTPS methods, this parameter is required. Set the value to CreateInstance.

InstanceType String Yes ecs.g6.large

The type of the instance.

RegionId String Yes cn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list.

ImageId String No ubuntu_18_04_64_20G_alibase_20190624.vhd

The ID of the image file used to create the instance. For Alibaba Cloud Marketplace images, you can view the ImageId on the Product Details page at Alibaba Cloud Marketplace.

SecurityGroupId String No sg-bp15ed6xe1yxeycg****

The ID of the security group to which the instance belongs. Instances in the same security group can communicate with each other.

InstanceName String No 2018-12-06T103200Z

The name of the instance. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter but cannot start with http:// or https://. If this parameter is not specified, the name is set to the instance ID by default.

InternetChargeType String No PayByTraffic

The billing method for network usage. Default value: PayByTraffic. Valid values:

  • PayByBandwidth: pay-by-bandwidth
  • PayByTraffic: pay-by-data-transfer
AutoRenew Boolean No true

Specifies whether to enable automatic renewal for the instance. This parameter is valid only when InstanceChargeType is set to PrePaid. Default value: false. Valid values:

  • true: enables auto-renewal for the instance.
  • false: disables auto-renewal for the instance.
AutoRenewPeriod Integer No 2

The auto-renewal period of the instance. This parameter is required when AutoRenew is set to true.

The valid values of AutoRenewPeriod are 1, 2, 3, 6, and 12 when PeriodUnit is set to Month.

InternetMaxBandwidthIn Integer No 50

The maximum inbound bandwidth from the Internet. Unit: Mbit/s. Valid values:

  • The valid values of InternetMaxBandwidthIn are 1 to 10 when the purchased outbound bandwidth is less than or equal to 10 Mbit/s. Default value: 10.
  • The valid values of InternetMaxBandwidthIn are 1 to the value of InternetMaxBandwidthOut when the purchased outbound bandwidth is greater than 10 Mbit/s. The default value of this parameter is the value of the InternetMaxBandwidthOut parameter.
InternetMaxBandwidthOut Integer No 5

The maximum outbound bandwidth for Internet traffic. Unit: Mbit/s. Valid values: 0 to 100.

Default value: 0.

HostName String No LocalHostName

The hostname of the instance.

  • The hostname cannot start or end with a period (.) or a hyphen (-). It cannot contain consecutive periods (.) or hyphens (-).
  • Windows: The hostname must be 2 to 15 characters in length, and can contain letters, digits, and hyphens (-). The hostname cannot contain periods (.) or only contain digits.
  • Other operating systems such as Linux: The hostname must be 2 to 64 characters in length. You can use periods (.) to separate a name into multiple segments. Each segment can contain letters, digits, and hyphens (-).
Password String No TestEcs123!

The password for the instance. The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. Special characters include


( ) ` ~ ! @ # $ % ^ & * - _ + = | { } [ ] : ; ' < > , . ? /

Passwords for Windows instances cannot start with a forward slash (/).

Note For security reasons, we recommend that you use HTTPS to send requests if the Password parameter is specified.
PasswordInherit Boolean No false

Specifies whether to use the password preset in the image. If the PasswordInherit parameter is set to true, you must not specify the Password parameter and must ensure that the selected image has a password configured.

DeploymentSetId String No ds-bp1brhwhoqinyjd6****

The ID of the deployment set.

ZoneId String No cn-hangzhou-g

The ID of the zone to which the instance belongs. For more information, call the DescribeZones operation to query the most recent zone list.

This parameter is empty by default. If you do not specify a zone, the system randomly selects a zone.

ClusterId String No c-bp67acfmxazb4p****

The ID of the cluster to which the instance belongs.

Note This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
ClientToken String No 123e4567-e89b-12d3-a456-426655440000

The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The ClientToken can only contain ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.

VlanId String No 10

The ID of the virtual local area network.

InnerIpAddress String No 192.168.*. *

The internal IP address of the instance.

SystemDisk.Size Integer No 40

The size of the system disk. Unit: GiB. Valid values: 20 to 500.

The value of the parameter must be at least 20 and greater than or equal to the size of the image.

Default value: 40 or the size of the image, whichever is greater.

SystemDisk.Category String No cloud_ssd

The category of the system disk. Valid values:

  • cloud_efficiency: ultra disk.
  • cloud_ssd: standard SSD.
  • cloud: basic disk.
  • ephemeral_ssd: local SSD.

For non-I/O optimized instances of phased-out instance types, the default value is cloud. For other instances, the default value is cloud_efficiency.

SystemDisk.DiskName String No SystemDiskName

The name of the system disk attached to the instance to be created. The name must be 2 to 128 characters in length, and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter but cannot start with http:// or https://.

This parameter is empty by default.

SystemDisk.Description String No TestDescription

The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

This parameter is empty by default.

SystemDisk.PerformanceLevel String No PL1

The performance level of the enhanced SSD (ESSD) used as the system disk. Default value: PL1. Valid values:

  • PL1: A single ESSD delivers up to 50,000 random read/write IOPS.
  • PL2: A single ESSD delivers up to 100,000 random read/write IOPS.
  • PL3: A single ESSD delivers up to 1,000,000 random read/write IOPS.

For more information about enhanced SSD performance levels, see Enhanced SSD (ESSD).

DataDisk.N.Size Integer No 2000

The size of data disk N. Valid values of N: 1 to 16. Unit: GiB. Valid values:

  • cloud_efficiency: 20 to 32768.
  • cloud_ssd: 20 to 32768.
  • cloud_essd: 20 to 32768.
  • ephemeral_ssd: 5 to 800.
  • cloud: 5 to 2000.

The value of this parameter must be greater than or equal to the size of the snapshot specified by the SnapshotId parameter.

DataDisk.N.SnapshotId String No s-bp17441ohwka0yuh****

The ID of the snapshot used to create data disk N. Valid values of N: 1 to 16.

  • When the DataDisk.N.SnapshotId parameter is specified, the DataDisk.N.Size parameter is ignored. The size of the created disk is the size of the specified snapshot.
  • Snapshots created on or before July 15, 2013 cannot be used here. Otherwise, an error message will be returned and your request will be rejected.
DataDisk.N.Category String No cloud_ssd

The category of data disk N. Valid values:

  • cloud_efficiency: ultra disk.
  • cloud_ssd: standard SSD.
  • ephemeral_ssd: local SSD.
  • cloud_essd: ESSD.
  • cloud: basic disk.

For I/O optimized instances, the default value is cloud_efficiency. For non-I/O optimized instances, the default value is cloud.

DataDisk.N.DiskName String No DataDiskName

The name of data disk N. The name must be 2 to 128 characters in length and can contain letters, digits, colons (:), underscores (_), and hyphens (-). It must start with a letter but cannot start with http:// or https://.

This parameter is empty by default.

DataDisk.N.Description String No TestDescription

The description of data disk N. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

This parameter is empty by default.

DataDisk.N.Device String No null

The mount point of data disk N.

Note This parameter will be removed in the future. We recommend that you use other parameters to ensure future compatibility.
DataDisk.N.DeleteWithInstance Boolean No true

Specifies whether data disk N is released with the instance.

Default value: true.

DataDisk.N.Encrypted Boolean No false

Specifies whether data disk N is encrypted.

Default value: false.

DataDisk.N.KMSKeyId String No 0e478b7a-4262-4802-b8cb-00d****

The ID of the KMS key used by the disk.

DataDisk.N.PerformanceLevel String No PL2

The performance level of the ESSD used as data disk N. The value of N must be the same as that in DataDisk.N.Category when DataDisk.N.Category is set to cloud_essd. Default value: PL1. Valid values:

  • PL1: A single ESSD delivers up to 50,000 random read/write IOPS.
  • PL2: A single ESSD delivers up to 100,000 random read/write IOPS.
  • PL3: A single ESSD delivers up to 1,000,000 random read/write IOPS.

For more information about ESSD performance levels, see Enhanced SSD (ESSD).

NodeControllerId String No null

The ID of the node controller.

Description String No InstanceTest

The description of the instance. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

This parameter is empty by default.

VSwitchId String No vsw-bp1s5fnvk4gn2tws0****

The ID of the VSwitch. This parameter is required when you create a VPC-type instance.

PrivateIpAddress String No 172.16.236.*

The private IP address of the instance. The private IP address must be within the range of the idle CIDR block of the VSwitch.

IoOptimized String No optimized

Specifies whether the instance is I/O optimized. Valid values:

  • none: The instance is not I/O optimized.
  • optimized: The instance is I/O optimized.

For phased-out instance types, the default value is none.

For other instance types, the default value is optimized.

UseAdditionalService Boolean No true

Specifies whether to use the virtual machine system configuration provided by Alibaba Cloud (Windows: NTP and KMS. Linux: NTP and YUM).

InstanceChargeType String No PrePaid

The billing method of the instance. Default value: PostPaid. Default value: PostPaid. Valid values:

  • PrePaid: subscription. If you set this parameter to PrePaid, ensure that you have sufficient balance in your account. Otherwise, an InvalidPayMethod error is returned.
  • PostPaid: pay-as-you-go.
Period Integer No 1

The subscription period of the instance. Unit: months. Valid values:

The valid values of Period are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60 when PeriodUnit is set to Month.

  • This parameter takes effect and is required only when InstanceChargeType is set to PrePaid.
  • If the DedicatedHostId parameter is specified, the subscription period of the instance must not be longer than that of the dedicated host.
PeriodUnit String No Month

The unit of the subscription period.

Set the value to Month.

Tag.N.value String No null

The value of tag N.

Note This parameter will be removed in the future. We recommend that you use the Tag.N.Value parameter to ensure future compatibility.
Tag.N.key String No null

The key of tag N.

Note This parameter will be removed in the future. We recommend that you use the Tag.N.Key parameter to ensure future compatibility.
Tag.N.Key String No TestKey

The key of tag N of the instance, disk, and primary ENI. Valid values of N: 1 to 20. It cannot be an empty string. The tag key can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://.

Tag.N.Value String No TestValue

The value of tag N of the instance, disk, and the primary ENI. Valid values of N: 1 to 20. It can be an empty string. It can be up to 128 characters in length. It can neither contain http:// nor https://. It can neither start with acs: nor aliyun.

UserData String No ZWNobyBoZWxsbyBlY3Mh

The user data of the instance. It must be encoded in Base64. The maximum size of the raw data is 16 KB.

SpotStrategy String No NoSpot

The preemption policy for the preemptible or pay-as-you-go instance. This parameter takes effect only when the InstanceChargeType parameter is set to PostPaid. Default value: NoSpot. Valid values:

  • NoSpot: the regular pay-as-you-go instance.
  • SpotWithPriceLimit: the preemptible instance with a user-defined upper price limit.
  • SpotAsPriceGo: the preemptible instance priced at the market price at the time of purchase.
KeyPairName String No KeyPairTestName

The name of the key pair.

  • For Windows instances, this parameter is ignored and is empty by default. The Password parameter takes effect even if the KeyPairName parameter is specified.
  • For Linux instances, the username and password authentication method is disabled by default. To improve instance security, we recommend that you use the SSH key pair for connection.
SpotPriceLimit Float No 0.98

The maximum hourly price of the instance. This parameter is valid only when SpotStrategy is set to SpotWithPriceLimit. A maximum of three decimal places can be specified.

SpotDuration Integer No 1

The retention period of the preemptible instance. Unit: hours. Valid values: 1, 2, 3, 4, 5, and 6.

Default value: 1.

SpotInterruptionBehavior String No Terminate

The interruption mode of the preemptible instance. Set the value to Terminate, which specifies that the instance is released.

RamRoleName String No RAMTestName

The RAM role name of the instance. You can call the ListRoles operation provided by RAM to query the RAM roles that you have created.

SecurityEnhancementStrategy String No Active

Specifies whether to enable security hardening. Valid values:

  • Active: enables security hardening. The value is applicable only to system images.
  • Deactive: disables security hardening. The value is applicable to all image types.
ResourceGroupId String No rg-bp67acfmxazb4p****

The ID of the enterprise resource group to which a created instance belongs.

HpcClusterId String No hpc-bp67acfmxazb4p****

The ID of the HPC cluster to which the instance to be created belongs.

DryRun Boolean No false

Specifies whether to check the request only. Default value: false. Valid values:

  • true: The request is checked, and no instance is created. The system checks whether the required parameters are set, and verifies the request format, service limits, and available ECS resources. If the check fails, the corresponding error code is returned. If the check succeeds, the DryRunOperation error code is returned.
  • false: The request is checked, and the instance is created if the check succeeds.
DedicatedHostId String No dh-bp67acfmxazb4p****

The ID of the dedicated host for the ECS instance.

You can call the DescribeDedicatedHosts operation to query the dedicated host list.

If the DedicatedHostId parameter is specified, the SpotStrategy and SpotPriceLimit parameters are ignored. This is because preemptible instances cannot be created on dedicated hosts.

CreditSpecification String No Standard

The running performance of the burstable instance. Valid values:

This parameter is empty by default.

DeletionProtection Boolean No false

The release protection property of the instance. It specifies whether you can use the ECS console or call the DeleteInstance operation to manually release the instance. Default value: false. Valid values:

  • true: enables release protection.
  • false: disables release protection.
Note This parameter is applicable only to pay-as-you-go instances. It can protect instances only against manual releases, not against system releases.
Affinity String No default

Specifies whether to associate the instance on a dedicated host with the dedicated host. Valid values:

  • default: The instance is not associated with the dedicated host. With the No Fees for Stopped Instances (VPC-Connected) feature enabled, when the instance is restarted after being stopped, it is automatically deployed to another dedicated host in the automatic deployment resource pool if the resources of original dedicated host are insufficient.
  • host: The instance is associated with the dedicated host. With the No Fees for Stopped Instances (VPC-Connected) feature enabled, when the instance is restarted after being stopped, it still resides on the original dedicated host. If the resources of the original dedicated host are insufficient, the instance will fail to be restarted.

Default value: default.

Tenancy String No default

Specifies whether to create an instance on a dedicated host. Valid values:

  • default: creates an instance on a non-dedicated host.
  • host: creates an instance on a dedicated host. If you do not specify DedicatedHostId, Alibaba Cloud automatically selects the dedicated host to deploy the instance.

Default value: default.

StorageSetId String No ss-bp1j4i2jdf3owlhe****

The ID of the storage set.

StorageSetPartitionNumber Integer No 2

The maximum number of partitions in a storage set. Valid values: greater than or equal to 2.

HttpEndpoint String No enabled

Specifies whether to enable the access channel for the instance metadata. Valid values:

  • enabled
  • disabled

Default value: enabled.

Note For more information about instance metadata, see Overview of instance metadata.
HttpTokens String No optional

Specifies whether to forcibly use the security hardening mode (IMDSv2) to access instance metadata. Valid values:

  • optional: The security hardening mode (IMDSv2) is not forcibly used.
  • required: The security hardening mode (IMDSv2) is forcibly used. After you set this parameter to required, you cannot access the instance metadata in the normal mode.

Default value: optional.

Note For more information about modes of accessing instance metadata, see Modes of accessing instance metadata.

Response parameters

Parameter Type Example Description
InstanceId String i-bp67acfmxazb4p****

The ID of the instance.

RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

TradePrice Float 0.165

The transaction price.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=CreateInstance
&RegionId=cn-hangzhou
&ImageId=ubuntu_18_04_64_20G_alibase_20190624.vhd
&SecurityGroupId=sg-bp15ed6xe1yxeycg****
&HostName=LocalHostName
&InstanceType=ecs.g6.large
&<Common request parameters>

Sample success responses

XML format

<CreateInstanceResponse>
      <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
      <InstanceId>i-bp67acfmxazb4p****</InstanceId>
</CreateInstanceResponse>

JSON format

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
    "InstanceId": "i-bp67acfmxazb4p****"
}

Error codes

HTTP status code Error code Error message Description
400 InvalidInstanceType.ValueUnauthorized The specified InstanceType is not authorized. The error message returned because you are not authorized to use the specified instance type.
400 InvalidInternetChargeType.ValueNotSupported The specified InternetChargeType is not valid. The error message returned because the specified value of the InternetChargeType parameter does not exist.
400 InvalidParameter The specified parameter "InternetMaxBandwidthOut" is not valid. The error message returned because the specified value of the InternetMaxBandwidthOut parameter is invalid.
400 InvalidSystemDiskCategory.ValueNotSupported The specified parameter " SystemDisk.Category " is not valid. The error message returned because the specified system disk category is invalid.
404 IoOptimized.NotSupported The specified instancetype is not support IoOptimized instance The error message returned because I/O optimization is not supported by the specified instance type.
400 InvalidDataDiskSize.ValueNotSupported The specified DataDisk.n.Size beyond the permitted range, or the capacity of snapshot exceeds the size limit of the specified disk category. The error message returned because the specified value of the DataDisk.N.Size parameter or the snapshot capacity exceeds the maximum capacity that is allowed for the specified disk category.
403 InvalidDiskCategory.NotSupported The specified disk category is not support the specified instance type. The error message returned because the instance type is not supported by the specified disk category.
400 InvalidInstanceType.ValueNotSupported The specified InstanceType does not exist or beyond the permitted range. The error message returned because the specified instance type does not exist or you are not authorized to manage instances of this instance type.
404 InvalidSecurityGroupId.NotFound The specified SecurityGroupId does not exist. The error message returned because the specified security group does not exist under this account. Check whether the security group ID is correct.
400 InvalidDescription.Malformed The specified parameter "Description" is not valid. The error message returned because the specified description is invalid. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
400 InvalidHostName.Malformed The specified parameter "HostName" is not valid. The error message returned because the specified value of the HostName parameter is invalid.
400 InvalidPassword.Malformed The specified parameter "Password" is not valid. The error message returned because the specified value of the Password parameter is invalid.
400 InvalidPasswordParam.Mismatch The input password should be null when passwdInherit is true. The error message returned because the password is specified when PasswdInherit is set to true.
400 InvalidSystemDiskCategory.ValueNotSupported The specified parameter "SystemDisk.Category" is not valid. The error message returned because the specified value of the SystemDisk.Category parameter is invalid.
400 InvalidDiskName.Malformed The specified parameter "SystemDisk.DiskName or DataDisk.n.DiskName" is not valid. The error message returned because the specified value of the SystemDisk.DiskName or DataDisk.N.DiskName parameter is invalid.
400 InvalidDiskDescription.Malformed The specified parameter "SystemDisk.DiskDescription" or "DataDisk.n.Description" is not valid. The error message returned because the specified value of the SystemDisk.Description or DataDisk.N.Description parameter is invalid.
400 InvalidDataDiskCategory.ValueNotSupported The specified parameter "DataDisk.n.Category" is not valid. The error message returned because the specified value of the DataDisk.N.Category parameter is invalid.
404 InvalidDataDiskSnapshotId.NotFound The specified parameter "DataDisk.n.SnapshotId" is not valid. The error message returned because the specified value of the DataDisk.N.SnapshotId parameter is invalid.
400 InvalidDataDevice.Malformed The specified parameter "DataDisk.n.Device" is not valid. The error message returned because the specified value of the DataDisk.N.Device parameter is invalid.
400 InvalidNodeControllerId.Malformed The specified parameter "NodeControllerId" is not valid. The error message returned because the specified value of the NodeControllerId parameter is invalid.
400 InvalidInnerIpAddress.Malformed The specified parameter "InnerIpAddress" is not valid. The error message returned because the specified value of the DiskDeviceMapping.n.DiskImageSize parameter exceeds the upper limit.
400 InvalidInnerIpAddress.Unusable The specified InnerIpAddress is already used or not found in usable ip range. The error message returned because the specified internal IP address is unavailable.
400 OperationDenied The specified parameter "VlanId" is not valid or vlan has not enough IP address. The error message returned because the specified VLAN ID is invalid or the maximum number of IP addresses in the VLAN has been reached.
400 InvalidParameter.Conflict The specified image does not support the specified instance type. The error message returned because the specified image cannot be used for the specified instance type.
400 ImageNotSupportCloudInit The specified image does not support cloud-init. The error message returned because cloud-init is not supported by the specified image.
400 InvalidSnapshotId.BasedSnapshotTooOld The specified snapshot is created before 2013-07-15. The error message returned because the specified snapshot was created before July 15, 2013.
400 QuotaExceed.AfterpayInstance The maximum number of Pay-As-You-Go instances is exceeded: %s The error message returned because the pay-as-you-go resources of the specified instance type are insufficient. Reduce the number of instances to be created.
403 ImageNotSubscribed The specified image has not be subscribed. The error message returned because you have not subscribed to the specified image in Alibaba Cloud Marketplace.
400 InvalidMarketImageChargeType.NotSupport The specified chargeType of marketImage is unsupported. The error message returned because the billing method of the Alibaba Cloud Marketplace image is not supported.
403 OperationDenied The specified Image is disabled or is deleted. The error message returned because the specified image is disabled or deleted.
403 InvalidSystemDiskCategory.ValueUnauthorized The disk category is not authorized. The error message returned because you are not authorized to use the specified disk category.
403 InvalidSnapshotId.NotReady The specified snapshot has not completed yet. The error message returned because the specified snapshot has not been created.
403 OperationDenied The specified snapshot is not allowed to create disk. The error message returned because the specified snapshot cannot be used to create disks.
403 InstanceDiskCategoryLimitExceed The total size of specified disk category in an instance exceeds. The error message returned because the total size of the specified disks exceeds the maximum capacity that is allowed for the instance type.
403 InvalidDevice.InUse The specified device has been occupied. The error message returned because the specified device already has an attached disk.
403 ImageRemovedInMarket The specified market image is not available, Or the specified user defined image includes product code because it is based on an image subscribed from marketplace, and that image in marketplace includeing exact the same product code has been removed. The error message returned because the specified Alibaba Cloud Marketplace image is unavailable, or the specified custom image contains the product code of the Alibaba Cloud Marketplace image from which the custom image was created and the Alibaba Cloud Marketplace image has been removed from Alibaba Cloud Marketplace.
404 InvalidClusterId.NotFound The ClusterId provided does not exist in our records. The error message returned because the specified ClusterId parameter does not exist.
403 OperationDenied The creation of Instance to the specified Zone is not allowed. The error message returned because instances cannot be created in the specified zone.
403 CategoryNotSupported The specified zone does not offer the specified disk category. The error message returned because the specified disk category is unavailable in the specified zone.
403 OperationDenied The specified Zone or cluster does not offer the specified disk category or the speicified zone and cluster do not match. The error message returned because the specified disk category is unavailable in the specified zone or cluster, or the specified zone and cluster do not correspond to each other.
403 OperationDenied.NoStock The requested resource is sold out in the specified zone; try other types of resources or other regions and zones. The error message returned because the requested resources are insufficient in the specified zone.
400 InvalidInstanceName.Malformed The specified parameter "InstanceName" is not valid. The error message returned because the specified instance name is invalid. The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
400 InvalidDiskDescription.Malformed The specified parameter "SystemDisk.DiskDescription or DataDisk.n.Description" is not valid. The error message returned because the specified value of the SystemDisk.Description or DataDisk.N.Description parameter is invalid.
403 QuotaExceed.PortableCloudDisk The quota of portable cloud disk exceeds. The error message returned because the maximum number of removable disks has been reached.
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred. Try again later. If the problem persists, submit a ticket.
403 OperationDenied Sales of this resource are temporarily suspended in the specified region; please try again later. The error message returned because the specified region does not provide the resource. Try again later.
400 InvalidParameter.Conflict The specified region and cluster do not match. The error message returned because the specified region and the specified cluster do not correspond to each other.
403 SecurityGroupInstanceLimitExceed The maximum number of instances in a security group is exceeded. The error message returned because the maximum number of instances in the specified security group has been reached.
403 NodeControllerUnavailable The Node Controller is temporarily unavailable. The error message returned because the node controller is unavailable.
403 RegionUnauthorized There is no authority to create instance in the specified region. The error message returned because you are not authorized to create instances in the specified region.
403 CategoryNotSupported The specified Zone or cluster does not offer the specified disk category. The error message returned because the specified disk category is unavailable in the specified zone or cluster.
403 InvalidSnapshotId.NotDataDiskSnapshot The specified snapshot is system disk snapshot. The error message returned because the specified snapshot is a system disk snapshot.
403 CategoryNotSupported The specified cluster does not offer the specified disk category. The error message returned because the specified disk category is unavailable in the specified cluster.
404 InvalidVSwitchId.NotFound Specified virtual switch does not exist. The error message returned because the specified VSwitch ID does not exist.
400 InvalidParameter.Mismatch Specified security group and virtual switch are not in the same VPC. The error message returned because the specified security group and VSwitch do not belong to the same VPC.
400 InvalidNetworkType.Mismatch Specified parameter "InternetChargeType" conflict with instance network type. The error message returned because the network type of the instance does not support the specified billing method for network usage.
400 InvalidPrivateIpAddress Specified private IP address is not in the CIDR block of virtual switch. The error message returned because the specified private IP address is not within the CIDR block of the VSwitch.
400 InvalidPrivateIpAddress.Duplicated Specified private IP address is duplicated. The error message returned because the specified private IP address is in use. Try another IP address.
400 QuotaExceeded.PrivateIpAddress Don't have enough private IPs in this switch The error message returned because all the private IP addresses under the VSwitch are already in use. Try another VSwitch.
400 QuotaExceeded Living instances quota exceeded in this VPC. The error message returned because the maximum number of active instances has been reached.
400 IncorrectVSwitchStatus The current status of virtual switch does not support this operation. The error message returned because the specified VSwitch is in the Pending state and cannot be deleted.
400 InvalidParameter.Mismatch Specified virtual switch is not in the specified zone. The error message returned because the specified VSwitch does not exist in the specified zone.
400 ResourceNotAvailable Resource you requested is not available in this region or zone. The error message returned because VPCs are not supported by the specified region or zone.
400 MissingParameter The input parameter "VSwitchId" that is mandatory for processing this request is not supplied. The error message returned because the VSwitchId parameter is not specified.
400 InvalidDiskCategory.Mismatch The specified disk categories' combination is not supported. The error message returned because the combination of the specified disk categories is not supported.
403 DeleteWithInstance.Conflict The specified disk is not a portable disk and cannot be set to DeleteWithInstance attribute. The error message returned because the specified disk is not a removable disk and cannot be released with the instance.
404 InvalidImageId.NotFound The specified ImageId does not exist. The error message returned because the specified image does not exist under this account. Check whether the image ID is correct.
403 InstanceDiskNumLimitExceed The number of specified disk in an instance exceeds. The error message returned because the maximum number of disks that can be attached to the instance has been reached.
403 IoOptimized.NotSupported The specified image is not support IoOptimized Instance. The error message returned because the specified image does not support I/O optimized instances.
403 ImageNotSupportInstanceType The specified image don't support the InstanceType instance. The error message returned because the specified image does not support this instance type.
400 InvalidIoOptimizedValue.ValueNotSupported IoOptimized value not supported. The error message returned because the specified value of the IoOptimized parameter is invalid.
404 OperationDenied Another Instance has been creating The error message returned because no instances can be created while another instance is being created.
403 InvalidDiskSize.TooSmall Specified disk size is less than the size of snapshot The error message returned because the specified disk size is less than the snapshot size.
403 OperationDenied The type of the disk does not support the operation The error message returned because the specified operation is not supported by the disk category.
404 InvalidInstanceChargeType.NotFound The InstanceChargeType does not exist in our records The error message returned because the specified value of the InstanceChargeType parameter does not exist.
400 MissingParamter The specified parameter "Period" is not null. The error message returned because the Period parameter is not specified.
400 InvalidPeriod The specified period is not valid. The error message returned because the specified period is invalid.
403 InvalidDiskCategory.Mismatch The specified disk categories combination is not supported. The error message returned because the combination of the specified disk categories is not supported.
403 IoOptimized.NotSupported Vpc is not support IoOptimized instance. The error message returned because I/O optimized instances are not supported in this VPC.
400 InvalidDataDiskCategory.ValueNotSupported The specified parameter " DataDisk.n.Category " is not valid. The error message returned because the specified disk category is invalid.
400 InstanceDiskCategoryLimitExceed The specified DataDisk.n.Size beyond the permitted range, or the capacity of snapshot exceeds the size limit of the specified disk category. The error message returned because the specified value of the DataDisk.N.Size parameter or the snapshot capacity exceeds the maximum capacity that is allowed for the specified disk category.
403 OperationDenied The resource is out of usage. The error message returned because the instance is not in the Running state. Start the instance or check whether the operation is valid.
403 QuotaExceed.BuyImage The specified image is from the image market, You have not bought it or your quota has been exceeded. The error message returned because you are not authorized to use the specified Alibaba Cloud Marketplace image.
404 DependencyViolation.IoOptimized The specified instancetype must be IoOptimized instance. The error message returned because the specified instance type is not I/O optimized.
404 PaymentMethodNotFound No payment method has been registered on the account. The error message returned because you have not registered a payment method for your account.
404 HOSTNAME_ILLEGAL hostname is not valid. The error message returned because the specified hostname is invalid.
404 InvalidSystemDiskSize.LessThanImageSize The specified parameter SystemDisk.Size is less than the image size. The error message returned because the specified system disk size is less than that of the image.
404 InvalidSystemDiskSize.LessThanMinSize The specified parameter SystemDisk.Size is less than the min size. The error message returned because the specified system disk size does not meet the minimum size requirement.
404 InvalidSystemDiskSize.MoreThanMaxSize The specified SystemDisk.Size parameter exceeds the maximum size. The error message returned because the maximum size of the specified system disk has been reached.
404 InvalidDataDiskSnapshotId.NotFound The specified parameter DataDisk.n.SnapshotId is not valid. The error message returned because the specified snapshot ID of the data disk is invalid.
403 InvalidVSwitchId.NotFound The VSwitchId provided does not exist in our records. The error message returned because the specified VSwitch ID does not exist.
400 InvalidParameter The specified vm bandwidth is not valid. The error message returned because the specified virtual machine bandwidth is invalid.
400 InvalidSystemDiskCategory.ValueNotSupported The specified parameter SystemDisk.Category is not valid. The error message returned because the specified value of the SystemDisk.Category parameter is invalid.
403 InvalidParameter.ResourceOwnerAccount ResourceOwnerAccount is Invalid. The error message returned because the specified value of the ResourceOwnerAccount parameter is invalid.
404 InvalidSystemDiskSize The specified parameter SystemDisk.Size is invalid. The error message returned because the specified value of the SystemDisk.Size parameter is invalid.
400 InvalidParameter.Bandwidth The specified parameter Bandwidth is not valid. The error message returned because the specified value of the Bandwidth parameter is invalid.
400 InvalidIPAddress.AlreadyUsed The specified IPAddress is already used by other resource. The error message returned because the specified IP address is in use.
403 InvalidUserData.Forbidden User not authorized to input the parameter "UserData", please apply for permission "UserData" The error message returned because you are not authorized to manage user data. Apply for the permission first.
400 InvalidUserData.SizeExceeded The specified parameter "UserData" exceeds the size. The error message returned because the size of user data specified by the UserData parameter exceeds the limit.
400 InvalidUserData.NotSupported The specified parameter "UserData" only support the vpc and IoOptimized Instance. The error message returned because the specified value of the UserData parameter is not supported. UserData is supported only in VPC-type instances and I/O optimized instances.
403 Zone.NotOpen The specified zone is not granted to you to buy resources yet. The error message returned because you are not authorized to purchase resources in the specified zone.
403 Zone.NotOnSale The specified zone is not available for purchase. The error message returned because the requested instance resources are unavailable in the specified zone. Change the instance type or select a different zone.
403 InvalidClusterId.NotFound The specified clusterId does not exist. The error message returned because the specified ClusterId parameter does not exist.
403 InvalidInstanceType.ZoneNotSupported The specified zone does not support this instancetype. The error message returned because the specified instance type is not supported in the specified zone.
400 InstanceDiskNumber.LimitExceed The total number of specified disk in an instance exceeds. The error message returned because the maximum number of disks that can be attached to the instance has been reached.
400 Account.Arrearage Your account has an outstanding payment. The error message returned because your account has overdue payments.
400 InvalidDiskCategory.ValueNotSupported The specified parameter "DiskCategory" is not valid. The error message returned because the specified disk category is invalid.
400 InvalidAutoRenewPeriod.ValueNotSupported The specified autoRenewPeriod is not valid. The error message returned because the specified value of the AutoRenewPeriod parameter is invalid.
400 QuotaExceed.AfterpayInstance The maximum number of Pay-As-You-Go instances is exceeded. The error message returned because the pay-as-you-go resources of the specified instance type are insufficient. Reduce the number of instances to be created.
400 InvalidSpotStrategy The specified SpotStrategy is not valid. The error message returned because the specified SpotStrategy parameter is invalid.
400 InvalidSpotParam.EmptyZoneID The specified ZoneId is empty when SpotStrategy is set. The error message returned because the ZoneId parameter is not specified while the SpotStrategy parameter is specified.
400 InvalidSpotPriceLimit The specified SpotPriceLimitis not valid. The error message returned because the specified value of the SpotPriceLimit parameter is invalid.
400 InvalidSpotDuration The specified SpotDuration is not valid. The error message returned because the specified value of the SpotDuration parameter is invalid.
400 InvalidSpotAuthorized The specified Spot param is unauthorized. The error message returned because you are not authorized to create the preemptible instance based on the specified preemption policy.
400 InvalidSpotPrepaid The specified Spot type is not support PrePay Instance. The error message returned because the specified preemption policy does not support the subscription billing method.
400 InvalidSpotAliUid The specified UID is not authorized to use SPOT instance. The error message returned because the specified user identifier (UID) does not have the permissions to use preemptible instances.
403 InvalidPayMethod The specified pay method is not valid. The error message returned because the specified payment method is invalid.
403 OperationDenied.ImageNotValid The specified Image is disabled or is deleted. The error message returned because the specified image does not exist.
400 InvalidTagKey.Malformed The specified Tag.n.Key is not valid. The error message returned because the specified value of the Tag.N.Key parameter is invalid.
400 InvalidParameter.Bandwidth %s The error message returned because the specified bandwidth is invalid. Check whether the parameter is correct.
400 InvalidDataDiskCategory.ValueNotSupported %s The error message returned because the specified data disk category is invalid.
400 InvalidSystemDiskCategory.ValueNotSupported %s The error message returned because the operation is not applicable to the specified system disk category.
400 InvalidParameter.Conflict %s The error message returned because the specified parameter is invalid. Check whether the parameter conflicts with another parameter.
400 InvalidInternetChargeType.ValueNotSupported %s The error message returned because the specified billing method is not supported. Check whether the parameter is correct.
400 InvalidInstanceType.ValueNotSupported %s The error message returned because the operation is not applicable to the specified instance type.
403 InstanceType.Offline %s The error message returned because the instance type is phased out or has insufficient resources.
400 RegionUnauthorized %s The error message returned because you are not authorized to create instances in the specified region.
500 InternalError %s The error message returned because an internal error has occurred.
400 Zone.NotOnSale %s The error message returned because no resources are available in the specified zone.
400 InvalidSystemDiskSize.ValueNotSupported %s The error message returned because the operation is not applicable to the specified system disk size.
400 InvalidDataDiskSize.ValueNotSupported %s The error message returned because the specified data disk capacity is invalid.
403 DependencyViolation.WindowsInstance The instance creating is window, cannot use ssh key pair to login. The error message returned because the specified instance is a Windows instance and does not support logons with SSH key pairs.
400 InvalidInstanceType.ValueNotSupported The specified parameter "KeyPairName" only support IoOptimized Instance. The error message returned because SSH key pairs are not supported by non-I/O optimized instances.
403 RealNameAuthenticationError Your account has not passed the real-name authentication yet. The error message returned because you have not completed real-name verification. Complete real-name verification and try again.
403 InvalidNetworkType.MismatchRamRole Ram role cannot be applied to instances of Classic network type. The error message returned because an instance RAM role can only be used for instances in VPCs, not for instances in classic networks.
403 InvalidUser.PassRoleForbidden The RAM user does not have the privilege to pass a RAM role. The error message returned because the RAM user is not authorized to pass the RAM role.
404 InvalidRamRole.NotFound The specified RAMRoleName does not exist. The error message returned because the specified RAM role name does not exist.
400 OperationDenied The specified InstanceType or Zone is not available or not authorized. The error message returned because the specified instance type or zone is unavailable or unauthorized.
403 InvalidAccountStatus.NotEnoughBalance Your account does not have enough balance. The error message returned because your account balance is insufficient. Top up your account and try again.
500 InternalError The request processing has failed due to some unknown error, exception or failure. The error message returned because an internal error has occurred. Try again later. If the problem persists, submit a ticket.
404 InvalidResourceGroup.NotFound The ResourceGroup provided does not exist in our records. The error message returned because the specified resource group does not exist.
403 IncorrectVpcStatus Current VPC status does not support this operation. The error message returned because the operation is not supported while the VPC is in the current state.
400 InvalidParameter.EncryptedIllegal %s The error message returned because the specified parameter is invalid. Check whether the cryptography is valid.
400 InvalidParameter.EncryptedNotSupported %s The error message returned because the specified parameter is invalid and does not support encryption.
400 EncryptedOption.Conflict %s The error message returned because the specified parameter is not supported by the encrypted disk.
400 InvalidParameter.Encrypted.KmsNotEnabled The encrypted disk need enable KMS The error message returned because Key Management Service (KMS) has not been activated. You must active KMS to encrypt disks.
400 InvalidSpotPriceLimit.LowerThanPublicPrice The specified parameter "soptPriceLimit" can't be lower than current public price. The error message returned because the specified value of the SpotPriceLimit parameter is lower than the current market price.
400 InvalidHpcClusterId.Unnecessary The specified HpcClusterId is unnecessary. The error message returned because the HpcClusterId parameter is specified.
400 InvalidVSwitchId.Necessary The VSwitchId is necessary. The error message returned because the VSwitchId parameter is not specified.
400 InvalidHpcClusterId.Necessary The HpcClusterId is necessary. The error message returned because the HpcClusterId parameter is not specified.
400 InvalidHpcClusterId.NotFound The specified HpcClusterId is not found. The error message returned because the specified HPC cluster ID does not exist.
400 InvalidHpcClusterId.Creating The specified HpcClusterId is creating. The error message returned because the specified HPC cluster is being created.
400 QuotaExceeded.PrivateIpAddress Don't have enough private IPs in this switch. The error message returned because no private IP address is available in the CIDR block of this VSwitch. Try another VSwitch.
400 InvalidPeriodUnit.ValueNotSupported The specified parameter PeriodUnit is not valid. The error message returned because the specified PeriodUnit parameter is invalid.
400 IncorrectImageStatus Encrypted snapshots do not support this operation. The error message returned because the operation is not supported by encrypted snapshots.
400 InvalidTagValue.Malformed The specified Tag.n.Value is not valid. The error message returned because the specified value of the Tag.N.Value is invalid.
400 InvalidSecurityGroup.NotInDefaultVpc %s The error message returned because the specified security group is not in the default VPC. Check whether the specified value of the SecurityGroupId parameter is correct.
400 VpcNotFound Vpc is not found according to the specified VSwitch or the vpc does not belong to you. The error message returned because the specified VSwitch do not belong to any VPC, or the corresponding VPC does not belong to you.
403 InvalidParameter.NotMatch %s The error message returned because the specified parameter is invalid. Check whether the parameter conflicts with another parameter.
403 OperationDenied.InvalidNetworkType %s The error message returned because the operation is not supported by the network type.
400 InvalidSpotInterruptionBehavior %s The error message returned because the SpotInterruptionBehavior parameter is invalid or conflicts with another parameter.
403 InvalidSpotInterruptionBehavior.ClassicNetworkNotSupport The specified SpotInterruptionBehavior does not support Classic network Instance. The error message returned because the operation is not applicable to instances in the classic network.
403 InvalidSpotInterruptionBehavior.LocalDiskNotSupport The specified SpotInterruptionBehavior does not support local disk instance. The error message returned because the operation is not applicable to instances with local disks.
400 OperationDenied.IllegalPaymentPolicy The current payment policy is illegal, please connect your service provider to authenticate relative agreement. The error message returned because the current payment policy is invalid. Contact your service provider for authentication.
400 InvalidDeploymentOnHost %s The error message returned because the instance cannot be deployed in the specified deployment set.
400 InvalidInstanceChargeType.NotSupport The Dedicated host not support the specified Instance charge type. The error message returned because the dedicated host does not support instances that use the specified billing method.
400 InvalidNetworkType.NotSupported The classic networkType not support create ECS on dedicatedHost The error message returned because the dedicated host does not support instances in the classic network.
400 InvalidDedicatedHostId.NotFound The specified DedicatedHostId does not exist. The error message returned because the specified dedicated host ID does not exist.
400 InvalidDedicatedHostStatus.NotSupport Operation denied due to dedicated host status. The error message returned because the operation is not supported while the dedicated host is in the current state.
400 IncorrectDedicatedHostStatus The current status of the resource does not support this operation. The error message returned because this operation is not supported while the dedicated host is in the current state.
400 ChargeTypeViolation.PostPaidDedicatedHost Prepaid instance onto postpaid dedicated host is not allowed The error message returned because subscription instances cannot be added to pay-as-you-go dedicated hosts.
400 InvalidPeriod.ExceededDedicatedHost Instance expired date can't exceed dedicated host expired date. The error message returned because the expiration date of the instance is later than that of the dedicated host.
400 InvalidInstanceType.ValueUnauthorized The specified InstanceType is not authorize. The error message returned because you are not authorized to use the instance type.
400 DedicatedHostType.Unmatched The specified DedicatedHostType doesn? t match the instance type. The error message returned because the specified dedicated host type does not correspond to the instance type.
400 ChargeTypeViolation.PostPaidDedicatedHost Prepaid instance onto postpaid dedicated host is not allowed. The error message returned because subscription instances cannot be added to pay-as-you-go dedicated hosts.
403 OperationDenied.ImageNotValid %s The error message returned because the operation is not supported by the current image.
403 QuotaExceed.PostPaidDisk Living postPaid disks quota exceeded. The error message returned because the maximum number of pay-as-you-go disks has been reached.
403 QuotaExceed.DeploymentSetInstanceQuotaFull instance quota in one deployment set exceeded. The error message returned because the maximum number of instances in the current deployment set has been reached.
403 InvalidDiskCategory.NotSupported The specified disk category is not supported. The error message returned because the operation is not supported by the specified disk category.
400 InvalidParameter.CreditSpecification The specified CreditSpecification is not supported in this region. The error message returned because the specified credit policy is not supported in the region.
400 IncorrectImageStatus The specified Image is not available. The error message returned because the specified source image status is invalid.
403 OperationDenied.ImageNotValid the specified image is not published in the region. The error message returned because the specified image is unavailable in the current region.
403 OperationDenied.ImageNotValid the specified image is not found in marketplace. The error message returned because the specified image does not exist in Alibaba Cloud Marketplace.
404 InvalidMarketImage.NotFound The specified marketplace image does not exist, please change the imageId and try again. The error message returned because the specified Alibaba Cloud Marketplace image does not exist. Modify the parameter and try again later.
400 InvalidInstanceType.NotSupported The specified instanceType is not supported by the deployment set. The error message returned because the specified instance type is not supported by the current deployment set. Try another instance type.
400 InvalidVpcZone.NotSupported Zone of the specified VSwitch is not available for creating, please try in other zones. The error message returned because the default VSwitch cannot be created in the specified zone. Try another zone.
400 IncorrectDefaultVpcStatus The status of the default VPC is invalid. The error message returned because the status of the default VPC is invalid.
404 DeploymentSet.NotFound The specified deployment set does not exist. The error message returned because the specified deployment set does not exist.
403 OperationDenied.LocalDiskUnsupported The configuration change is not allowed when the specified instance has local disks mounted. The error message returned because the instance types of instances that are attached with local disks cannot be changed.
403 OperationDenied.InconsistentNetwork The specified security group and vswitch are not in the same vpc. The error message returned because the specified security group and VSwitch do not belong to the same VPC.
403 OperationDenied If the network segment of the vswitch is the same as that of its VPC. Therefore, the VPC cannot create other vswitchs across the region. The error message returned because the VPC and VSwitch have the same CIDR block and no more VSwitches can be created for other zones of this VPC.
403 DefaultVswitch.Existed The default vswitch for VPC already exists. The error message returned because a default VSwitch already exists in the current VPC.
403 IncorrectInstanceStatus The current status of the resource does not support this operation. The error message returned because the operation is not supported while the instance is in the current state.
403 CategoryViolation The specified instance does not support this operation because of its disk category. The error message returned because the instance types of instances that are attached with local disks cannot be changed.
403 ResourcesNotInSameZone The specified instance and dedicated host are not in the same zone. The error message returned because the specified instance and the dedicated host are not in the same region.
403 InvalidRegion.NotSupport The specified region does not support byok. The error message returned because the bring your own key (BYOK) is not supported in this region.
403 UserNotInTheWhiteList The user is not in byok white list. The error message returned because you are not in the BYOK whitelist. Try again when you are in the whitelist.
400 InvalidParameter.EncryptedIllegal The specified parameter Encrypted must be true when kmsKeyId is not empty. The error message returned because the encryption feature is not enabled after the KMS key ID is specified.
400 IoOptimized.NotSupported The specified instance must be IoOptimized instance when kmsKeyId is not empty. The error message returned because I/O optimized instances are not used after the KMS key ID is specified.
404 InvalidParameter.KMSKeyId.NotFound The specified KMSKeyId does not exist. The error message returned because the specified KMS key ID does not exist.
403 InvalidParameter.KMSKeyId.KMSUnauthorized ECS service have no right to access your KMS. The error message returned because ECS is not authorized to access your KMS.
403 SecurityRisk.3DVerification We have detected a security risk with your default credit or debit card. Please proceed with verification via the link in your email. The error message returned because risks are detected in your default credit card or debit card. Click the link in the email for verification.
403 InvalidDisk.SystemDiskSize The specified SystemDiskSize beyond the permitted range. The error message returned because the maximum size of the specified system disk has been reached.
400 InvalidClientToken.ValueNotSupported The ClientToken provided is invalid. The error message returned because the specified client token is invalid.
400 OperationDenied The current user does not support this operation. The error message returned because your account does not support this operation.
403 InsufficientBalance Your account does not have enough balance. The error message returned because your account balance is insufficient. Top up your account and try again.
400 Duplicate.TagKey The Tag.N.Key contain duplicate key. The error message returned because the specified tag key already exists. Tag keys must be unique.
400 InvalidParam.Tenancy The specified Tenancy is invalid. The error message returned because the specified Tenancy parameter is invalid.
404 InvalidSecurityGroupId.NotFound %s The error message returned because the specified security group ID does not exist.
403 InvalidVSwitchId.IpInvalid %s The error message returned because the specified private IP address is invalid.
404 InvalidDiskIds.NotPortable The specified DiskId is not portable. The error message returned because the specified disk is not removable.
403 QuotaExceed.Tags %s The error message returned because the maximum number of tags has been reached.
401 InvalidRamRole.NotEcsRole The specified ram role is not authorized for ecs, please check your role policy. The error message returned because the specified RAM role is not authorized to use ECS. Check your role policy.
400 InvalidHttpEndpoint.NotSupported The specified HttpEndpoint not supported, you can use enabled(default) or disabled. The error message returned because the specified value of the HttpEndpoint parameter is invalid. Use the default value enabled or the value disabled.
400 InvalidHttpTokens.NotSupported The specified HttpTokens not supported, you can use optional(default) or required. The error message returned because the specified value of the HttpTokens parameter is invalid. Use the default value optional or the value required.
400 InvalidHttpPutResponseHopLimit.NotSupported The specified HttpPutResponseHopLimit not supported, more than 1 and less than 64 is reasonable. The error message returned because the specified value of the HttpPutResponseHopLimit parameter is invalid. The value must be in the range of 1 to 64.

For a list of error codes, visit the API Error Center.