Menghapus grup penyediaan otomatis dengan menentukan parameter AutoProvisioningGroupId dan TerminateInstances.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DeleteAutoProvisioningGroup |
delete |
*AutoProvisioningGroup
|
None |
|
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region tempat grup penyediaan otomatis berada. |
cn-hangzhou |
| AutoProvisioningGroupId |
string |
Yes |
ID grup penyediaan otomatis. |
apg-bpuf6jel2bbl62wh13**** |
| TerminateInstances |
boolean |
No |
Menentukan apakah akan melepaskan instance dalam grup saat grup penyediaan otomatis dihapus. Nilai yang valid:
Catatan
Secara default, nilai parameter ini diwarisi dari parameter |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
B48A12CD-1295-4A38-A8F0-0E92C937**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "B48A12CD-1295-4A38-A8F0-0E92C937****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter.InstanceType | The specified parameter "TerminateInstances" should be not empty. | |
| 400 | MissingParameter | The specified parameter "AutoProvisioningGroupId" should not be null. | |
| 400 | NoPermission | %s | |
| 403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API doesn't support RAM. | |
| 403 | AutoProvisioningGroup.Unauthorized | Unauthorized to operate current action. | |
| 403 | AutoProvisioningGroup.IncorrectStatus | Current status of AutoProvisioningGroup does not support curren action. | |
| 404 | InvalidAutoProvisioningGroupId.NotFound | The specified AutoProvisioningGroupId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.