容器服务
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
Action | String | 是 | UpdateScalingPolicy | 接口名称。当前 API 的名称为 UpdateScalingPolicy。 |
Version | String | 是 | 2022-05-12 | 接口版本。当前 API 的版本为 2022-05-12。 |
ClusterId | String | 是 | cc5silum******** | 集群 ID。 注意 |
NodePoolId | String | 是 | pc51i0m6******** | 节点池 ID。 注意 |
Id | String | 是 | spco2o8q2n******** | 弹性预约伸缩规则 ID。 |
AdjustmentValue | Integer | 否 | 1 | 节点池弹性伸缩时,增加的节点数量。整数形式,取值范围为 1~500。 |
ScheduledPolicy | 否 | - | 定时任务或周期任务配置。 | |
ScheduledInstancePolicy | 否 | - | 弹性预约伸缩规则配置。 | |
Enabled | Boolean | 否 | false | 是否启用伸缩规则,取值:
|
ClientToken | String | 否 | BC028527-33B9-4990-A633-84E9F9****** | 用于保证请求幂等性的字符串。该字符串由调用方传入,需保证不同请求之间唯一。ClientToken 对大小写敏感,且最大值不超过 64 个 ASCII 字符。 |
Name | String | 否 | test-policy | 弹性预约伸缩规则的名称。
说明 同一个节点池下,规则名称必须唯一。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
LaunchTime | String | 否 | 2022-04-01T16:00Z | 任务的开始时间,UTC 时间,精确到分钟。仅当Type取值为Scheduled或Recurrence时有效且必填。
说明 为保证预约扩容请求提交成功,建议配置的LaunchTime至少晚于当前时间 1 分钟。 |
RecurrenceType | String | 否 | Daily | 周期任务的重复周期,仅当Type取值为Recurrence时有效且必填。取值:
|
RecurrenceValue | String | 否 | 1 | 周期任务的重复执行次数。仅当Type取值为Recurrence时有效且必填。
|
RecurrenceEndTime | String | 否 | 2022-04-02T16:00Z | 周期任务的结束时间,UTC 时间,精确到分钟。仅当Type取值为Recurrence时有效且必填。 需大于等于LaunchTime,且仅支持配置自创建/修改时刻起 365 日内的时间。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
ElasticScheduledInstanceType | String | 否 | Esi | 弹性预约实例类型,取值:
|
DeliveryType | String | 否 | Reserve | 弹性预约实例-时段型的交付类型,取值:
说明 仅当ElasticScheduledInstanceType取值为Segmented,即为 弹性预约实例-时段型 类型时有效且必填。 |
AutoReleaseTime | String | 否 | 2022-04-01T18:10Z | 预约实例的自动释放时间,UTC 时间,精确到分钟。当ElasticScheduledInstanceType为Segmented,即为 弹性预约实例-时段型 类型时有效且必填。必须为 10 分钟整点。
|
StartDeliveryTime | String | 否 | 2022-04-01T16:00Z | 弹性预约实例的交付开始时间,UTC 时间,精确到分钟。必须为 10 分钟整点,取值:
|
EndDeliveryTime | String | 否 | 2022-04-01T16:10Z | 弹性预约实例的交付结束时间,UTC 时间,精确到分钟。必须为 10 分钟整点,且与StartDeliveryTime的间隔为 10 分钟。取值:
|
BestEffort | Boolean | 否 | true | 当弹性预约实例的库存不能完全满足预约需求时,是否尽可能多的预约实例。
|
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
HTTP 状态码 | 错误码 | 错误信息 | 说明 |
400 | OperationDenied.ClusterStatus | The action is forbidden due to cluster status {{statusPhase}} and {{statusConditions}}. | 指定集群的当前状态不支持该操作。请确认该接口依赖的集群状态后重试。 |
400 | OperationDenied.NodePoolStatus | The action is forbidden on node pool {{nodePoolId}} due to node pool status {{statusPhase}} and {{statusConditions}}. | 指定节点池的当前状态不支持该操作。请确认该接口依赖的节点池状态后重试。 |
400 | NotSupportScalingPolicy.NodePoolConfig | The specified nodepool config does not support scaling policy. | 指定的节点池配置不支持伸缩规则。请重新指定参数后重试。 |
400 | LaunchTimeMismatch.StartDeliveryTime | The specified StartDeliveryTime and LaunchTime are mismatched. | 指定的开始交付时间与任务触发时间不匹配。 |
400 | LaunchTimeMismatch.EndDeliveryTime | The specified EndDeliveryTime and LaunchTime are mismatched. | 指定的结束交付时间与提交预约单时间不匹配。请根据参数说明,配置准确的参数值后重试。 |
400 | StartDeliveryTimeMismatch.EndDeliveryTime | The specified EndDeliveryTime and StartDeliveryTime are mismatched. | 指定的结束交付时间与开始交付时间不匹配,两者必须间隔 10 分钟。请重新指定参数后重试。 |
400 | LimitExceeded.AdjustmentValue | You have reached the limit on the size of AdjustmentValue. | 伸缩行为的调整数值超过了支持的最大交付数量。请重新指定参数后重试。 |
400 | EndDeliveryTimeMismatch.AutoReleaseTime | The specified EndDeliveryTime and AutoReleaseTime are mismatched. | 指定的自动释放时间与结束交付时间不匹配。请根据参数说明,配置准确的参数值后重试。 |
400 | LaunchTimeMismatch.AutoReleaseTime | The specified AutoReleaseTime and LaunchTime are mismatched. | 指定的自动释放时间与提交预约单时间不匹配。请根据参数说明,配置准确的参数值后重试。 |
400 | InvalidRegionForScheduledInstance.Unsupported | The specified region does not support scheduled instance. | |
409 | Conflict.Name | The specified name conflicts with existing {{resourceType}}. | 指定节点池下存在同名资源,请更新资源名称后重试。 |