- Documentation
Elastic Compute Service
Elastic Compute Service
API Reference
Volumes
ModifyVolumeAttribute - Modify volume attributes
Volumes
ModifyVolumeAttribute - Modify volume attributes
ModifyVolumeAttribute - Modify volume attributes
Call the ModifyVolumeAttribute interface to modify volume attributes.
Debugging
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
request parameters
Only unique request parameters for this interface and some common parameters are listed below. For more information, see Common Parameters. Action string required Example value: ModifyVolumeAttribute
Operation to perform, value: ModifyVolumeAttribute.
Version string required Example value: 2020-04-01
The version of the API is: 2020-04-01.
VolumeName string required Example: dtest3-volume-1
Cloud disk name.
Description string optional example value: test
Volume description information.
DeleteWithInstance boolean Optional Example: true
When releasing the instance, choose whether to release the volume with the instance. Details are as follows:
- true: Released with the instance.
- false: Not released with the instance.
DeleteProtection boolean Optional Example: true
Enable volume delete protection.
DeleteProtectionRetentionDays integer optional example value: 3
Snapshot data associated with delete protection is retained permanently by default. You can also select a specific retention period between 1 and 65,536 days (default is 30 days). Once the set period ends, the snapshot will be deleted automatically.
VolumeId string required Example: vol-3thhlu8byl4bwbha****
Volume ID.
Response parameters
This interface does not have unique response parameters. For more information, see Response Structure. Request example
Back to example
error code
The table below lists error codes related to this interface and business logic. For public error codes, see the public error codes documentation.
Last updated: 2026.03.23 16:42:27