获取弹性计划详情
接口说明
若已存在同名标准版应用,则创建新版本;
在新建版本情况下,autoSwitch 和 realtimeShared 也是必填的;
在新建版本情况下,quota 是自动从上一个版本继承的;
在新建版本情况下,修改 quota 是无效的。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /v4/openapi/app-groups/{appGroupIdentity}/elastic-plans/{planId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| appGroupIdentity |
string |
否 |
应用的名称、应用 id |
my_app_group_name |
| planId |
integer |
否 |
监控告警计划 id。 |
3200000011 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| dryRun |
boolean |
否 |
是否校验入参数据合法性,默认 false。 取值:
|
true |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| requestId |
string |
Id of the request |
0A6EB64B-B4C8-CF02-810F-E660812972FF |
| httpCode |
integer |
HTTP 状态码。
|
200 |
| code |
string |
状态码 |
ElasticPlan.NotFound |
| message |
string |
args |
Elastic plan not found |
| result |
object |
返回结果 |
|
| id |
integer |
计划 ID |
11 |
| appGroupId |
integer |
应用 ID |
120123456 |
| name |
string |
计划名称 |
plan name |
| description |
string |
描述 |
desc |
| scheduleType |
string |
任务调度类型 |
WEEK |
| customDates |
array |
星期列表 |
|
|
string |
星期列表 |
MONDAY-SUNDAY |
|
| startHour |
integer |
弹性计划开始时间 |
9 |
| endHour |
integer |
弹性计划结束时间 |
13 |
| elasticLcu |
integer |
弹性增量 LCU |
100 |
| enabled |
boolean |
计划是否启用。 |
false |
| created |
integer |
创建时间 |
1590139542 |
| updated |
integer |
更新时间 |
1581065904 |
示例
正常返回示例
JSON格式
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"httpCode": 200,
"code": "ElasticPlan.NotFound",
"message": "Elastic plan not found",
"result": {
"id": 11,
"appGroupId": 120123456,
"name": "plan name",
"description": "desc",
"scheduleType": "WEEK",
"customDates": [
"MONDAY-SUNDAY"
],
"startHour": 9,
"endHour": 13,
"elasticLcu": 100,
"enabled": false,
"created": 1590139542,
"updated": 1581065904
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。