Query the information about jobs.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:DescribeJobHistory |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/sam/job/describeJobHistory HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The ID of the job template. |
e1a7a07-abcb-4652-a1d3-2d57f415**** |
| CurrentPage |
integer |
No |
The number of the page to return. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 0 to 10000. |
20 |
| State |
string |
No |
The status of the job. Valid values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
53F15A18-8079-5992-810C-0211A5AE**** |
| Message |
string |
The message returned. Take note of the following rules:
|
success |
| TraceId |
string |
The trace ID that is used to query the details of the request. |
0b1639af16575057857241351e**** |
| Data |
object |
The returned data. |
|
| CurrentPage |
integer |
The page number of the returned page. |
1 |
| TotalSize |
integer |
The total number of jobs. |
20 |
| PageSize |
integer |
The number of entries to return on each page. Valid values: 0 to 10000. |
20 |
| Jobs |
array<object> |
The jobs. |
|
|
object |
|||
| JobId |
string |
The job ID. |
manual-3db7a8fa-5d40-4edc-92e4-49d50eab**** |
| Active |
integer |
The number of running instances. |
0 |
| Succeeded |
integer |
The number of instances that are successfully run. |
3 |
| Failed |
integer |
The number of instances that failed to run. |
0 |
| StartTime |
integer |
The time when the job was created. |
1657522800 |
| CompletionTime |
integer |
The time when the job was executed. |
1657522839 |
| Message |
string |
The message returned if exceptions occur during job running. |
Null |
| State |
string |
The status of the job. Valid values:
|
1 |
| ErrorCode |
string |
The error code returned. Take note of the following rules:
|
Null |
| Code |
string |
The HTTP status code returned. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "53F15A18-8079-5992-810C-0211A5AE****",
"Message": "success",
"TraceId": "0b1639af16575057857241351e****",
"Data": {
"CurrentPage": 1,
"TotalSize": 20,
"PageSize": 20,
"Jobs": [
{
"JobId": "manual-3db7a8fa-5d40-4edc-92e4-49d50eab****",
"Active": 0,
"Succeeded": 3,
"Failed": 0,
"StartTime": 1657522800,
"CompletionTime": 1657522839,
"Message": "Null\n",
"State": "1"
}
]
},
"ErrorCode": "Null\n",
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidAppId.NotFound | The specified AppId does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.