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

When deleting an auto provisioning group, you can use the TerminateInstances parameter to specify the behavior of the instances within the group.


Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
AutoProvisioningGroupId String Yes apg-uf6jel2bbl62wh13****

The ID of the auto provisioning group to be deleted.

RegionId String Yes cn-hangzhou

The region ID of the auto provisioning group.

TerminateInstances Boolean Yes true

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

  • true
  • false
Action String Yes DeleteAutoProvisioningGroup

The operation that you want to perform. Set this parameter to DeleteAutoProvisioningGroup.

Response parameters

Parameter Type Example Description
RequestId String B48A12CD-1295-4A38-A8F0-0E92C937****

The ID of the request.


Sample requests

http(s):// Action=DeleteAutoProvisioningGroup
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

HTTP status code Error code Error message Description
403 Forbidden.RAM User not authorized to operate on the specified resource, or this API doesn't support RAM. The error message returned because the RAM user is not authorized.

View error codes