更新弹性计划
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
PUT /v4/openapi/app-groups/{appGroupIdentity}/elastic-plans/{planId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| appGroupIdentity |
string |
否 |
应用名称 |
my_app_group_name |
| planId |
integer |
否 |
弹性计划 id。 |
11 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| dryRun |
boolean |
否 |
是否校验入参数据合法性,默认 false。 取值:
|
false |
| body |
object |
否 |
请求参数。 |
|
| description |
string |
否 |
描述 |
Updated description |
| scheduleType |
string |
否 |
任务调度类型 |
WEEK |
| customDates |
array |
否 |
星期列表 |
|
|
string |
否 |
星期列表 |
TUESDAY |
|
| startHour |
integer |
否 |
弹性计划开始时间 |
9 |
| endHour |
integer |
否 |
弹性计划结束时间 |
16 |
| elasticLcu |
integer |
否 |
弹性增量 LCU |
100 |
| enabled |
boolean |
否 |
计划是否启用。 |
true |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
D77D0DAF-790D-F5F5-A9C0-133738165014 |
| httpCode |
integer |
HTTP 状态码。 |
200 |
| code |
string |
异常状态码 |
ElasticPlan.NotFound |
| message |
string |
异常信息 |
Elastic plan not found |
| result |
object |
返回结果 |
|
| id |
integer |
弹性计划 ID |
286 |
| appGroupId |
integer |
应用 ID |
120123456 |
| name |
string |
弹性计划名称 |
plan name |
| description |
string |
描述 |
test |
| scheduleType |
string |
任务调度类型 |
WEEK |
| customDates |
array |
星期列表 |
|
|
string |
星期列表 |
WEDNESDAY |
|
| startHour |
integer |
弹性计划开始时间 |
6 |
| endHour |
integer |
弹性计划结束时间 |
10 |
| elasticLcu |
integer |
弹性增量 LCU (大于>0,小于等于 min(baseLcu 8 0.5, 50000)) |
100 |
| enabled |
boolean |
计划是否启用 |
true |
| created |
integer |
创建时间 |
1588839490 |
| updated |
integer |
更新时间 |
1539158313 |
示例
正常返回示例
JSON格式
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"httpCode": 200,
"code": "ElasticPlan.NotFound",
"message": "Elastic plan not found",
"result": {
"id": 286,
"appGroupId": 120123456,
"name": "plan name",
"description": "test",
"scheduleType": "WEEK",
"customDates": [
"WEDNESDAY"
],
"startHour": 6,
"endHour": 10,
"elasticLcu": 100,
"enabled": true,
"created": 1588839490,
"updated": 1539158313
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。