All Products
Search
Document Center

Elastic Compute Service:CreateDisk

Last Updated:Sep 17, 2026

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

Operation description

  • When you create a disk, you can enable the multi-attach attribute (MultiAttach). Learn about this attribute and its limits before you use it. For more information, see ESSD disks that support NVMe and Use the multi-attach feature.

  • The following disk types can be created: basic disk, ultra disk, standard SSD, enterprise SSD, ESSD Entry disk, regional Enterprise SSD (ESSD), ESSD AutoPL disk, elastic ephemeral disk - Standard Edition, and elastic ephemeral disk - Premium Edition.

  • You must complete account verification before you create a disk. Go to Identity Verification on the Member Information page.

  • Creating a disk incurs resource fees. Learn about 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 of the disk 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 property.

    • When you create an enterprise SSD, if you do not specify a 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 the default value of the Portable property is true.

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 ID of the region in which to create the disk. You can call DescribeRegions to query the most recent region list.

cn-hangzhou

ZoneId

string

No

The ID of the zone in which to create a 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 set ZoneId for disks of the cloud_regional_disk_auto type.

cn-hangzhou-g

SnapshotId

string

No

The ID of the snapshot to use 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 specified by SnapshotId is larger than the specified Size value, snapshot size of the created disk equals snapshot size of the specified snapshot.

  • If the snapshot specified by SnapshotId is smaller than the specified Size value, snapshot size of the created disk equals the specified Size value.

  • Elastic ephemeral disks cannot be created from snapshots.

s-bp67acfmxazb4p****

DiskName

string

No

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

Default value: empty.

testDiskName

Size

integer

No

Snapshot size of the disk. Unit: GiB. You must specify a value for 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 value range depends on the value of PerformanceLevel.

    • 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 SnapshotId, the SnapshotId and Size parameters have the following limits:

  • If the snapshot specified by SnapshotId is larger than the specified Size value, snapshot size of the created disk equals snapshot size of the specified snapshot.

  • If the snapshot specified by SnapshotId is smaller than the specified Size value, snapshot size of the created disk equals the specified 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 description of the disk. 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: Encrypts the disk.

  • false: Does not encrypt the disk.

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 token, but make sure that the token is unique among different requests. The ClientToken value can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence.

123e4567-e89b-12d3-a456-426655440000

InstanceId

string

No

The ID of the subscription instance to which the created subscription disk is automatically attached.

  • 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. This indicates that a pay-as-you-go disk is created. The region of the disk is determined by RegionId and ZoneId.

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 by the disk.

Note

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

    • If the disk is created from a non-shared encrypted snapshot, the encryption key used by 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 to create. Settings the performance level of the disk. 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 information about how to select an ESSD performance level, see Enterprise SSDs.

PL1

AdvancedFeatures

string

No

This parameter is not publicly available.

hide

StorageSetId

string

No

The ID of the storage set.

Note

You can set either the storage set parameters (StorageSetId and StorageSetPartitionNumber) or the dedicated block storage cluster parameter (StorageClusterId), but not both. If you set both, the API call fails.

ss-bp67acfmxazb4p****

EncryptAlgorithm

string

No

This parameter is not publicly available.

hide

StorageSetPartitionNumber

integer

No

The number of partitions in the storage set. Valid values: 2 and greater. The maximum value cannot exceed the privilege quota limit returned by invoking DescribeAccountAttributes.

Default value: 2.

3

StorageClusterId

string

No

The ID of the dedicated block storage cluster. To create a disk in a specific dedicated block storage cluster, specify this parameter.

Note

You can set either the storage set parameters (StorageSetId and StorageSetPartitionNumber) or the dedicated block storage cluster parameter (StorageClusterId), but not both. If you set both, the API call fails.

dbsc-j5e1sf2vaf5he8m2****

MultiAttach

string

No

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

  • Disabled: Disables the multi-attach attribute.

  • Enabled: Enables the multi-attach attribute. Only enterprise SSDs can be set to Enabled.

Default value: Disabled.

Note

Disks with the multi-attach attribute enabled support only the pay-as-you-go billing method. Therefore, when MultiAttach=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 be attached only as data disks.

Disabled

Tag

array<object>

No

The list of tags of the disk.

object

No

The list of tags of the disk.

Key

string

No

The tag key of the disk. Valid values of N: 1 to 20. The tag key cannot be an empty string. The tag key 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. The tag value can be up to 128 characters in length and cannot contain http:// or https://.

TestValue

key

string

No

The tag key of the disk.

Note

To improve code compatibility, use Tag.N.Key instead.

Test

value

string

No

The tag value of the disk.

Note

To improve code compatibility, use Tag.N.Value instead.

Test

Arn

array<object>

No

Note

This parameter is not publicly available.

object

No

Note

This parameter is not publicly available.

AssumeRoleFor

integer

No

Note

This parameter is not publicly available.

1000000000

RoleType

string

No

Note

This parameter is not publicly available.

hide

Rolearn

string

No

Note

This parameter is not publicly available.

hide

ProvisionedIops

integer

No

The provisioned read/write IOPS of the ESSD AutoPL disk. Valid values:

  • Capacity (GiB) <= 3: Provisioned performance is not supported.

  • Capacity (GiB) >= 4: [0, min{(1,000 IOPS/GiB × Capacity - Baseline IOPS), 50,000}]

Baseline performance = max{min{1,800 + 50 × Capacity, 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: Enables the performance burst feature.

  • false: Does not enable the performance burst feature.

Note

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

false

Response elements

Element

Type

Description

Example

object

DiskId

string

The ID of the disk.

d-bp131n0q38u3a4zi****

OrderId

string

The ID of the order.

Note

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

20413515388****

RequestId

string

The request ID.

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

Examples

Success response

JSON format

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

Error codes

HTTP status code

Error code

Error message

Description

400

InvalidSize.ValueNotSupported

The specified parameter Size is not valid.

The specified Size parameter is invalid.

400

InvalidDiskName.Malformed

The specified disk name is malformed.

400

InvalidDescription.Malformed

The specified description is malformed.

400

MissingParameter

The input parameter either "SnapshotId" or "Size" should be specified.

You must specify at least one of SnapshotId and Size in the parameter.

400

InvalidDiskCategory.NotSupported

The specified disk category is not supported.

400

Account.Arrearage

Your account has an outstanding payment.

Your account has overdue payments.

400

InvalidDiskCategory.ValueNotSupported

The specified parameter "DiskCategory" is not valid.

The specified cloud disk type DiskCategory is invalid.

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 Tag.N.Key contain duplicate key.

The specified tag key already exists. Tag keys must be unique.

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 conflict with snapshot category.

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 is different from the KmsKeyId of the snapshot.

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 ZoneId does not support PL0 of cloud_essd.

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 provisioned iops exceeds the limit.

The filled ProvisionedIops parameter exceeds the limit.

400

BurstingEnabledForDiskCategoryUnsupported

The specified disk category does not support bursting enabled.

The specified disk type does not support the performance burst feature.

400

BurstingEnabledForMultiAttachDiskUnsupported

The multi attach disk does not support bursting enabled.

Multi-attach disks do not support the performance burst feature.

400

ProvisionedIopsForDiskCategoryRequired

The provisioned iops is required for this disk category.

Provisioned IOPS must be specified 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

Changing encrypt algorithm with encrypted snapshot is not supported.

400

QuotaExceed.DiskCapacity

The used capacity of disk type has exceeded the quota in the zone, %s.

The capacity of disks that belong to the specified disk category exceeds the quota limit for the zone.

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

Specified disk category is not supported.

The specified disk category is not supported.

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 specified snapshot creation is not completed yet.

The specified snapshot is not created.

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.

500

InternalError

The request processing has failed due to some unknown error.

403

InvalidDataDiskCategory.NotSupported

Specified disk category is not supported.

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 specified snapshot creation is not completed yet.

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 allowed to create disk.

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 specified snapshot has not completed yet.

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

Snapshot service has not been opened yet.

The operation is not supported while the snapshot service is not activated.

403

InvalidPayMethod

The specified pay method is not valid.

403

InvalidDiskCategory.NotSupported

The specified disk category is not supported.

The specified disk category does not support this operation.

403

UserNotInTheWhiteList

The user is not in disk white list.

You are not authorized to manage the disk. Try again when you are authorized.

403

QuotaExceed.PostPaidDisk

Living postPaid disks quota exceeded.

The number of pay-as-you-go disks has exceeded the allowed quota.

403

InvalidRegion.NotSupport

The specified region does not support byok.

The bring your own key (BYOK) feature is not supported in the region.

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 has been detected on your default credit or debit card. Verify your identity 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 specified parameter 'ZoneId' and 'InstanceId' are not blank at the same time.

403

OperationDenied.PerformanceLevelNotMatch

The specified PerformanceLevel and Size do not match.

403

InvalidStorageSetName.Malformed

Specified parameter StorageSetName is not valid.

403

InvalidDescription.Malformed

Specified parameter Description is not valid.

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 of postpaid data disk capacity exceeds.

The used capacity of the pay-as-you-go disk reaches the quota limit.

403

InvalidRegionId.NotSupportEncryptAlgorithm

The current region does not support creating encrypted disks with EncryptAlgorithm.

403

OperationDenied.SnapshotNotAllowed

The specified snapshot is not allowed to create disk.

403

LastTokenProcessing

The last token request is processing.

403

InvalidParameter.MultiAttach

The specified param MultiAttach is not valid.

The specified MultiAttach parameter is invalid.

403

InvalidParameter.MultiAttachAndInstanceIdConflict

The parameter MultiAttach and InstanceId are conflict.

The MultiAttach and InstanceId parameters cannot be both specified.

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

InvalidParameter.DataEncryptedKeyCreateFailed

The ECS service is not authorized to access your KMS key. Please grant the ECS service permission to use the key and try again.

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 create the instance in a different region.

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 Category of Data Disk is not valid.

The specified data disk type is not supported.

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.

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.

404

InvalidResourceGroup.NotFound

The ResourceGroup provided does not exist in our records.

The specified resource group does not exist.

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.