- Documentation
Elastic Compute Service
Elastic Compute Service
API Reference
Snapshot
Auto snapshot policy
ApplyAutoSnapshotPolicy - Apply automatic snapshot policy
Auto snapshot policy
ApplyAutoSnapshotPolicy - Apply automatic snapshot policy
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
Back to example
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. Last updated: 2026.01.09 18:19:56