Disables an automatic snapshot policy for disks.
Debugging
Request parameters
|
Parameter |
Type |
Required |
Example |
Description |
| Action | String | Yes | CancelAutoSnapshotPolicy | The operation that you want to perform. Set the value to CancelAutoSnapshotPolicy. |
| regionId | String | Yes | cn-hangzhou | The region ID of the automatic snapshot policy and the disks. You can call the DescribeRegions operation to query the most recent region list. |
| diskIds | String | Yes | ["d-bp14k9cxvr5uzy54****", "d-bp1dtj8v7x6u08iw****", "d-bp1c0tyj9tfli2r8****"] | The IDs of disks. To disable an automatic snapshot policy for multiple disks, you can set this parameter to a JSON array that consists of multiple disk IDs in the format of ["dxxxxxxxxx", "dyyyyyyyyy", ... "dzzzzzzzzz"]. Separate the disk IDs with commas (,). |
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=CancelAutoSnapshotPolicy
&diskIds=["d-bp14k9cxvr5uzy54****", "d-bp1dtj8v7x6u08iw****", "d-bp1c0tyj9tfli2r8****"]
®ionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<CancelAutoSnapshotPolicyResponse>
<RequestId>F3CD6886-D8D0-4FEE-B93E-1B73239673DE</RequestId>
</CancelAutoSnapshotPolicyResponse>
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 |
| 403 | ParameterInvalid | The specified RegionId parameter is invalid. | The specified region ID is invalid. |
| 403 | ParameterInvalid | The specified DiskIds are invalid. | The specified disk ID is invalid. |
| 404 | InvalidDiskId.NotFound | The specified DiskIds are not found. | The specified disk IDs are not found. |
For a list of error codes, see Service error codes.