Menghapus kebijakan snapshot otomatis. Setelah dihapus, kebijakan tersebut tidak lagi berlaku untuk disk yang sebelumnya terkena dampaknya.
Debugging
Parameter permintaan
|
Parameter |
Type |
Required |
Example |
Description |
| Action | String | Yes | DeleteAutoSnapshotPolicy | Operasi yang ingin Anda lakukan. Tetapkan nilainya ke DeleteAutoSnapshotPolicy. |
| regionId | String | Yes | cn-hangzhou | ID Wilayah dari kebijakan snapshot otomatis. Anda dapat memanggil operasi DescribeRegions untuk mengambil daftar wilayah terbaru. |
| autoSnapshotPolicyId | String | Yes | sp-bp14yziiuvu3s6jn**** | ID kebijakan snapshot otomatis. Anda dapat memanggil operasi DescribeAutoSnapshotPolicyEx untuk mengambil daftar kebijakan snapshot otomatis yang tersedia. |
Parameter respons
Parameter |
Type |
Example |
Description |
| RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E | ID permintaan. |
Contoh
Contoh permintaan
https://ecs.aliyuncs.com/?Action=DeleteAutoSnapshotPolicy
&autoSnapshotPolicyId=sp-bp14yziiuvu3s6jn****
®ionId=cn-hangzhou
&<Common request parameters>
Contoh respons sukses
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"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
| 404 | ParameterInvalid | The specified automatic snapshot policy does not exist. | Kebijakan snapshot otomatis yang ditentukan tidak ditemukan. Periksa apakah ID kebijakan sudah benar. |
| 404 | ParameterInvalid | The specified automatic snapshot policy does not exist in the region. | Kebijakan snapshot otomatis yang ditentukan tidak ditemukan di wilayah tersebut. Periksa apakah ID kebijakan sudah benar. |
Daftar lengkap kode kesalahan tersedia di Service error codes.