查询定时任务执行记录详情 - ListScheduledTasksRecordsDetails
功能介绍
查询定时任务执行记录详情。
调试
您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。
授权信息
账号具备所有API的调用权限,如果使用账号下的IAM用户调用当前API,该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权,具体权限要求请参见权限和授权项。
- 如果使用身份策略授权,当前API调用无需身份策略权限。
URI
GET /v2/{project_id}/scheduled-tasks/{task_id}/records/{record_id}
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
project_id | 是 | String | 项目ID。 |
task_id | 是 | String | 任务ID。 |
record_id | 是 | String | 任务执行记录ID。 |
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
offset | 是 | Integer | 用于分页查询,查询的起始记录序号,从0开始。 |
limit | 是 | Integer | 用于分页查询,每页返回的个数,取值范围0~100。 |
请求参数
无
响应参数
状态码:200
参数 | 参数类型 | 描述 |
|---|---|---|
tasks_records_details | Array of ScheduledTasksRecordsDetails objects | 定时任务执行记录详情列表。 |
total_count | Integer | 总个数。 |
参数 | 参数类型 | 描述 |
|---|---|---|
id | String | 任务执行记录详情id。 |
record_id | String | 任务执行记录id。 |
desktop_id | String | 桌面id。 |
desktop_name | String | 桌面名称。 |
exec_status | String | 执行状态。 |
exec_script_id | String | 执行脚本id。 |
result_code | String | 失败或者跳过原因的错误码。 |
fail_reason | String | 失败或者跳过原因。 |
start_time | String | 执行开始时间,格式为yyyy-MM-dd HH:mm:ss。 |
end_time | String | 执行结束时间,格式为yyyy-MM-dd HH:mm:ss。 |
time_zone | String | 时区。 |
状态码:400
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码,失败时返回。 |
error_msg | String | 错误描述。 |
error_detail | String | 错误详情。 |
encoded_authorization_message | String | 加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
状态码:500
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码,失败时返回。 |
error_msg | String | 错误描述。 |
error_detail | String | 错误详情。 |
encoded_authorization_message | String | 加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。 |
请求示例
无
响应示例
状态码:200
正常。
{
"tasks_records_details" : [ {
"id" : "2b31e-d520xxxx-xxebedb6-e57xxxxxx",
"record_id" : "2b31e-d520xxxx-xxebedb6-e57xxxxxx",
"desktop_id" : "2b31e-d520xxxx-xxebedb6-e57xxxxxx",
"desktop_name" : "desktop1",
"exec_status" : "SUCCESS",
"exec_script_id" : "string",
"result_code" : "WKS.000x",
"fail_reason" : "任务冲突",
"start_time" : "2022-12-31 09:00:00",
"end_time" : "2022-12-31 09:00:00",
"time_zone" : "Asia/Shanghai"
} ],
"total_count" : 10
} 状态码
状态码 | 描述 |
|---|---|
200 | 正常。 |
400 | 由于包含语法错误,当前请求无法被服务器理解。 |
500 | 服务内部错误,具体返回错误码请参见错误码说明。 |
错误码
请参见错误码。

