创建伸缩组云主机缩容规则(CreateAutoScalingGroupRemovalInstanceRule)
用户可以使用CreateAutoScalingGroupRemovalInstanceRule创建伸缩组云主机缩容规则。
例如:
CreateAutoScalingGroupRemovalInstanceRule adjustmentType=PercentChangeInCapacity adjustmentValue=1.0 removalPolicy=MinimumMemoryUsageInstance name=removalInstance autoScalingGroupUuid=8a8070f9926733478acad7bf0ba60a63参数(Parameters)
| 名字 | 描述 | 可选的 | 可选的参数值 | 起始支持版本 |
|---|---|---|---|---|
| adjustmentType | 缩容方式:减少指定数量云主机,按百分比减少云主机,减少云主机数量到指定值 |
|
3.1.0 | |
| adjustmentValue | 减少数值 | 3.1.0 | ||
| removalPolicy | 删除云主机策略 |
|
3.1.0 | |
| name | 资源名称 | 3.1.0 | ||
| description | 资源的详细描述 | 是 | 3.1.0 | |
| autoScalingGroupUuid | 伸缩组UUID | 3.1.0 | ||
| type | 伸缩规则类型 | 是 | 3.1.0 | |
| cooldown | 伸缩规则触发后的冷却时间 | 是 | 3.1.0 | |
| resourceUuid | 是 | 3.1.0 | ||
| tagUuids | 标签UUID列表 | 是 | 3.1.0 | |
| userTags | 用户标签,请参见 创建用户标签(CreateUserTag) | 是 | 3.1.0 | |
| systemTags | 系统标签,请参见 创建系统标签(CreateSystemTag) | 是 | 3.1.0 | |
| timeout | 是 |