查询自动变配策略 - ListAutoScalingPolicy
调试
您可以在API Explorer中调试该接口。
授权信息
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,需具备如下身份策略权限。
|
授权项 |
访问级别 |
资源类型(*为必须) |
条件键 |
别名 |
依赖的授权项 |
|---|---|---|---|---|---|
|
rds:instance:listAll |
read |
- |
- |
rds:instance:list |
- |
接口约束
该接口仅支持MySQL引擎。
URI
- URI格式
GET /v3/{project_id}/instances/{instance_id}/auto-scaling/policy
- 参数说明
表1 参数说明 名称
参数类型
是否必选
说明
project_id
String
是
参数解释:
租户在某一region下的project ID。
获取方法请参见获取项目ID。
约束限制:
不涉及。
取值范围:
不涉及。
默认取值:
不涉及。
instance_id
String
是
参数解释:
实例ID。
约束限制:
不涉及。
取值范围:
不涉及。
默认取值:
不涉及。
请求消息
无。
请求示例
GET https://{Endpoint}//v3/54623db08b174c858ba779d2aa7923a3/instances/aa650a108f034e83b24486fd1ff7be2fin01/auto-scaling/policy
响应消息
- 正常响应要素说明
表2 参数说明 名称
参数类型
说明
instance_id
String
参数解释:
实例ID。
取值范围:
不涉及。
status
String
参数解释:
自动变配是否开启。
取值范围:
- ON:自动变配开启。
- OFF:自动变配关闭。
monitor_cycle
Integer
参数解释:
观察窗口,单位秒。
取值范围:
不涉及。
silence_cycle
Integer
参数解释:
静默期,单位秒。
取值范围:
不涉及。
enlarge_threshold
Integer
参数解释:
自动升配触发阈值,单位百分比。
取值范围:
不涉及。
max_flavor
String
参数解释:
最大变配规格上限。
取值范围:
不涉及。
reduce_enabled
String
参数解释:
自动降配状态。
取值范围:
- ON:自动降配开启。
- OFF:自动降配关闭。
reduce_threshold
Integer
参数解释:
自动降配触发阈值。
取值范围:
不涉及。
min_flavor
String
参数解释:
最大变配规格下限。
取值范围:
不涉及。
- 正常响应样例
{ "instance_id": "aea4d8a8d302484ea0319f04566e48e2in01", "status": "ON", "monitor_cycle": 300, "silence_cycle": 300, "enlarge_threshold": 50, "min_flavor": "rds.mysql.n1.large.2.ha", "max_flavor": "rds.mysql.n1.4xlarge.2.ha", "reduce_enabled": "ON", "reduce_threshold": 30 }
- 异常响应
请参见异常请求结果。
状态码
- 正常
- 异常
请参见状态码。
错误码
请参见错误码。