All Products
Search
Document Center

:DeleteAutoSnapshotPolicy

Last Updated:Nov 30, 2023

Deletes an automatic snapshot policy. After you delete an automatic snapshot policy, the policy is no longer applied to the disks on which the policy previously took effect.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action String Yes DeleteAutoSnapshotPolicy

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

regionId String Yes cn-hangzhou

The region ID of the automatic snapshot policy. You can call the DescribeRegions operation to query the most recent region list.

autoSnapshotPolicyId String Yes sp-bp14yziiuvu3s6jn****

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

Response parameters

Parameter

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=sp-bp14yziiuvu3s6jn****
&regionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

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

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "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 specified automatic snapshot policy is not found. Check whether the policy ID is correct.
404 ParameterInvalid The specified automatic snapshot policy does not exist in the region. The specified automatic snapshot policy is not found in the region. Check whether the policy ID is correct.

For a list of error codes, see Service error codes.