All Products
Search
Document Center

Elastic Compute Service:DeleteAutoProvisioningGroup

Last Updated:Mar 19, 2024

You can call this operation to delete an auto provisioning group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the auto provisioning group.

cn-hangzhou
AutoProvisioningGroupIdstringYes

The ID of the auto provisioning group to be deleted.

apg-bpuf6jel2bbl62wh13****
TerminateInstancesbooleanYes

Specifies whether to release instances in the auto provisioning group. Valid values:

  • true: releases instances in the auto provisioning group.
  • false: retains instances in the auto provisioning group.
true

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

B48A12CD-1295-4A38-A8F0-0E92C937****

Examples

Sample success responses

JSONformat

{
  "RequestId": "B48A12CD-1295-4A38-A8F0-0E92C937****"
}

Error codes

HTTP status codeError codeError message
400MissingParameter.InstanceTypeThe specified parameter "TerminateInstances" should be not empty.
400MissingParameterThe specified parameter "AutoProvisioningGroupId" should not be null.
403Forbidden.RAMUser not authorized to operate on the specified resource, or this API doesn't support RAM.
403AutoProvisioningGroup.UnauthorizedUnauthorized to operate current action.
403AutoProvisioningGroup.IncorrectStatusCurrent status of AutoProvisioningGroup does not support curren action.
404InvalidAutoProvisioningGroupId.NotFoundThe specified AutoProvisioningGroupId does not exist.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-12-27The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404