获取时间触发规则信息
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /webapi/scalingRule/describeTimeTriggerScalingRules HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| NodeGroupId |
string |
否 |
计算组 ID。 |
ng-d332aa8bca48**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| HttpStatusCode |
integer |
HTTP 请求状态码。 |
200 |
| RequestId |
string |
请求 ID。 |
32A44F0D-BFF6-5664-999A-218BBDE7**** |
| Success |
boolean |
请求是否成功。 |
false |
| ErrCode |
string |
错误码。 |
InvalidParams |
| ErrMessage |
string |
错误信息。 |
Invalid params: [instance not exists]. |
| Data |
array<object> |
返回数据。 |
|
|
array<object> |
返回数据。 |
||
| ScalingRuleId |
string |
弹性规则 ID。 |
r-d1775b776110**** |
| NodeNumber |
string |
弹性节点数量。 |
3 |
| ScalingOutRule |
object |
弹出规则。 |
|
| RecurrenceType |
string |
触发方式:
|
ONCE |
| RecurrenceInterval |
integer |
触发间隔:在不同的 RecurrenceType 下表示不同的语义。
|
1 |
| RecurrenceValues |
array |
触发值:在不同的 RecurrenceType 下表示不同的语义, -WEEKLY:表示每周的哪几天需要执行 -MONTHLY:表示每月的哪几天需要执行 |
|
|
string |
执行日期。 |
1 |
|
| Year |
integer |
执行时间的年。 |
2024 |
| Month |
integer |
执行时间的月。 |
12 |
| Day |
integer |
执行时间的日。 |
10 |
| Hour |
integer |
执行时间的小时。 |
3 |
| Minute |
integer |
执行时间的分钟。 |
30 |
| Second |
integer |
执行时间的秒。 |
20 |
| ScalingInRule |
object |
收缩规则。 |
|
| RecurrenceType |
string |
触发方式:
|
ONCE |
| RecurrenceInterval |
integer |
触发间隔:在不同的 RecurrenceType 下表示不同的语义。
|
WEEKLY |
| RecurrenceValues |
array |
触发值:在不同的 RecurrenceType 下表示不同的语义, -WEEKLY:表示每周的哪几天需要执行 -MONTHLY:表示每月的哪几天需要执行 |
|
|
string |
执行日期。 |
1 |
|
| Year |
integer |
执行时间的年。 |
2025 |
| Month |
integer |
执行时间的月。 |
3 |
| Day |
integer |
执行时间的日。 |
1 |
| Hour |
integer |
执行时间的小时。 |
12 |
| Minute |
integer |
执行时间的分钟。 |
24 |
| Second |
integer |
执行时间的秒。 |
30 |
| Status |
string |
规则当前的状态:
|
INACTIVE |
| ScalingRuleName |
string |
弹性伸缩策略名称。 |
scale-test1 |
| AccessDeniedDetail |
string |
权限校验失败详情。 |
{ "PolicyType": "AccountLevelIdentityBasedPolicy", "AuthPrincipalOwnerId": "xxx", "EncodedDiagnosticMessage": "xxx", "AuthPrincipalType": "xxx", "AuthPrincipalDisplayName": "xxx", "NoPermissionType": "ImplicitDeny", "AuthAction": "sr:xxx" } |
示例
正常返回示例
JSON格式
{
"HttpStatusCode": 200,
"RequestId": "32A44F0D-BFF6-5664-999A-218BBDE7****",
"Success": false,
"ErrCode": "InvalidParams",
"ErrMessage": "Invalid params: [instance not exists].",
"Data": [
{
"ScalingRuleId": "r-d1775b776110****",
"NodeNumber": "3",
"ScalingOutRule": {
"RecurrenceType": "ONCE",
"RecurrenceInterval": 1,
"RecurrenceValues": [
"1"
],
"Year": 2024,
"Month": 12,
"Day": 10,
"Hour": 3,
"Minute": 30,
"Second": 20
},
"ScalingInRule": {
"RecurrenceType": "ONCE",
"RecurrenceInterval": 0,
"RecurrenceValues": [
"1"
],
"Year": 2025,
"Month": 3,
"Day": 1,
"Hour": 12,
"Minute": 24,
"Second": 30
},
"Status": "INACTIVE",
"ScalingRuleName": "scale-test1"
}
],
"AccessDeniedDetail": "{ \"PolicyType\": \"AccountLevelIdentityBasedPolicy\", \"AuthPrincipalOwnerId\": \"xxx\", \"EncodedDiagnosticMessage\": \"xxx\", \"AuthPrincipalType\": \"xxx\", \"AuthPrincipalDisplayName\": \"xxx\", \"NoPermissionType\": \"ImplicitDeny\", \"AuthAction\": \"sr:xxx\" }"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。