DeleteAutoSnapshotPolicy

Last Updated: Mar 20, 2018

Description

Deletes an automatic snapshot policy.

Note: 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. For more information, see Regions and zones, or 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.

Response parameters

All are common response parameters. For more information, see Common parameters.

Examples

Request example

  1. https://ecs.aliyuncs.com/?Action=DeleteAutoSnapshotPolicy
  2. &RegionId=cn-hangzhou
  3. &AutoSnapshotPolicyId=p-233e6ylv0
  4. &<Common Request Parameters>

Response example

XML format

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

JSON format

  1. {
  2. "RequestId":"F3CD6886-D8D0-4FEE-B93E-1B73239673DE"
  3. }

Error codes

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.
Thank you! We've received your feedback.