Retrieves a list of job instances.
Operation description
请求说明
该接口支持通过
projectName和jobName路径参数来定位具体的项目与作业。可选查询参数包括:
callerOwner,state,offset,size,start,end,用于进一步过滤或分页结果集。offset和size参数用于控制返回结果的数量及起始位置,实现分页功能。start和end参数允许用户按时间范围筛选实例记录。调用者可以通过设置
state参数来过滤特定状态下的作业实例。
Try it now
Test
RAM authorization
Request syntax
GET /jobs/{jobName}/jobinstances HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| jobName |
string |
No |
The job name. |
alink_expr_0_1946435_735466 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
No |
The project name. |
test |
| callerOwner |
string |
No |
The owner of the job. |
12312 |
| state |
string |
No |
The current execution status. |
Running |
| offset |
integer |
No |
The start row of the query. |
0 |
| size |
integer |
No |
The number of rows per page for a paged query. |
100 |
| start |
integer |
No |
The start time. |
1784151198 |
| end |
integer |
No |
The end time. |
1784237598 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| total |
integer |
The total number of records. |
20 |
| count |
string |
The number of jobs returned on the current page. |
10 |
| results |
array |
The job configuration details. |
|
| JobInstance |
The job configuration details. |
Examples
Success response
JSON format
{
"total": 20,
"count": "10",
"results": [
{
"instanceId": "",
"jobName": "",
"jobScheduleId": "",
"displayName": "",
"description": "",
"createTimeInMillis": 0,
"beginTimeInMillis": 0,
"updateTimeInMillis": 0,
"scheduleTimeInMillis": 0,
"state": "",
"errorCode": "",
"errorMessage": "",
"summary": "",
"result": ""
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.