指定参数AutoProvisioningGroupId、TerminateInstances删除一个弹性供应组。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ecs:DeleteAutoProvisioningGroup |
delete |
*AutoProvisioningGroup
|
无 |
|
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
弹性供应组所在地域的 ID。 |
cn-hangzhou |
| AutoProvisioningGroupId |
string |
是 |
弹性供应组的 ID。 |
apg-bpuf6jel2bbl62wh13**** |
| TerminateInstances |
boolean |
否 |
删除弹性供应组时是否释放组内实例。取值范围:
说明
此参数值默认继承于调用 |
true |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
B48A12CD-1295-4A38-A8F0-0E92C937**** |
示例
正常返回示例
JSON格式
{
"RequestId": "B48A12CD-1295-4A38-A8F0-0E92C937****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter.InstanceType | The specified parameter "TerminateInstances" should be not empty. | |
| 400 | MissingParameter | The specified parameter "AutoProvisioningGroupId" should not be null. | 弹性供应组Id(AutoProvisioningGroupId)必须填写。 |
| 400 | NoPermission | %s | |
| 403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API doesn't support RAM. | 当前用户没有权限对指定资源进行操作 |
| 403 | AutoProvisioningGroup.Unauthorized | Unauthorized to operate current action. | |
| 403 | AutoProvisioningGroup.IncorrectStatus | Current status of AutoProvisioningGroup does not support curren action. | 供应组状态不支持当前操作。 |
| 404 | InvalidAutoProvisioningGroupId.NotFound | The specified AutoProvisioningGroupId does not exist. | 指定的弹性供应组不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。