ModifyVolume

Last updated:2022-09-05 10:13:12

1. Description

You can call this operation to modify the attributes of an EBS volume, including the name and description of the EBS volume.

2. Request parameters

Parameter Type Required Description
VolumeId String Yes The ID of the EBS volume whose attributes are to be modified in a KEC instance. The EBS volume and the KEC instance must reside in the same availability zone. The ID must be 36 characters in length and can contain letters, digits, hyphens (-), and underscores (_).
VolumeName String No The name of the EBS volume. The name must be 2 to 50 characters in length and can contain letters, digits, hyphens (-), and underscores (_).
VolumeDesc String No The description of the EBS volume. The description can be up to 50 characters in length.
DeleteWithInstance Boolean No Specifies whether to delete the EBS volume when the KEC instance to which it is attached is deleted. Valid values:
true: Delete the EBS volume when the KEC instance is deleted.
false: Detach the EBS volume from the KEC instance but do not delete the EBS volume when the KEC instance is deleted.
Version String Yes The API version. Valid value: 2016-03-04.

3. Response parameters

Parameter Type Required Description
RequestId String Yes The request ID, which is unique. A request ID is returned for each request.
Return Boolean No Indicates whether the attributes of the EBS volume are modified. True indicates yes.

4. Examples

Request parameters

http://ebs.api.ksyun.com/
?Action=ModifyVolume
&Version=2016-03-04
&VolumeId=b01cbcb3-04dd-40c8-bfbb-dc990d54ee68
&VolumeName=test-rename
&VolumeDesc=test-rename-desc

Response parameters

{
  "RequestId": "6e2682a1-5968-42f5-80e5-284aae218df0",
  "Return": true
}

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈