Deletes an auto provisioning group. When you call this operation, you can specify AutoProvisioningGroupId and TerminateInstances in the request.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DeleteAutoProvisioningGroup |
delete |
*AutoProvisioningGroup
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the auto provisioning group. |
cn-hangzhou |
| AutoProvisioningGroupId |
string |
Yes |
The ID of the auto provisioning group. |
apg-bpuf6jel2bbl62wh13**** |
| TerminateInstances |
boolean |
No |
Specifies whether to release instances in the auto provisioning group. Valid values:
Note
By default, this parameter inherits the value of |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B48A12CD-1295-4A38-A8F0-0E92C937**** |
Examples
Success response
JSON format
{
"RequestId": "B48A12CD-1295-4A38-A8F0-0E92C937****"
}
Error codes
|
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. | Elastic Supply Group Id(AutoProvisioningGroupId) must be filled in. |
| 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. | The specified elastic supply group does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.