Creates an automatic snapshot policy. If the target automatic snapshot policy has been applied to a disk, the policy will not be not effective on the disk once the policy is deleted.

Request parameters

Name Type Required Description
Action String Yes The name of this interface. Value: DeleteAutoSnapshotPolicy.
RegionId String Yes The region ID to which the automatic snapshot policy belongs. For more information, call DescribeRegions to obtain the latest region list.
AutoSnapshotPolicyId String Yes The ID of the target automatic snapshot policy. You can call DescribeAutoSnapshotPolicyEx to obtain all your automatic snapshot policies.

Return parameters

All are common parameters. See Common parameters.

Example

Request example
https://ecs.aliyuncs.com/?Action=DeleteAutoSnapshotPolicy
&RegionId=cn-hangzhou
&AutoSnapshotPolicyId=p-233e6ylv0
&<Common request parameters>
Response sample

XML format

<DeleteAutoSnapshotPolicyResponse>
    <RequestId>F3CD6886-D8D0-4FEE-B93E-1B73239673DE</RequestId> 
</DeleteAutoSnapshotPolicyResponse>
JSON format
{
    "RequestId":"F3CD6886-D8D0-4FEE-B93E-1B73239673DE"
}

Error codes

Error codes specific to this interface are as follows. For more error codes, see API Error Center

Error code Error message HTTP status code Meaning
ParameterInvalid The specified automatic snapshot policy does not exist. 404 The specified AutoSnapshotPolicyId does not exist.
ParameterInvalid The specified automatic snapshot policy does not exist in the region.  404 The specified AutoSnapshotPolicyId does not exist in the specified region.