Deletes an auto provisioning group.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | DeleteAutoProvisioningGroup | The operation that you want to perform. Set the value to DeleteAutoProvisioningGroup. |
RegionId | String | Yes | cn-hangzhou | The region ID of the auto provisioning group. |
AutoProvisioningGroupId | String | Yes | apg-bpuf6jel2bbl62wh13**** | The ID of the auto provisioning group. |
TerminateInstances | Boolean | Yes | true | Specifies whether to release instances in the auto provisioning group. Valid values:
|
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=apg-bpuf6jel2bbl62wh13****
&RegionId=cn-hangzhou
&TerminateInstances=true
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteAutoProvisioningGroupResponse>
<RequestId>928E2273-5715-46B9-A730-238DC996****</RequestId>
</DeleteAutoProvisioningGroupResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "B48A12CD-1295-4A38-A8F0-0E92C937****"
}
Error codes
HTTP status code |
Error code |
Error message |
Description |
403 | AutoProvisioningGroup.IncorrectStatus | Current status of AutoProvisioningGroup does not support current action. | This operation cannot be performed on the auto provisioning group in the current state. |
For a list of error codes, see Service error codes.