You can call this operation to disable the automatic snapshot policy for one or more 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. |
diskIds | String | Yes | ["d-bp14k9cxvr5uzy54****", "d-bp1dtj8v7x6u08iw****", "d-bp1c0tyj9tfli2r8****"] |
The IDs of the disks for which you want to disable the automatic snapshot policy. To disable the automatic snapshot policy for multiple disks, you can set this parameter to a JSON array that consists of multiple disk IDs, such as ["dxxxxxxxxx", "dyyyyyyyyy", … "dzzzzzzzzz"]. Separate the disk IDs with commas (,). |
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. |
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
<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 because the specified regionId parameter is invalid. |
403 | ParameterInvalid | The specified DiskIds are invalid. | The error message returned because the specified diskIds parameter is invalid. |
404 | InvalidDiskId.NotFound | The specified DiskIds are not found. | The error message returned because the specified diskIds parameter does not exist. |
For a list of error codes, visit the API Error Center.