CreateDisk

更新时间:
复制 MD 格式

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

Operation description

  • When you create a disk, you can enable the multi-attach feature (MultiAttach). We recommend that you understand this feature and its limitations. For more information, see NVMe support for ESSDs and Use the multi-attach feature.

  • Supported disk types: basic cloud disk, ultra cloud disk, SSD cloud disk, ESSD, ESSD Entry cloud disk, ESSD Zone-Redundant (ZR) disk, ESSD AutoPL cloud disk, elastic temporary disk-standard, and elastic temporary disk-premium.

  • To create a disk, you must complete real-name registration. You can complete the real-name registration in your account information.

  • Creating a disk incurs charges. Before proceeding, review the billing overview to understand the billing methods for ECS.

  • Default settings when you create a disk:

    • By default, deleting a disk also deletes its automatic snapshots. This means the DeleteAutoSnapshot parameter is set to true. You can call DescribeDisks to query this setting and ModifyDiskAttribute to modify it.

    • When you create an ESSD without specifying a disk performance level, it defaults to PL1. You can call ModifyDiskSpec to modify the disk performance level.

    • The default billing method is pay-as-you-go, which means the Portable attribute is set to 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 the pay-as-you-go disk.

  • If you do not set InstanceId, this parameter is required.

  • You cannot specify both ZoneId and InstanceId.

Note

ESSD zone-redundant disks (cloud_regional_disk_auto) do not require a zone ID.

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 capacity is greater than the specified Size, the actual disk size is the snapshot capacity.

  • If the snapshot capacity is smaller than the specified Size, the actual disk size is the specified Size.

  • You cannot use snapshots to create Elastic Ephemeral Disks.

s-bp67acfmxazb4p****

DiskName

string

No

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

Default value: empty.

testDiskName

Size

integer

No

The capacity of the disk, in GiB. You must specify a value for this parameter. Value range:

  • cloud: 5 to 2,000

  • cloud_efficiency: 20 to 32,768

  • cloud_ssd: 20 to 32,768

  • 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 following limits apply to SnapshotId and Size:

  • If the snapshot capacity is greater than the specified Size, the actual disk size is the snapshot capacity.

  • If the snapshot capacity is smaller than the specified Size, the actual disk size is the specified Size.

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: ESSD

  • cloud_auto: ESSD AutoPL disk

  • cloud_essd_entry: ESSD Entry disk

  • cloud_regional_disk_auto: ESSD zone-redundant disk

  • elastic_ephemeral_disk_standard: Elastic Ephemeral Disk - Standard

  • elastic_ephemeral_disk_premium: Elastic Ephemeral Disk - Premium

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

  • false

Default value: false.

false

ClientToken

string

No

A client-generated, unique, case-sensitive token that you can use to ensure the idempotency of the request. ClientToken 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

Creates a subscription disk and automatically attaches it to the specified subscription instance.

  • If you set this parameter, 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 you are creating a pay-as-you-go disk. The disk's location 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 KMS key to use for the disk.

Note

If Encrypted is set to true and you do not specify KMSKeyId, a default key is used for encryption. The KMSKeyId is returned in the response after the instance is created.

    • If the disk is created from an unshared encrypted snapshot, the encryption key used by that 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 with account-level default encryption 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 ESSD. 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 choose an ESSD performance level, see ESSDs.

PL1

AdvancedFeatures

string

No

This parameter is not yet available.

hide

StorageSetId

string

No

The ID of the storage set.

Note

You can specify either storage set parameters (StorageSetId and StorageSetPartitionNumber) or the dedicated block storage cluster parameter (StorageClusterId), but not both. The request fails if you specify parameters for both.

ss-bp67acfmxazb4p****

EncryptAlgorithm

string

No

This parameter is not yet available.

hide

StorageSetPartitionNumber

integer

No

The number of partitions in the storage set. The value must be greater than or equal to 2 and cannot exceed the quota returned by the DescribeAccountAttributes operation.

Default value: 2.

3

StorageClusterId

string

No

The ID of the dedicated block storage cluster. If you need to create a disk in a specific dedicated block storage cluster, specify this parameter.

Note

You can specify either storage set parameters (StorageSetId and StorageSetPartitionNumber) or the dedicated block storage cluster parameter (StorageClusterId), but not both. The request fails if you specify parameters for both.

dbsc-j5e1sf2vaf5he8m2****

MultiAttach

string

No

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

  • Disabled: The feature is disabled.

  • Enabled: The feature is enabled. Currently, only ESSDs support setting this parameter to Enabled.

Default value: Disabled.

Note

Disks with the multi-attach feature enabled can only be billed on a pay-as-you-go basis. Therefore, you cannot set the InstanceId parameter when MultiAttach is Enabled. After you create the disk, you can call AttachDisk to attach it. Note that a multi-attach disk can be attached only as a data disk.

Disabled

Tag

array<object>

No

A list of tags for the disk.

object

No

A list of tags for the disk.

key

string

No

The tag key of the disk.

Note

For better code compatibility, we recommend that you use the Tag.N.Key parameter.

Test

Key

string

No

The tag key of the disk.

Note

For better code compatibility, we recommend that you use the Tag.N.Key parameter.

TestKey

Value

string

No

The tag value of the disk. The value of N ranges from 1 to 20. If you specify Tag.N.Value, the value can be an empty string. The value can be up to 128 characters in length and cannot contain http:// or https://.

TestValue

value

string

No

The tag value of the disk. The value of N ranges from 1 to 20. If you specify Tag.N.Value, the value can be an empty string. The value can be up to 128 characters in length and cannot contain http:// or https://.

Test

Arn

array<object>

No

Note

This parameter is not yet available.

object

No

Note

This parameter is not yet available.

RoleType

string

No

Note

This parameter is not yet available.

hide

Rolearn

string

No

Note

This parameter is not yet available.

hide

AssumeRoleFor

integer

No

Note

This parameter is not yet available.

1000000000

ProvisionedIops

integer

No

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

  • Capacity <= 3 GiB: You cannot set provisioned performance.

  • Capacity >= 4 GiB: 0 to min(1,000 IOPS/GiB × Capacity - Baseline IOPS, 50,000).

Baseline IOPS = max(min(1,800 + 50 × Capacity, 50,000), 3,000).

Note

This parameter is available only for ESSD AutoPL disks (cloud_auto). For more information, see ESSD AutoPL disks.

40000

BurstingEnabled

boolean

No

Specifies whether to enable performance bursting. Valid values:

  • true

  • false

Note

This parameter is available only for ESSD AutoPL disks (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****

RequestId

string

The ID of the request.

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

OrderId

string

The ID of the order.

Note

This parameter 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 parameter Size is not valid. The specified Size parameter is invalid.
400 InvalidDiskName.Malformed The specified disk name is wrongly formed. The disk name is invalid. The name must be 2 to 128 characters in length and start with a letter. It can contain letters, digits, periods (.), underscores (_), and hyphens (-) and cannot start with http:// or https.
400 InvalidDescription.Malformed The specified description is wrongly formed. The resource description is invalid. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
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 support. 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.
400 InvalidDiskSizeOrCategory The specified disk category or size is invalid. The specified disk category or size is invalid.
400 InvalidParameter.EncryptedIllegal The specified parameter Encrypted must be true when kmsKeyId is not empty. The encryption feature is not enabled after a Key Management Service (KMS) key ID is specified.
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 specified parameter Encrypted must be true when EncryptAlgorithm is not empty.
400 InvalidEncrypted.NotMatchKmsKeyId The specified parameter Encrypted must be true when KmsKeyId is not empty.
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 parameter EncryptAlgorithm is not valid.
400 InvalidPerformanceLevel.ValueNotSupported The current ZoneId does not support PL0 of cloud_essd.
400 InvalidKMSKeyId.NotSymmetric The specified parameter KmsKeyId must be symmetric. The KMSKey used for encryption must be a symmetric encryption 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.
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.
400 BurstingEnabledForMultiAttachDiskUnsupported The multi attach disk does not support bursting enabled.
400 ProvisionedIopsForDiskCategoryRequired The provisioned iops is required for this disk category.
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 with shared encrypted snapshots requires replacing encryption keys.
400 InvalidAccountStatus.NotEnoughBalance Your account does not have enough balance, please contact your partner to increase your account balance.
400 InvalidParameter.KmsNotEnabled Failed to perform this operation because KMS is not activated. You need to activate KMS key management service.
400 InvalidParameter.Encrypted.KmsNotEnable Failed to perform this operation because KMS is not activated. You need to activate KMS key escrow service.
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 with encrypted snapshots is not supported. Creating a non-encrypted disk with an encrypted snapshot is not supported.
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 by 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, expect status is Running or Stopped. The status of the specified instance is not satisfied. The status of the instance should be Running or Stopped.
400 InvalidSnapshot.NotReady The specified snapshot creation is not completed yet. The specified snapshot is not created.
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.
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 have no right to access your KMS. ECS is not authorized to access your KMS resources.
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.
403 InvalidParameter.AdvancedFeatures The specified parameter AdvancedFeatures is not valid.
403 InvalidInstanceChargeType.ValueNotSupported The InstanceChargeType does not support this action.
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 support multi attach disk. Disks for which the multi-attach feature is enabled cannot be created in the specified zone.
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 creating encrypted system disks or creating encrypted data disks from snapshots. Check the DiskCategory or Encrypted parameter, or check your account for default encryption settings. This disk type does not support creating encrypted system disks or creating encrypted data disks in snapshot mode. Please check the disk type and encryption parameters you entered, or check whether you have configured the default encryption configuration for account cloud disks.
403 InvalidParameter.DataEncryptedKeyCreateFailed Create kms data encrypted key fail. If you need further assistance, you can contact the KMS Technical Support. Failed to create a data key using the KMS master key. Please contact the KMS attendant for further troubleshooting.
403 Zone.NotOnSale The resource in the specified zone is no longer available for sale. Please try other regions and zones.
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. 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. 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 CMK (Customer Master Key) must be in an active state. The CMK (Customer Master Key) must be in an active state.
403 InvalidParameter.KMSKeyId.CMKUnauthorized The CMK(Customer Master Key) lacks authorization to add tags to the ECS service. The CMK(Customer Master Key) lacks authorization to add tags to the ECS service.
403 InvalidEncrypted.NotMatchSnapshot The specified parameter Encrypted must be set to true when creating disks with encrypted snapshots. When you create a disk using an encrypted snapshot, the specified parameter Encrypted must be set to true.
403 InvalidEncrypted.NotMatchDiskDefaultEncryption Enabling disk default encryption prevents the creation of non-encrypted disks. After the default encryption of the cloud disk account is enabled, an unencrypted disk cannot be created.
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 amount of the disk on instance reach its limits.
403 InvalidZoneId.EncryptedUnsupported The specified ZoneId does not support creating encrypted disks. The zone in this region does not support creating an encryption disk.
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. The specified KMSKeyId parameter does not exist.
404 InvalidInstanceId.NotFound The InstanceId provided does not exist in our records.
404 InvalidStorageClusterId.NotExist The specified StorageClusterId does not exist in current region.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.