All Products
Search
Document Center

:DeleteAutoProvisioningGroup

更新時間:Dec 18, 2023

Deletes 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. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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:

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

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.