Deletes an auto provisioning group.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
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 TerminateInstances that you specified when you call the CreateAutoProvisioningGroup operation to create an auto provisioning group. You can also change the value of TerminateInstances when you call the DeleteAutoProvisioningGroup operation to delete the auto provisioning group.
| true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "B48A12CD-1295-4A38-A8F0-0E92C937****"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2023-12-27 | The Error code has changed | see changesets | ||||||||
|