获取弹性计划列表
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /v4/openapi/app-groups/{appGroupIdentity}/elastic-plans HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| appGroupIdentity |
string |
否 |
应用名称 |
my_app_group_name |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| name |
string |
否 |
弹性计划名称 |
"test" |
| enabled |
boolean |
否 |
是否启用。 取值: true:启用。 false:禁用。 |
true |
| pageNumber |
integer |
否 |
页码,默认值为 1 |
1 |
| pageSize |
integer |
否 |
每页大小,默认值为 10 |
10 |
| nextToken |
string |
否 |
下一个查询开始 Token |
20 |
| maxResults |
integer |
否 |
一次获取的最大记录数 |
100 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
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 |
array<object> |
返回结果 |
|
|
object |
返回结果 |
||
| id |
integer |
计划 ID |
134 |
| appGroupId |
string |
应用 ID |
120123456 |
| name |
string |
计划名称 |
elastic plan |
| description |
string |
描述 |
desc |
| scheduleType |
string |
任务调度类型 |
WEEK |
| customDates |
array |
星期列表 |
|
|
string |
星期列表 |
MONDAY |
|
| startHour |
integer |
弹性计划开始时间 |
11 |
| endHour |
integer |
弹性计划结束时间 |
16 |
| elasticLcu |
integer |
弹性增量 LCU |
100 |
| enabled |
boolean |
计划是否启用。 |
false |
| created |
integer |
创建时间 |
1588839490 |
| updated |
integer |
更新时间 |
1588839490 |
| nextToken |
string |
下一个查询开始 Token |
20 |
| maxResults |
integer |
一次获取的最大记录数 |
100 |
| totalCount |
integer |
数据总条数 |
2 |
示例
正常返回示例
JSON格式
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"httpCode": 200,
"code": "ElasticPlan.NotFound",
"message": "Elastic plan not found",
"result": [
{
"id": 134,
"appGroupId": "120123456",
"name": "elastic plan",
"description": "desc",
"scheduleType": "WEEK",
"customDates": [
"MONDAY"
],
"startHour": 11,
"endHour": 16,
"elasticLcu": 100,
"enabled": false,
"created": 1588839490,
"updated": 1588839490
}
],
"nextToken": "20",
"maxResults": 100,
"totalCount": 2
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。