CreateDisk

Updated at:

Creates a pay-as-you-go or subscription data disk.

Operation description

  • When you create a disk, you can enable the multi-attach feature (MultiAttach). Understand this feature and its limits before you enable it. For more information, see enterprise SSDs support NVMe and Enable the multi-attach feature.

  • Supported disk types: basic disks, ultra disks, standard SSDs, enterprise SSDs, ESSD Entry disks, regional ESSDs, ESSD AutoPL disks, standard elastic ephemeral disks, and elastic ephemeral disks - Premium Edition.

  • You must pass real-name verification to create a disk. Go to Real-name Verification to complete the verification.

  • Creating a disk incurs fees. Understand the billing methods of Elastic Compute Service (ECS) in advance. For more information, see Billing overview.

  • Default settings when you create a disk:

    • Automatic snapshots are deleted when the disk is deleted. This means that DeleteAutoSnapshot is set to true. You can call DescribeDisks to query the parameter settings and call ModifyDiskAttribute to modify the parameter.

    • When you create an enterprise SSD (standard SSDs do not have performance levels), if you do not specify the performance level, the default performance level is PL1. You can call ModifyDiskSpec to change the performance level.

    • The billing method is pay-as-you-go, which means that the Portable property is set to true by default.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ecs:CreateDisk

create

Disk

acs:ecs:{#regionId}:{#accountId}:disk/*

Disk

acs:ecs:{#regionId}:{#accountId}:disk/{#diskId}

Snapshot

acs:ecs:{#regionId}:{#accountId}:snapshot/{#snapshotId}

  • ecs:IsDiskEncrypted
  • ecs:IsDiskByokEncrypted
None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

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

cn-hangzhou

ZoneId

string

No

The zone ID of the pay-as-you-go disk.

  • If you do not specify InstanceId, ZoneId is required.

  • You cannot specify both ZoneId and InstanceId.

Note

You do not need to specify ZoneId for disks of the cloud_regional_disk_auto type.

cn-hangzhou-g

SnapshotId

string

No

The ID of the snapshot used to create the disk. Snapshots created on or before July 15, 2013 cannot be used to create disks.

The SnapshotId and Size parameters have the following limits:

  • If the snapshot size is greater than the Size value, the created disk size is equal to the snapshot size.

  • If the snapshot size is less than the Size value, the created disk size is equal to the Size value.

  • You cannot use snapshots to create elastic ephemeral disks.

s-bp67acfmxazb4p****

DiskName

string

No

The disk name. The name must be 2 to 128 characters in length and can contain Unicode letters (including English and Chinese characters) and ASCII digits (0-9). It can contain colons (:), underscores (_), periods (.), and hyphens (-). It must start with a Unicode letter.

Default value: empty.

testDiskName

Size

integer

No

The disk size. Unit: GiB. You must specify this parameter. Valid values:

  • cloud: 5 to 2,000.

  • cloud_efficiency: 20 to 32,768.

  • cloud_ssd: 20 to 32,768.

  • cloud_essd: The valid values vary based on the PerformanceLevel parameter.
    • PL0: 1 to 65,536.

    • PL1: 20 to 65,536.

    • PL2: 461 to 65,536.

    • PL3: 1,261 to 65,536.

  • cloud_auto: 1 to 65,536.

  • cloud_essd_entry: 10 to 32,768.

  • cloud_regional_disk_auto: 10 to 65,536.

  • elastic_ephemeral_disk_standard: 64 to 8,192.

  • elastic_ephemeral_disk_premium: 64 to 8,192.

If you specify the SnapshotId parameter, the SnapshotId and Size parameters have the following limits:

  • If the snapshot size is greater than the Size value, the created disk size is equal to the snapshot size.

  • If the snapshot size is less than the Size value, the created disk size is equal to the Size value.

2000

DiskCategory

string

No

The category of the data disk. Valid values:

  • cloud: basic disk.

  • cloud_efficiency: ultra disk.

  • cloud_ssd: standard SSD.

  • cloud_essd: enterprise SSD.

  • cloud_auto: ESSD AutoPL disk.

  • cloud_essd_entry: ESSD Entry disk.

  • cloud_regional_disk_auto: regional Enterprise SSD (ESSD).

  • elastic_ephemeral_disk_standard: elastic ephemeral disk - standard edition.

  • elastic_ephemeral_disk_premium: elastic ephemeral disk - Premium Edition.

Default value: cloud.

cloud_ssd

Description

string

No

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

Default value: empty.

testDescription

Encrypted

boolean

No

Specifies whether to encrypt the disk. Valid values:

  • true: yes.

  • false: no.

Default value: false.

false

ClientToken

string

No

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 token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see Ensure idempotence.

123e4567-e89b-12d3-a456-426655440000

InstanceId

string

No

The ID of the subscription instance to which the disk is automatically attached. Specify this parameter to create a subscription disk and attach it to the specified subscription instance.

  • After you specify the instance ID, the ResourceGroupId, Tag.N.Key, Tag.N.Value, ClientToken, and KMSKeyId parameters are ignored.

  • You cannot specify both ZoneId and InstanceId.

Default value: empty. An empty value indicates that a pay-as-you-go disk is created. The region and zone of the disk are determined by the RegionId and ZoneId parameters.

i-bp18pnlg1ds9rky4****

ResourceGroupId

string

No

The ID of the resource group to which the disk belongs.

rg-bp67acfmxazb4p****

KMSKeyId

string

No

The ID of the Key Management Service (KMS) key used to encrypt the disk.

Note

If Encrypted is set to true and KMSKeyId is not specified, the default key is used for encryption, and the KMSKeyId value is returned after the disk is created.

    • If the disk is created from an unshared encrypted snapshot, the encryption key used for the snapshot is used by default.

    • If the disk is created from a shared encrypted snapshot, the service key is used by default.

    • If the disk is created in a region where account-level default encryption for Block Storage is enabled, the specified account-level key is used by default.

    • In other cases, the service key is used by default.

0e478b7a-4262-4802-b8cb-00d3fb40826X

PerformanceLevel

string

No

The performance level of the enterprise SSD (standard SSDs do not support this parameter). Valid values:

  • PL0: A single disk can deliver up to 10,000 random read/write IOPS.

  • PL1: A single disk can deliver up to 50,000 random read/write IOPS.

  • PL2: A single disk can deliver up to 100,000 random read/write IOPS.

  • PL3: A single disk can deliver up to 1,000,000 random read/write IOPS.

Default value: PL1.

For more information about how to select an enterprise SSD performance level, see enterprise SSDs.

PL1

AdvancedFeatures

string

No

This parameter is not available.

hide

StorageSetId

string

No

The ID of the storage set.

Note

You can specify only one of the storage set parameters (StorageSetId and StorageSetPartitionNumber) and the dedicated block storage cluster parameter (StorageClusterId). If you specify both, the API call fails.

ss-bp67acfmxazb4p****

EncryptAlgorithm

string

No

This parameter is not available.

hide

StorageSetPartitionNumber

integer

No

The number of partitions in the storage set. Valid values: greater than or equal to 2. The maximum value cannot exceed the privilege quota limit displayed after you call DescribeAccountAttributes.

Default value: 2.

3

StorageClusterId

string

No

The ID of the dedicated block storage cluster. Specify this parameter to create a disk in a specific dedicated block storage cluster.

Note

You can specify only one of the storage set parameters (StorageSetId and StorageSetPartitionNumber) and the dedicated block storage cluster parameter (StorageClusterId). If you specify both, the API call fails.

dbsc-j5e1sf2vaf5he8m2****

MultiAttach

string

No

Specifies whether to enable the multi-attach feature. Valid values:

  • Disabled: disables the feature.

  • Enabled: enables the feature. Only enterprise SSDs support this feature (standard SSDs do not).

Default value: Disabled.

Note

Disks with the multi-attach feature enabled support only the pay-as-you-go billing method. Therefore, when MultiAttach is set to Enabled, you cannot specify the InstanceId parameter. You can call AttachDisk to attach the disk after it is created. Note that disks with the multi-attach feature enabled can only be attached as data disks.

Disabled

Tag

array<object>

No

The tags of the disk.

object

No

The tags of the disk.

key

string

No

The tag key of the disk.

Note

To improve code compatibility, use the Tag.N.Key parameter.

Test

Key

string

No

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

TestKey

Value

string

No

The tag value of the disk. Valid values of N: 1 to 20. The tag value can be an empty string. It can be up to 128 characters in length and cannot contain http:// or https://.

TestValue

value

string

No

The tag value of the disk.

Note

To improve code compatibility, use the Tag.N.Value parameter.

Test

Arn

array<object>

No

Note

This parameter is not available.

object

No

Note

This parameter is not available.

RoleType

string

No

Note

This parameter is not available.

hide

Rolearn

string

No

Note

This parameter is not available.

hide

AssumeRoleFor

integer

No

Note

This parameter is not available.

1000000000

ProvisionedIops

integer

No

The provisioned read and write IOPS for a single ESSD AutoPL disk. Valid values:

  • If the disk size is less than or equal to 3 GiB, you cannot configure provisioned performance.

  • If the disk size is greater than or equal to 4 GiB: 0 to min{(1,000 IOPS/GiB × disk size - baseline IOPS), 50,000}.

The baseline performance is calculated as follows: max{min{1,800 + 50 × disk size, 50,000}, 3,000}.

Note

This parameter is supported only when DiskCategory is set to cloud_auto. For more information, see ESSD AutoPL disks.

40000

BurstingEnabled

boolean

No

Specifies whether to enable the performance burst feature. Valid values:

  • true: yes.

  • false: no.

Note

This parameter is supported only when DiskCategory is set to cloud_auto. For more information, see ESSD AutoPL disks.

false

ReadWriteMode

string

No

The access mode of the disk.

Valid values:

  • ReadWrite
  • ReadOnly

ReadOnly

Response elements

Element

Type

Description

Example

object

DiskId

string

The disk ID.

d-bp131n0q38u3a4zi****

RequestId

string

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

OrderId

string

The order ID.

Note

The order ID is returned only when you create a subscription disk.

20413515388****

Examples

Success response

JSON format

{
  "DiskId": "d-bp131n0q38u3a4zi****",
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
  "OrderId": "20413515388****"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidSize.ValueNotSupported The specified value of parameter Size is not valid. Please ensure the disk size is within the range supported by the specified disk category and try again.
400 InvalidDiskName.Malformed The specified disk name is malformed.
400 InvalidDescription.Malformed The specified parameter Description is not valid. Please ensure that the description is 2 to 256 characters long and does not start with "http://" or "https://" and try again.
400 MissingParameter Either parameter SnapshotId or parameter Size must be specified. Please specify one of them and try again.
400 InvalidDiskCategory.NotSupported The specified disk category is not supported. Please call DescribeAvailableResource to view supported disk categories and try again.
400 Account.Arrearage Your account has an outstanding payment. Your account has overdue payments.
400 InvalidDiskCategory.ValueNotSupported The specified parameter DiskCategory is not valid. Please call DescribeAvailableResource to view supported disk categories and try again.
400 InvalidParameter.Conflict %s The specified parameter is invalid. Check whether parameter conflicts exist. %s is a variable. An error message is dynamically returned based on call conditions.
400 OperationDenied The specified Zone is not available or not authorized.
400 InvalidDiskSize.NotSupported The specified parameter size is not valid. The disk size is invalid.
400 InvalidDiskSizeOrCategory The specified disk category or size is invalid. The specified disk category or size is invalid.
400 InvalidParameter.EncryptedIllegal The Encrypted parameter must be set to true when KMSKeyId is specified. Please adjust the parameters and try again.
400 Duplicate.TagKey The parameter Tag.N.Key contains duplicate values. Please remove the duplicate tag keys and try again.
400 InvalidTagKey.Malformed The specified Tag.n.Key is not valid. The specified Tag.N.Key parameter is invalid.
400 InvalidTagValue.Malformed The specified Tag.n.Value is not valid. The specified tag value is invalid.
400 InvalidParameter.Arns The specified Arns is not valid. The Arns parameter is invalid. Please check and pass it again.
400 InvalidPerformanceLevel.Malformed The specified parameter PerformanceLevel is not valid. The specified PerformanceLevel parameter is invalid.
400 InvalidDiskCategory.ConflictSnapshotCategory The specified disk category is incompatible with the snapshot. Please select a compatible disk category or use another snapshot and try again.
400 InvalidEncrypted.NotMatchEncryptAlgorithm The Encrypted parameter must be set to true when EncryptAlgorithm is specified. Please adjust the parameters and try again.
400 InvalidEncrypted.NotMatchKmsKeyId The Encrypted parameter must be set to true when KMSKeyId is specified. Please adjust the parameters and try again.
400 InvalidEncryptAlgorithm.NotMatchSnapshot The specified parameter EncryptAlgorithm is different from the encrypt algorithm of the snapshot.
400 InvalidKmsKeyId.NotMatchSnapshot The specified parameter KMSKeyId does not match the KMS key of the snapshot. They must be the same.
400 InvalidEncryptAlgorithm The specified EncryptAlgorithm is not valid. Ensure the value is a supported encryption algorithm such as AES-256.
400 InvalidPerformanceLevel.ValueNotSupported The current zone does not support cloud_essd PL0. Please call DescribeAvailableResource to query the supported disk category and try again.
400 InvalidKMSKeyId.NotSymmetric The specified KMSKeyId must be a symmetric key. Please use a symmetric KMS key such as an AES-256 key.
400 InvalidStorageSetId.NotFound The specified storage set does not exist.
400 InvalidStorageClusterId.StatusNotSupport The current status of the dedicated storage cluster cannot create a cloud disk yet.
400 InvalidStorageClusterId.ConflictWithStorageSetId The specified StorageClusterId is in conflict with storageSetId.
400 InvalidStorageClusterId.ConflictWithInstanceId The specified StorageClusterId is in conflict with instanceId.
400 InvalidStorageClusterId.CategoryNotMatch The current dedicated storage cluster cannot create this category of disk.
400 InvalidStorageClusterId.PerformanceLevelNotMatch The current dedicated storage cluster cannot create this performance level of disk.
400 InvalidStorageClusterId.CapacityNotEnough The remaining capacity of the current dedicated storage cluster is less than the size of disk. The remaining capacity of the dedicated block storage cluster to which the disk belongs is insufficient.
400 InvalidCloudBoxZone.EncryptedNotSupported The cloud box zone does not support creating encrypted disks.
400 InvalidInstance.NotFoundSystemDisk The specified instance has no system disk. The specified instance does not have a system disk. Make sure that the instance has a system disk. You can call the DescribeInstances operation to query the details of the instance.
400 ProvisionedIopsForDiskCategoryUnsupported The specified disk category does not support provisioned iops. The specified disk type does not support provisioned IOPS.
400 InvalidProvisionedIops.LimitExceed The specified ProvisionedIops is beyond the permitted range. Please adjust ProvisionedIops according to the limits of the disk category and the disk size and try again.
400 BurstingEnabledForDiskCategoryUnsupported The parameter BurstingEnabled is not supported for the specified disk category. Please set DiskCategory to a supported value such as cloud_auto and try again.
400 BurstingEnabledForMultiAttachDiskUnsupported The parameter BurstingEnabled is not supported for multi-attach disks. Please disable bursting or use a disk without multi-attach enabled and try again.
400 ProvisionedIopsForDiskCategoryRequired The provisioned iops is required for this disk category. You must specify provisioned IOPS for this disk type.
400 NotSupportSnapshotEncrypted.RegionId The specified region does not support creating encrypted disks with native snapshot encrypt.
400 NotSupportSnapshotEncrypted.ZoneId The specified zone does not support creating encrypted disks with native snapshot encrypt.
400 NotSupportSnapshotEncrypted.ShareImage Shared snapshot creating encrypted disks with native snapshot encrypt is not supported. When you create encrypted disks based on a shared image, only the encryption key provided by the shared image can be used for these disks and you cannot specify encryption keys for the disks.
400 NotSupport.SnapshotEncryptedAlgorithmConflict The specified encryption algorithm conflicts with the encrypted snapshot. Please use the same encryption algorithm as the snapshot and try again.
400 QuotaExceed.DiskCapacity The disk capacity quota of the specified disk category has been exceeded in the current zone. Please reduce the requested disk capacity or select another zone and try again. You can also view the disk capacity quota and apply for an increase in Quota Center.
400 InsufficientBalance.AgentAccount The account balance is insufficient. Please contact your channel partner to recharge in time. The account balance is insufficient. Contact your customer service representative to add funds to the account in a timely manner.
400 InvalidParam.EncryptedMismatch Creating encrypted disks from shared encrypted snapshots requires replacing the encryption key. Please set the Encrypted parameter to true.
400 InvalidAccountStatus.NotEnoughBalance Your account does not have enough balance. Please contact your partner to increase your account balance.
400 InvalidParameter.KmsNotEnabled The operation failed because KMS is not activated. Please activate KMS in the KMS console and try again.
400 InvalidParameter.Encrypted.KmsNotEnable The operation failed because KMS is not activated. Please activate KMS in the KMS console and try again.
400 InvalidZoneId.DiskCategoryUnsupported The specified disk category does not support setting the ZoneId. The specified disk category does not support setting the ZoneId.
400 InvalidStorageSetId.DiskCategoryUnsupported The specified disk category does not support setting the StorageSetId. The specified disk category does not support setting the StorageSetId.
400 InvalidStorageClusterId.DiskCategoryUnsupported The specified disk category does not support setting the StorageClusterId. The specified disk category does not support setting the StorageClusterId.
400 InvalidParameter.Encrypted Creating non-encrypted disks from encrypted snapshots is not allowed. Please set Encrypted to true or use an unencrypted snapshot.
400 EncryptedOption.Conflict Disk encryption attributes conflict. Disk encryption attributes conflict.
400 InvalidDataDiskCategory.NotSupported The specified disk category is not supported. Please call DescribeAvailableResource to query the supported disk category and try again.
400 InvalidBurstingEnabled.DiskSizeTooSmall The disk size must be greater than 3 GiB to enable burst. The disk size must be greater than 3 GiB to enable burst.
400 OperationDenied.RiskIssue Your action is denied due to a risk issue. Please contact customer service.
400 InvalidDiskSize.ExceedsMultiAttachLimit The specified disk size exceeds the maximum limit 65536 for enabling multi-attach. The specified disk size exceeds the maximum limit 65536 for enabling multi-attach.
400 InvalidStatus.ValueNotSupported The specified instance status is not supported for this operation. The expected status is Running or Stopped.
400 InvalidSnapshot.NotReady The creation of the specified snapshot failed. Please use another snapshot and try again.
400 InvalidStorageClusterId.DiskPoolRequired The specified disk category can only be created in a disk pool. cloud_agentic_disk can only be created in disk pool
400 InvalidDiskPoolId.CapacityNotEnough The remaining capacity of the specified disk pool is insufficient. Please reduce the disk size or choose another disk pool and try again.
400 OperationDenied.UnfinishedOrder The current instance has unfinished refundOrder, this operation is denied. The instance has an unfinished refund order. Wait and try again later.
400 IncorrectInstanceStatus The current status of instance does not support this operation. The instance is in a state that does not support the current operation.
400 InvalidParameter.ReadWriteMode The specified parameter "ReadWriteMode" is not valid. Please set it to ReadWrite or ReadOnly and try again.
400 InvalidOperation.ReadOnlyDiskMustCreateFromSnapshot A read-only disk must be created from a snapshot. Please specify "SnapshotId" and try again.
400 InvalidDiskCategory.NotSupportReadOnlyMode The specified disk category does not support read-only mode. Please specify a disk category that supports read-only mode and try again.
400 InvalidOperation.ReadOnlyDiskNotSupportPrepay A read-only disk does not support the PrePaid charge type. Please set "InstanceChargeType" to "PostPaid" and try again.
400 InvalidParameter.MultiAttachConflictWithReadWriteMode The "MultiAttach" parameter cannot be set to "Disabled" when "ReadWriteMode" is set to "ReadOnly". Please set "MultiAttach" to "Enabled" and try again.
500 InternalError The request processing has failed due to an internal error and you may retry later or contact support with the request ID.
403 InvalidDataDiskCategory.NotSupported The specified disk category is not supported. Please call DescribeAvailableResource to query the supported disk category and try again.
403 InstanceDiskCategoryLimitExceed The total size of specified disk category in an instance exceeds. The total size of disks of the specified category exceeds the maximum capacity allowed for an instance.
403 InvalidSnapshot.NotReady The creation of the specified snapshot is still in progress. Please wait for it to complete and try again.
403 InvalidSnapshot.TooOld This operation is forbidden because the specified snapshot is created before 2013-07-15.
403 InvalidSnapshot.TooLarge The capacity of snapshot exceeds 2000GB. The snapshot size exceeds 2,000 GB.
403 OperationDenied The specified snapshot is not available for disk creation. Please use another snapshot and try again.
403 QuotaExceed.PortableCloudDisk The quota of portable cloud disk exceeds.
403 InvalidDiskCategory.ValueUnauthorized The disk category is not authorized. You need permission to operate this disk category.
403 InvalidSnapshotId.NotReady The creation of the specified snapshot is still in progress. Please wait for it to complete and try again.
403 InvalidSnapshotId.NotDataDiskSnapshot The specified snapshot is system disk snapshot.
403 InvalidDiskSize.TooSmall Specified disk size is less than the size of snapshot.
403 InvalidDiskSize.NotSupported Disk size is not supported.
403 InvalidAccountStatus.NotEnoughBalance Your account does not have enough balance.
403 InvalidAccountStatus.SnapshotServiceUnavailable The snapshot service has not been activated. Please activate it and try again.
403 InvalidPayMethod The specified pay method is not valid.
403 InvalidDiskCategory.NotSupported The specified disk category is not supported. Please call DescribeAvailableResource to view supported disk categories and try again.
403 UserNotInTheWhiteList The current account is not in the allowlist for this operation. Please submit a ticket to apply for access.
403 QuotaExceed.PostPaidDisk The quota for pay-as-you-go data disks has been exceeded. Please reduce the number of disks or request a quota increase.
403 InvalidRegion.NotSupport The specified region does not support customer master keys. Please choose another region or use a default KMS key and try again.
403 InvalidParameter.KMSKeyId.KMSUnauthorized ECS service does not have permission to access your KMS key. Please verify that the specified KMS key has authorized the ECS service.
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. A security risk was detected with your default credit or debit card. Verify it by using the link in the email.
403 InvalidParameter.AdvancedFeatures The specified parameter AdvancedFeatures is not valid.
403 InvalidInstanceChargeType.ValueNotSupported The InstanceChargeType does not support this action. The specified instance billing method does not exist.
403 InvalidStatus.Upgrading The instance is upgrading; please try again later.
403 InvalidParam.ZoneIdAndInstanceId.Conflict The parameters ZoneId and InstanceId cannot both be specified. Please specify exactly one of them and try again.
403 OperationDenied.PerformanceLevelNotMatch The specified PerformanceLevel and Size do not match.
403 InvalidStorageSetName.Malformed Specified parameter StorageSetName is not valid.
403 InvalidDescription.Malformed The specified parameter Description is not valid. Please ensure that the description is 2 to 256 characters long and does not start with "http://" or "https://" and try again.
403 InvalidMaxPartitionNumber.Malformed Specified parameter MaxPartitionNumber is not valid.
403 InvalidParameter.StorageSetPartitionNumber Specified parameter StorageSetPartitionNumber is not valid.
403 InvalidParameter.StorageSetId Specified parameter StorageSetId is not valid.
403 InvalidParameter.StorageSetZoneId Specified parameter StorageSetZoneId is not valid.
403 QuotaExceed.Tags %s The number of specified tags exceeds the upper limit. %s is a variable. An error message is dynamically returned based on call conditions.
403 QuotaExceeded.PostpaidDataDiskCapacity The quota for pay-as-you-go data disk capacity has been exceeded. Please reduce the requested capacity or apply for a quota increase.
403 InvalidRegionId.NotSupportEncryptAlgorithm The parameter EncryptAlgorithm is not supported. Please remove EncryptAlgorithm and try again.
403 OperationDenied.SnapshotNotAllowed The specified snapshot is invalid or not in a usable state. Please make sure the snapshot exists or use another snapshot and try again.
403 LastTokenProcessing The last token request is being processed. Please wait and try again.
403 InvalidParameter.MultiAttach The specified parameter MultiAttach is not valid. Please set it to Disabled or Enabled and try again.
403 InvalidParameter.MultiAttachAndInstanceIdConflict The parameters MultiAttach and InstanceId are in conflict. Please remove InstanceId or remove MultiAttach and try again.
403 InvalidParameter.DiskCategoryAndMultiAttachConflict The specified disk category does not support multi attach set. The MultiAttach parameter is not supported by Shared Block Storage devices.
403 InvalidParameter.DiskCategoryAndMultiAttachNotMatch The specified disk category does not support multi attach enabled. The specified disk category does not support the multi-attach feature.
403 OperationDenied.ZoneNotSupportMultiAttachDisk The specified zone does not support multi-attach disks.
403 InvalidAccountStatus.CouponAmountNotEnough Your coupon balance is insufficient or has expired. Your coupon balance is insufficient or your coupons have expired.
403 InvalidOperation.CreateFromSnapshotUnsupported The elastic ephemeral disk cannot be created from snapshot. The elastic ephemeral disk cannot be created from snapshot.
403 NotSupportSnapshotEncrypted.DiskCategory The specified disk category does not support re-encrypting a disk with a new KMSKeyId from a snapshot. Please use a disk category that supports encryption such as cloud_essd.
403 Zone.NotOnSale The resource in the specified zone is no longer available for sale. Please try other regions and zones. The specified zone is sold out. Change the instance type or region and try again.
403 RegionUnauthorized You are not authorized to perform the operation in the specified region. You are not authorized to perform the operation in the specified region.
403 InvalidDataDiskCategory.ValueNotSupported The specified value of parameter DiskCategory is not valid. Please call DescribeAvailableResource to query the supported disk category and try again.
403 InvalidParameter.EncryptedNotSupported The current disk category does not support encryption. If encryption is required; please switch to a different disk category.
403 InvalidDataDiskSize.ValueNotSupported The specified disk size is beyond the permitted range; or the snapshot capacity exceeds the size limit for the specified disk category.
403 InvalidParameter.KMSKeyId.CMKNotEnabled The specified KMS key must be in an enabled state. Please enable the key in the KMS console and try again.
403 InvalidParameter.KMSKeyId.CMKUnauthorized The specified KMS key is not authorized for the ECS service. Please grant the ECS service permission to use the key in the KMS console and try again.
403 InvalidEncrypted.NotMatchSnapshot The Encrypted parameter must be set to true when creating disks from encrypted snapshots. Please set Encrypted to true or use an unencrypted snapshot.
403 InvalidEncrypted.NotMatchDiskDefaultEncryption The operation failed because default disk encryption is enforced on your account. Please set the Encrypted parameter to true.
403 InvalidInstanceStatus The current status of the instance does not support this operation. The instance is in a state that does not support the current operation.
403 InvalidDiskSize.NotSupportMultiAttachDisk The specified disk size exceeds the maximum limit 65536 for enabling multi-attach. The specified disk size exceeds the maximum limit 65536 for enabling multi-attach.
403 InstanceDiskLimitExceeded The number of disks attached to the instance has exceeded the limit.
403 InvalidOperation.PrepaidDiskUnsupported The specified DataSource does not support prepaid disk charge type. The specified DataSource does not support the prepaid disk type.
403 UnsupportedUserType The specified DataSource is not enabled. The DataSource mode disk creation function has not been enabled.
403 InvalidDataSource.NotAvailable The specified DataSource is not available. Please contact the ACS Service team to verify DataSource availability. The DataSource is not available. Contact the ACS service team to check the resource availability.
403 InvalidParameter.DataSourceType The specified DataSourceType is not valid. The DataSourceType only supports ImageCache. The specified DataSource type is invalid. DataSourceType only supports ImageCache.
403 InvalidParameter.DataSource Both DataSourceId and DataSourceType must be specified. Both DataSourceId and DataSourceType must be specified.
403 InvalidDataSource.EncryptedResourceNotSupported Encrypted DataSources are not supported. Please switch to a non-encrypted DataSource and try again. Encrypted DataSource is not supported. Please use a non-encrypted DataSource and try again.
403 ParameterConflict.DataSourceAndSnapshotId The specified parameter DataSource is incompatible with SnapshotId. You can specify either DataSource or SnapshotId but not both. The specified DataSource is incompatible with the SnapshotId. You can specify only one of the DataSource or SnapshotId. You cannot specify both.
403 InvalidZoneId.EncryptedUnsupported The specified ZoneId does not support creating encrypted disks. The zone in this region does not support creating an encryption disk.
403 IncorrectInstanceStatus.Initializing The specified instance status does not support this operation. Please wait for the instance to reach Running status and try again.
403 OperationDenied.KMSKeyUnauthorized The operation is denied due to missing KMS key authorization. Please check the KMS key permissions and ensure the key is properly authorized for this operation.
403 InvalidOperation.RegionNotInWhiteList The operation was denied because the current region is not in the whitelist. The current region is not in the whitelist. This operation is not supported.
404 InvalidRegionId.NotFound The specified RegionId does not exist. The specified region ID does not exist.
404 InvalidZoneId.NotFound The specified zone does not exist.
404 InvalidSnapshotId.NotFound The specified SnapshotId does not exist. Please verify the SnapshotId and the current region and try again.
404 InvalidResourceGroup.NotFound The specified ResourceGroupId does not exist. Please verify the ResourceGroupId and try again.
404 InvalidParameter.KMSKeyId.NotFound The specified KMSKeyId does not exist. Please verify that the key ID is correct and that the key resides in the current region.
404 InvalidInstanceId.NotFound The InstanceId provided does not exist in our records.
404 InvalidStorageClusterId.NotExist The specified StorageClusterId does not exist in current region. The specified storage cluster ID does not exist in the current region.
429 Throttling The request was denied due to storage throttling. Please retry later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.