描述
从指定的伸缩组里移出ECS实例。
名称 | 类型 | 是否必须 | 描述 |
Action | String | 是 | 操作接口名,系统规定参数,取值:RemoveInstances。 |
ScalingGroupId | String | 是 | 伸缩组的ID。 |
InstanceId.N | String | 是 | ECS实例的ID。最多可以输入20个。 |
名称 | 类型 | 描述 |
ScalingActivityId | String | 伸缩活动的ID |
错误 | 错误代码 | 描述 | HTTP状态码 |
指定的伸缩组在该用户账号下不存在 | InvalidScalingGroupId.NotFound | The specified scaling group does not exist. | 404 |
指定的ECS实例在伸缩组下不存在 | InvalidInstanceId.NotFound | Instance “XXX” does not exist. | 404 |
用户并未向弹性伸缩完整授权Open API接口 | Forbidden.Unauthorized | A required authorization for the specified action is not supplied. | 403 |
指定的伸缩组为非active状态 | IncorrectScalingGroupStatus | The current status of the specified scaling group does not support this action. | 400 |
指定的伸缩组有伸缩活动正在进行 | ScalingActivityInProgress | You cannot delete a scaling group or launch a new scaling activity while there is a scaling activity in progress for the specified scaling group. | 400 |
指定伸缩规则所属的伸缩组的负载均衡实例为非active状态 | IncorrectLoadBalancerStatus | The current status of the specified load balancer does not support this action. | 400 |
指定伸缩规则所属的伸缩组的RDS实例为非running状态 | IncorrectDBInstanceStatus | The current status of DB instance “XXX” does not support this action. | 400 |
移出的实例数使得Total Capacity小于MinSize | IncorrectCapacity.MinSize | To remove the instances, the total capacity will be lesser than the MinSize. | 400 |
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
要从指定的伸缩组中移出ECS实例,需遵循以下步骤和注意事项:
active
状态。RemoveInstances
,表示执行移除实例的操作。.N
代表实例ID的序号,例如InstanceId.1
, InstanceId.2
等。ScalingActivityId
来追踪查看。InvalidScalingGroupId.NotFound
、InvalidInstanceId.NotFound
等错误,需根据错误提示进行相应调整。http://ess.aliyuncs.com/?Action=RemoveInstances
&ScalingGroupId=your_scaling_group_id
&InstanceId.1=instance_id_1
&InstanceId.2=instance_id_2
请根据实际情况替换your_scaling_group_id
、instance_id_1
、instance_id_2
等占位符内容。
ScalingActivityId
监控移除实例的伸缩活动状态,以确认操作是否成功完成。通过以上步骤,您可以有效地管理ECS实例的移出操作,同时确保符合特定的业务需求和资源管理策略。