Modifies attributes of a block storage device, such as its name, description, whether the disk is released with its instance, and whether to enable the bursting feature.
Operation description
Call this operation to modify attributes of a block storage device, such as its name, description, and whether it is released with its instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rds:ModifyRCDiskAttribute |
update |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. Call the |
cn-hangzhou |
| DiskId |
string |
Yes |
The ID of the disk to modify. |
rcd-wz9c8isqly8637zw**** |
| DiskName |
string |
No |
The name of the disk. The name must be 2 to 128 characters in length and can contain letters from the Letter category of Unicode (including English and Chinese characters), digits, colons (:), underscores (_), periods (.), and hyphens (-). |
testDisk |
| Description |
string |
No |
The description of the disk. The description must be 2 to 256 characters in length and cannot start with |
test |
| DeleteWithInstance |
boolean |
No |
Specifies whether to release the disk when its associated instance is released. If you do not specify this parameter, the current setting is retained. This parameter is not supported for cloud disks that have the multi-attach feature enabled. An error occurs if you set The disk is an ephemeral disk ( |
false |
| BurstingEnabled |
boolean |
No |
Specifies whether to enable the bursting feature for disks that support it. Valid values: true: Enables the feature.
false: Disables the feature.
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response body |
||
| RequestId |
string |
The ID of the request. |
1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC |
Examples
Success response
JSON format
{
"RequestId": "1E43AAE0-BEE8-43DA-860D-EAF2AA0724DC"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRegionId.MalFormed | The specified parameter RegionId is not valid. | The specified RegionId is illegal. |
| 400 | InvalidDiskName.Malformed | The specified disk name is wrongly formed. | The disk name format is incorrect. It can be 2 to 128 characters in length and start with an English letter or a Chinese letter. It can contain digits, periods (.), underscores (_), or hyphens (-). Cannot start with http:// and https. |
| 400 | NoAttributeToModify | No attribute to be modified in this request. | No properties were modified. |
| 400 | IncompleteParamter | Some fields can not be null in this request. | Missing parameter in request. |
| 400 | MissingParameter.DiskIdOrDiskIds | Specified parameter DiskId or DiskIds is missing. | The specified parameter DiskId or DiskIds is missing. |
| 400 | BurstingEnabledForDiskCategoryUnsupported | The specified disk category does not support bursting enabled. | The specified disk type does not support enabling the performance burst feature. |
| 400 | BurstingEnabledForMultiAttachDiskUnsupported | The multi attach disk does not support bursting enabled. | Multi-mount disks do not support the performance burst feature. |
| 400 | BurstingEnabledForModifyingDiskUnsupported | The modifying disk does not support bursting enabled. | Disks in the transition configuration are not allowed to modify the burst property. |
| 400 | InvalidBurstingEnabled.DiskSizeTooSmall | The disk size must be greater than 3 GiB to enable burst. | Performance burst can only be enabled when the disk size exceeds 3GiB. |
| 403 | QuotaExceed.Snapshot | The snapshot quota exceeds. | The snapshot quota exceeds the limit. If you want to store new snapshots, delete the existing old snapshots without affecting your business. |
| 403 | DiskNotPortable | The specified disk is not a portable disk. | The specified disk is not an unmountable disk. A disk with a Portable of false cannot be unmounted. |
| 403 | IncorrectDiskStatus | The operation is not supported in this status. | The current disk does not support this operation. Please check whether the disk is in normal use and is in arrears. |
| 403 | UserNotInTheWhiteList | The user is not in disk white list. | You are not in the disk whitelist. Please add it to the whitelist and try again. |
| 403 | DeleteWithInstance.Conflict | Multi attach disk cannot be set to DeleteWithInstance attribute. | Cloud disks with the multi-mount feature enabled do not support setting DeleteWithInstance. |
| 404 | InvalidDiskId.NotFound | The specified disk does not exist. | The specified disk does not exist. Please check whether the disk ID is correct. |
| 404 | InvalidDescription.Malformed | The specified description is wrongly formed. | The specified resource description format is invalid. The length is 2 to 256 characters and cannot start with http:// and https. |
| 404 | InvalidInstanceId.NotFound | Specified attached instance does not exist. | The specified instance does not exist. Check whether the instance ID is correct. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.