云应用引擎 CAE-获取定时启停规则列表:响应参数

时间:2023-11-20 10:32:01

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

api_version

String

API版本,固定值“v1”,该值不可修改。

枚举值:

  • v1

kind

String

API类型,固定值“TimerRule”,该值不可修改。

枚举值:

  • TimerRule

items

Array of TimerRuleDetails objects

启停规则列表。

表4 TimerRuleDetails

参数

参数类型

描述

id

String

定时启停规则ID,在创建定时启停规则时会忽略。

name

String

定时启停规则名称。

type

String

定时启停规则的类型:stop/start。

status

String

定时启停规则状态(是否开启):on/off。

env_id

String

环境ID。

apps

Array of AppInfo objects

定时启停规则所包含的所有应用,只在生效范围为application的时候需要填写。

components

Array of ComponentInfo objects

在定时启停规则所包含的所有组件,只在生效范围为component的时候需要填写。

component_number

Integer

定时启停规则包含的组件个数,在创建定时启停规则时会忽略。

cron

String

cron表达式。

effective_range

String

定时启停规则生效范围: component/application/environment。

effective_policy

String

定时启停规则的定时类别: onetime/periodic。

last_execution_status

String

上次执行的状态:abnormal/normal/executing,在创建定时启停规则时会忽略。

表5 AppInfo

参数

参数类型

描述

app_id

String

应用ID。

app_name

String

应用名称。

表6 ComponentInfo

参数

参数类型

描述

component_id

String

组件ID。

component_name

String

组件名称。

support.huaweicloud.com/api-cae/ListTimerRules.html