获取定时器列表
基本信息
Action
DescribeSchedulers
Path
/iaas
Method
GET
请求参数
此接口除公共参数外,还包含以下参数。关于公共参数的更多信息,请参见前文内容。
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
controller |
String |
否 |
资源的控制者 |
owner |
String |
否 |
资源的所有者 |
schedulers |
Array |
否 |
定时器ID 列表 |
verbose |
Integer |
否 |
是否返回详细信息 |
返回数据
此接口除公共返回参数外,还包含以下返回参数。关于公共返回参数的更多信息,请参见前文内容。
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
console_id |
String |
否 |
Console ID |
create_time |
String |
否 |
创建时间 |
description |
String |
否 |
描述 |
hhmm |
String |
否 |
时分 |
is_mine |
String |
否 |
是否是自己的 |
items |
Array |
否 |
通知列表 |
notification_lists |
Array |
否 |
通知列表 |
notify_event |
String |
否 |
通知事件1通知/0不通知 |
period |
Integer |
否 |
周期 |
repeat |
Integer |
否 |
重复次数 |
resource_project_info |
Array |
否 |
资源项目信息 |
resource_project_info.meta |
String |
否 |
项目元数据 |
resource_project_info.project_id |
String |
否 |
项目ID |
resource_project_info.project_name |
String |
否 |
项目名称 |
root_user_id |
String |
否 |
资源主账户id |
scheduler_id |
String |
否 |
定时器id |
scheduler_name |
String |
否 |
定时器名称 |
scheduler_set |
Array |
否 |
定时器列表 |
snapshot_task_count |
Integer |
否 |
快照任务数量 |
total_count |
Integer |
否 |
定时器总数 |
update_time |
String |
否 |
更新时间 |
ymd |
String |
否 |
年月日 |
请求示例
{
"action": "DescribeSchedulers",
"controller": [
"self"
],
"limit": 10,
"offset": 0,
"owner": "usr-BnnisHWR",
"schedulers": [
"schd-8rzuyrmr"
],
"status": [],
"verbose": 1,
"zone": "testing"
}
返回示例
{
"action": "DescribeSchedulersResponse",
"ret_code": 0,
"scheduler_set": [
{
"console_id": "testingcloud",
"create_time": "2023-07-05T00:13:08Z",
"description": "",
"hhmm": "00:13",
"notification_lists": [
{
"console_id": "testingcloud",
"create_time": "2021-12-28T09:48:18Z",
"is_account_contacts": 1,
"is_mine": "否",
"items": [
{
"console_id": "testingcloud",
"content": "66-15123123",
"create_time": "2022-08-03T16:06:10",
"notification_item_id": "ni-gesu2bio",
"notification_item_type": "phone",
"owner": "usr-BnnisHWR",
"remarks": "",
"root_user_id": "usr-BnnisHWR",
"verification_code": "",
"verified": 1,
"verify_time": "2022-08-03T16:06:10"
}
],
"notification_list_id": "nl-x3u8y13n",
"notification_list_name": "Account Contacts",
"owner": "usr-BnnisHWR",
"owner_info": {
"email": "account2@testing.com",
"user_id": "usr-BnnisHWR"
},
"remarks": "",
"root_user_id": "usr-BnnisHWR",
"shared": "否",
"visibility": "private"
}
],
"notify_event": 1,
"owner": "usr-BnnisHWR",
"period": "daily",
"repeat": 1,
"resource_project_info": [],
"root_user_id": "usr-BnnisHWR",
"scheduler_id": "schd-8rzuyrmr",
"scheduler_name": "fafdfds",
"snapshot_task_count": 0,
"update_time": "2023-07-05T00:13:08Z",
"ymd": ""
}
],
"total_count": 1,
"trace_id": "1DGqEQOV"
}