as__DeleteScalingInstance
Removes a specified instance from an Auto Scaling group and optionally deletes the ECS instance, respecting INSERVICE status, group activity, and minimum capacity conditions.
Instructions
[AS] 从弹性伸缩组中移出一个指定实例。实例处于INSERVICE且移出后实例数不能小于伸缩组的最小实例数时才可以移出。当伸缩组没有伸缩活动时,才能移出实例。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"project_id": "<project_id>"
},
"name": "as__DeleteScalingInstance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | 项目ID。 | |
| instance_id | Yes | 实例ID,可参考[查询弹性伸缩组中的实例列表](https://support.huaweicloud.com/api-as/as_06_0301.html)获取。 | |
| instance_delete | No | 实例移出伸缩组,是否删除云服务器实例。默认为no;可选值为yes或no。 | no |