Deletes an automatic snapshot policy. After you delete an automatic snapshot policy, the policy is no longer applied to the disks on which it previously took effect.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DeleteAutoSnapshotPolicy |
delete |
*AutoSnapshotPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| regionId |
string |
Yes |
The ID of the region to which the automatic snapshot policy belongs. You can call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| autoSnapshotPolicyId |
string |
Yes |
The ID of the automatic snapshot policy. You can call the DescribeAutoSnapshotPolicyEx operation to query the IDs of available automatic snapshot policies. |
sp-bp14yziiuvu3s6jn**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error response
JSON format
{
"RequestId":"F3CD6886-D8D0-4FEE-B93E-1B73239673DE"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | ParameterInvalid | The specified automatic snapshot policy does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.