查询定时重启任务执行记录

接口说明

面向政企版租户开放查询定时重启执行记录 限流:根据租户实现用户级别的限流,限制为100次每秒


推荐使用API Explorer调试

API Explorer支持接口在线可视化调用,同时自动生成动态代码示例,搭配OpenAPI SDK无需计算签名实现接口快速集成。

URL

POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/resource-policy/getRestartRecordList

请求参数

Body

参数名称
类型
必填
描述
reqDto
QueryResourcePolicyRecordApiReq
是

请求入参

currentPage
integer(int32)
否

当前页

pageSize
integer(int32)
否

分页大小

policyId
string
是

定时任务主键id

请求示例

POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/resource-policy/getRestartRecordList
{
	"currentPage":1,
	"pageSize":10,
	"policyId":"1910616576153718785"
}

返回参数

返回码:200
OK
参数名称
类型
描述
body
PageReturnEntity«QueryResourcePolicyRecordApiResp»

请求成功时返回的数据

data
<QueryResourcePolicyRecordApiResp> array

数据

executeTime
string

执行时间

failNum
integer(int32)

失败数量

policyId
string

策略主键id

processNum
integer(int32)

执行中数量

recordId
string

策略执行任务记录主键id

status
string

执行结果 waiting:待执行 processing:执行中 success:成功 fail:失败

successNum
integer(int32)

成功数量

taskNum
integer(int32)

任务数量

taskType
string

任务类型 开机:available 关机:shutdown 重启:restart

waitNum
integer(int32)

等待数量

totalCount
integer(int32)

总行数

errorCode
string

统一错误码

errorMessage
string

错误码提示信息

requestId
string

每个请求的序列号

state
enum(OK,ERROR,EXCEPTION,FORBIDDEN,REMAINING,TIMEOUT)

返回状态码;返回正常:OK,返回错误:ERROR,返回异常:EXCEPTION,需要告警实现的:ALARM,禁止访问:FORBIDDEN

返回示例

返回码:200
OK
{
	"state":"OK",
	"body":{
		"data":[
			{
				"recordId":"1912171555989590019",
				"policyId":"1910616576153718785",
				"executeTime":"2025-04-16 00:00:00",
				"status":"processing",
				"taskType":"restart",
				"taskNum":1,
				"successNum":0,
				"failNum":1,
				"waitNum":1,
				"processNum":-1
			}
		],
		"totalCount":1
	},
	"errorCode":"200",
	"errorMessage":"",
	"requestId":"73dbef3ff09ac195"
}
本文档内容整理自移动云官方帮助中心(查看原文),仅供参考。