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

Elastic Compute Service

Copy page
Download PDF
Auto snapshot policy
ApplyAutoSnapshotPolicy - Apply automatic snapshot policy
Copy page
Download PDF
ApplyAutoSnapshotPolicy - Apply automatic snapshot policy
Use ApplyAutoSnapshotPolicy to assign an automatic snapshot policy to one or more volumes​
precautions​
  • Each volume can only have one automatic snapshot policy​
  • A single automatic snapshot policy can be applied to multiple volumes​
  • If the target volume already has an automatic snapshot policy, you can use ApplyAutoSnapshotPolicy to replace the current policy​
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 interface-specific request parameters and some common parameters are listed below For more information, see Common Parameters​
Action string required Example value: ApplyAutoSnapshotPolicy​
Operation to execute: ApplyAutoSnapshotPolicy.​
​
Version string required Example value: 2020-04-01​
The version of the API is: 2020-04-01.​
​
AutoSnapshotPolicyId string required Example value: asp-anj2a9gwj49gsbso****​
The automatic snapshot policy ID to associate. A volume can only be associated with one automatic snapshot policy.​
​
VolumeIds.N string[] requiredExample: VolumeIds.1=vol-3tiz8tg97u3vj0x0**** VolumeIds.2=vol-3tj20xxpd63vj0wy****​
The volume ID that needs to be associated with the automatic snapshot policy. You can specify one or more.​
​
​
​
Return parameters​
This operation interface only returns public parameters and error codes.​
Request example​
​
GET /?Action=ApplyAutoSnapshotPolicy&AutoSnapshotPolicyId=asp-anj2a9gwj49gsbso****&Version=2020-04-01&VolumeIds.1=vol-3tiz8tg97u3vj0x0****VolumeIds.2=vol-3tj20xxpd63vj0wy**** HTTP/1.1​
Host: open.volcengineapi.com​
Region: cn-beijing​
ServiceName: storage_ebs​
​
Back to example​
​
{​
"ResponseMetadata": {​
"RequestId": "2022050520041301020405722009C7****",​
"Action": "ApplyAutoSnapshotPolicy",​
"Version": "2020-04-01",​
"Service": "storage_ebs",​
"Region": "cn-beijing"​
},​
"Result": {}​
}​
​
error code​
The table below lists error codes related to this interface and its business logic. For public error codes, see the Public Error Code documentation.​
​
Status code​
error code​
error message​
Create Volume​
400​
ErrInvalidVolumeId​
The specified volume ID is invalid.​
The specified volume ID is invalid.​
400​
AccountIdNotMatched​
The specified account ID does not match.​
User ID mismatch.​
404​
VolumeNotFound​
The specified volume does not exist.​
Volume does not exist.​
404​
AutoSnapshotPolicyNotFound​
The automatic snapshot policy is not found.​
Auto snapshot policy not found.​
500​
InternalError​
An internal error has occurred.​
Internal error. Try again. If repeated attempts fail, submit a ticket.​
​
Last updated: 2026.01.09 18:19:56