Cancels the automatic snapshot policies of one or more disks.

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
diskIds String Yes ["d-233e6ylv0", "d-23vbpbi03", "d-23vasz3ds"]

The IDs of the disks. To cancel the automatic snapshot policy for multiple disks, you can set this parameter to a JSON-formatted array: ["dxxxxxxxxx", "dyyyyyyyyy", … "dzzzzzzzzz"]. Separate multiple IDs with commas (,).

regionId String Yes cn-hangzhou

The ID of the region to which the automatic snapshot policies and the disks belong. You can call DescribeRegions to view the latest regions of Alibaba Cloud.

Action String No CancelAutoSnapshotPolicy

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

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=CancelAutoSnapshotPolicy
&diskIds=["d-233e6ylv0", "d-23vbpbi03", "d-23vasz3ds"]
&regionId=cn-hangzhou
&<Common request parameters>

Successful response examples

XML format

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

JSON format

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

Error codes

HTTP status code Error code Error message Description
403 ParameterInvalid The specified RegionId parameter is invalid. The error message returned when the specified value of the RegionId parameter is invalid.
403 ParameterInvalid The specified DiskIds are invalid. The error message returned when the specified value of the DiskIds parameter is invalid.
404 InvalidDiskId.NotFound The specified DiskIds are not found. The error message returned when the specified disk IDs do not exist.

View error codes