上云无忧 > 文档中心 > 百度智能云Elasticsearch API文档 - 查看定时调度任务
Elasticsearch
百度智能云Elasticsearch API文档 - 查看定时调度任务

文档简介:
调用API,查看定时调度任务。 请求参数: Header 参数: 参数名 类型 是否必须 描述 示例值 x-Region String 是 区域 bd
*此产品及展示信息均由百度智能云官方提供。免费试用 咨询热线:400-826-7010,为您提供专业的售前咨询,让您快速了解云产品,助您轻松上云! 微信咨询
  免费试用、价格特惠

调用API,查看定时调度任务。

请求参数

Header 参数

参数名 类型 是否必须 描述 示例值
x-Region String 区域 bd

Body 参数

参数名称 必填 类型 描述 示例值
clusterId String 集群ID 570900694777860096

示例

{ "clusterId": "665018667943202816" }

响应参数

参数 必填 类型 描述 示例值
success boolean 请求是否成功 true
status integer 状态码 200
result object 返回信息

result字段数据结构说明

参数 参数类型 描述 示例值
clusterId String 集群ID 570900694777860096
schedule String 任务的定期或周期调度 0 0/5 * * ?:每5min执行一次任务,0 30 1 * ?:每天的1:30am执行任务
scheduleName String 定时调度任务名称,支持字母(a-z及A-Z)和数字(0-9),长度6~24个字符
taskType String 定时调度任务类型 test123
taskRunTimes String 执行次数 CREATE_INDEX
taskFailTimes String 失败次数
lastExecuteMillis String 上次执行时间
modifiedMillis String 修改时间
scheduleId String 任务id
modifiedVersion String 修改版本
status String 状态
task Task 任务具体参数

示例

{ "success": true, "status": 200, "result": { "schedules": [{ "schedule": "0 4 0 * * ?", 
"scheduleName": "IndexColdApi100", "taskType": "MIGRATE_COLD", "task": { "indexPatterns":
 ["apiindex*"], "minIndexAge": "48h", "coldStorage": "BOS" }, "taskRunTimes": 0, "taskFailTimes"
: 0, "lastExecuteMillis": 0, "modifiedMillis": 1658912883143, "modifiedVersion": 1, "status": "RUNNING" }, 
{ "schedule": "0 7 0 * * ?", "scheduleName": "SettingApi100", "taskType": "CLUSTER_SETTINGS", "task":
 { "persistent": { "bpack.migrate.max_bytes_per_sec": "40MB" }, "transient": {} }, "taskRunTimes": 0, 
"taskFailTimes": 0, "lastExecuteMillis": 0, "modifiedMillis": 1658914322424, "modifiedVersion": 1, 
"status": "RUNNING" }, { "schedule": "0 5 0 * * ?", "scheduleName": "RolloverApi100", "taskType": 
"ROLLOVER", "task": { "alias": ["apiindex1"], "maxSize": "10kb", "maxDocs": 100000, "maxAge": "100h" },
 "taskRunTimes": 0, "taskFailTimes": 0, "lastExecuteMillis": 0, "modifiedMillis": 1658914129397,
 "modifiedVersion": 1, "status": "RUNNING" }, { "schedule": "0 3 0 * * ?", "scheduleName": "ForcemergeApi100", 
"taskType": "FORCEMERGE", "task": { "indexPatterns": ["apiindex*"], "minIndexAge": "100h", "maxNumSegments": 1 },
 "taskRunTimes": 0, "taskFailTimes": 0, "lastExecuteMillis": 0, "modifiedMillis": 1658911986313, 
"modifiedVersion": 1, "status": "RUNNING" }, { "schedule": "0 8 0 * * ?", "scheduleName": "BackupApi100", 
"taskType": "SNAPSHOT", "task": { "repository": "esRes", "snapshot": "snaptest", "retention": { "expireAfter": 
"90d", "minCount": "0", "maxCount": "2147483647" }, "taskParams": { "indices": "apiIndex1" } }, "taskRunTimes":
 0, "taskFailTimes": 0, "lastExecuteMillis": 0, "modifiedMillis": 1658914384638, "modifiedVersion": 1, 
"status": "RUNNING" }, { "schedule": "0 2 0 * * ?", "scheduleName": "DelIndexApi100", "taskType": "DELETE", 
"task": { "indexPatterns": ["apiindex*"], "minIndexAge": "24h" }, "taskRunTimes": 0, "taskFailTimes": 0,
 "lastExecuteMillis": 0, "modifiedMillis": 1658911939815, "modifiedVersion": 1, "status": "RUNNING" }, 
{ "schedule": "0 6 0 * * ?", "scheduleName": "StoreLimitApi100", "taskType": "INDEX_STORE_MANAGER", "task": 
{ "indexPatterns": ["apiindex*"], "maxSize": "100gb" }, "taskRunTimes": 0, "taskFailTimes": 0, "lastExecuteMillis":
 0, "modifiedMillis": 1658915010970, "modifiedVersion": 1, "status": "RUNNING" }, { "schedule": "0 1 0 * * ?", 
"scheduleName": "CreateIndexApi100", "taskType": "CREATE_INDEX", "task": { "indices": [{ "indexPrefix":
 "apiindex1-", "indexSuffix": "yyyy.MM.dd.HH.mm", "indexInfo": { "settings": { "index": { "number_of_shards":
 "1", "number_of_replicas": "1" } } } }] }, "taskRunTimes": 0, "taskFailTimes": 0, "lastExecuteMillis": 0, 
"modifiedMillis": 1658911611317, "modifiedVersion": 1, "status": "RUNNING" }] } }

相似文档
官方微信
联系客服
400-826-7010
7x24小时客服热线
分享
  • QQ好友
  • QQ空间
  • 微信
  • 微博
返回顶部