You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Volumes
ModifyVolumeSpec - Volume Specification Change
Copy page
Download PDF
ModifyVolumeSpec - Volume Specification Change
Change the volume specifications via the ModifyVolumeSpec interface.​
precautions​
For detailed precautions about volume specification changes, see Volume Specification Change.​
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 the interface-specific request parameters and some common parameters are listed below. For more information, see Common Parameters.​
Action string required Example: ModifyVolumeSpec​
Operation to perform, value: ModifyVolumeSpec​
​
Version string required Example value: 2020-04-01​
The version of the API is: 2020-04-01.​
​
VolumeId string required Example value: vol-hwnpjm4gl8jww4u0****​
Volume ID.​
​
TargetVolumeType string required Example value: ESSD_FlexPL​
The modified volume specifications currently only support changing ESSD_PL0 volumes to ESSD_FlexPL volumes, which are set as ESSD_FlexPL.​
​
​
​
Return Parameters​
Only the interface-specific return parameters are listed below. For more information, see Return Structure.​
VolumeId string Example: vol-hwnpjm4gl8jww4u0****​
Volume ID.​
tip​
After invoking the ModifyVolumeSpec interface, if you see the volume upgraded to the target specification on the console, it means the volume specification change was successful.​
​
OrderNo string Example value: Order218800001834604****​
Order number.​
tip​
The order number is only returned when modifying the specifications of a subscription volume.​
​
​
​
Request example​
​
GET /?Action=ModifyVolumeSpec&Version=2020-04-01&VolumeId=vol-hwnpjm4gl8jww4u0****&TargetVolumeType=ESSD_FlexPL HTTP/1.1​
Host: open.volcengineapi.com​
Region: cn-beijing​
ServiceName: storage_ebs​
​
Back to example​
​
{​
"ResponseMetadata": {​
"RequestId": "2025112516580923709012719033****",​
"Action": "ModifyVolumeSpec",​
"Version": "2020-04-01",​
"Service": "storage_ebs",​
"Region": "cn-beijing"​
},​
"Result": {​
"VolumeId": "vol-hwnpjm4gl8jww4u0****",​
"OrderNo": "Order218800001834604****"​
}​
}​
​
error code​
The table below lists error codes related to business logic for this API. For public error codes, refer to the Public Error Codes documentation.​
​
Status code​
error code​
error message​
Create Volume​
400​
InvalidRequest​
The operation is not permitted due to the request is invalid.​
Invalid request.​
400​
InvalidParameters​
The request has invalid parameters.​
The request contains invalid parameters.​
400​
MissingVolumeID​
The specified parameter VolumeId is missing.​
Missing volume ID.​
400​
InvalidVolumeSize​
Invalid volume size.​
The volume size is invalid.​
400​
IncorrectVolumeStatus​
The specified volume status is invalid.​
The specified volume status is invalid.​
400​
ErrInvalidCurrentVolumeType​
The current volume type is invalid.​
The current volume type is invalid.​
400​
ErrInvalidTargetVolumeType​
The target volume type is invalid.​
The target volume type is invalid.​
404​
VolumeNotFound​
The specified volume does not exist.​
The volume does not exist.​
412​
ErrInstanceExpired​
Instance is already expired.​
The ECS instance has expired.​
412​
ErrVolumeDownGradeTooOften​
Only one modification is allowed within one days.​
You can only downgrade the specification once per day.​
412​
QuotaCheckNotPass​
The user has exceeded the quota for creating volumes of this type and cannot create more: {{param}}.​
The user has exceeded their quota for this type of volume and cannot create more: {{param}}.​
500​
InternalError​
An internal error has occurred.​
Internal error. Try again. If multiple attempts fail, submit a ticket.​
​
Last updated: 2026.01.09 18:19:56