Deletes an automatic snapshot policy. After you delete an automatic snapshot policy, the policy will no longer be applied to the disks that it previously took effect on.

Debugging

You can use API Explorer to perform debugging. API Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Name Type Required Example Description
autoSnapshotPolicyId String Yes p-233e6ylv0

The ID of the automatic snapshot policy. You can call DescribeAutoSnapshotPolicyEx to view the available automatic snapshot policies.

regionId String Yes cn-hangzhou

The ID of the region to which the automatic snapshot belongs. You can call DescribeRegions to view the latest regions of Alibaba Cloud.

Action String No DeleteAutoSnapshotPolicy

The operation that you want to perform. Set the value to DeleteAutoSnapshotPolicy.

Response parameters

Name Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=DeleteAutoSnapshotPolicy
&autoSnapshotPolicyId=p-233e6ylv0 
&regionId=cn-hangzhou
&<Common request parameters>

Successful response examples

XML format

<DeleteAutoSnapshotPolicyResponse>
  <RequestId>F3CD6886-D8D0-4FEE-B93E-1B73239673DE</RequestId>
</DeleteAutoSnapshotPolicyResponse>

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. The error message returned when the specified automatic snapshot policy does not exist. Check whether the policy ID is correct.
404 ParameterInvalid The specified automatic snapshot policy does not exist in the region. The error message returned when the specified automatic snapshot policy does not exist. Check whether the policy ID is correct.

View error codes