调用RescaleApplication异步执行资源扩/缩容,并完成容器部署/释放操作。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:RescaleApplication |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| AppId |
string |
是 |
应用 ID,您可通过查询 ListApplications 接口获取。 |
474bdef0-d149-4695-abfb-52912d9143f0 |
| RescaleType |
string |
是 |
扩缩容资源动作。枚举类型,取值:
枚举值:
|
Add |
| RescaleLevel |
string |
否 |
扩缩容区域级别。枚举类型,取值范围:
默认值 AreaIspCode。 枚举值:
|
RegionId |
| ResourceSelector |
string |
是 |
扩缩容资源需求,Json 数组格式的字符串。 |
[{\"regionCode\": \"cn-wuxi-telecom_unicom_cmcc-3\", \"ispCode\": \"telecom\", \"count\": 2 },{ \"regionCode\": \"cn-shanghai-cmcc\", \"count\": 4 }] |
| ToAppVersion |
string |
否 |
仅新增资源时有效,新增资源的应用部署版本号,默认为应用的稳定版版本号。 |
v2 |
| Timeout |
integer |
否 |
异步扩缩容的超时时间,单位秒。默认 300。 |
1800 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
AAE90880-4970-4D81-A534-A6C0F3631F74 |
示例
正常返回示例
JSON格式
{
"RequestId": "AAE90880-4970-4D81-A534-A6C0F3631F74"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. | 接口调用出错。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。