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.

Debugging

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 No 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.

Examples

Sample requests


http(s)://ecs.aliyuncs.com/? Action=DeleteAutoProvisioningGroup
&AutoProvisioningGroupId=fleet-uf6jel2bbl62wh13****
&RegionId=cn-hangzhou
&TerminateInstances=true
&<Common request parameters>

Sample success responses

XML format

<DeleteAutoProvisioningGroupResponse>
  <RequestId>928E2273-5715-46B9-A730-238DC996****</RequestId>
</DeleteAutoProvisioningGroupResponse>

JSON format

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

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