Queries the details of a specified job.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | Yes | The ID of the E-HPC cluster. You can call the ListClusters operation to query the cluster ID. | ehpc-hz-FYUr32**** |
PageNumber | long | No | The page number to return. Pages start from 1. Default value: 1. | 1 |
PageSize | long | No | The number of entries per page. Maximum value: 50. Default value: 10. | 10 |
Users | array | No | The users that run the job. | |
string | No | The name of the user that runs the job. Fuzzy match is supported. You can call the ListUsers operation to query the users in the cluster. | user1 | |
Queues | array | No | The information about the queues in which the job is run. | |
string | No | The name of the queue in which the job is run. Fuzzy search is supported. | workq | |
Nodes | array | No | The information about the computing nodes that are used to run the job. | |
string | No | The name of the compute node. Fuzzy match is supported. | node1 | |
JobName | string | No | The name of the job. Fuzzy search is supported. | job1 |
JobStatus | string | No | The status of the job. Valid values:
Default value: all. | finished |
ExecuteOrder | string | No | The order in which jobs are sorted based on the execution time. Valid values:
| asc |
SubmitOrder | string | No | The order in which jobs are sorted based on the time when they are submitted. Valid values:
| asc |
PendOrder | string | No | The order in which jobs are sorted based on the time when they queue. Valid values:
| desc |
RegionId | string | No | The ID of the region. You can call the ListRegions operation to query the list of regions where E-HPC is supported. | cn-hangzhou |
CreateTimeStart | string | No | The earliest time when a job is submitted. The value is a UNIX timestamp, which represents the number of seconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. | 1647427667 |
CreateTimeEnd | string | No | The latest time when a job is submitted. The value is a UNIX timestamp, which represents the number of seconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC. | 1647428667 |
Async | boolean | No | Specifies whether to enable asynchronous query. | false |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 1,
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE7****",
"PageSize": 10,
"PageNumber": 1,
"Jobs": [
{
"Owner": "test2@scheduler",
"Comment": "jobDescription",
"State": "FINISHED",
"Stderr": "./Temp",
"Priority": "0",
"ShellPath": "./Temp",
"Stdout": "./Temp",
"ArrayRequest": "1-10:2",
"StartTime": "1647427667",
"LastModifyTime": "1647428667",
"NodeList": "['compute2', 'compute3']",
"Name": "job1",
"Id": "8.scheduler",
"SubmitTime": "1647423718",
"Resources": {
"Nodes": 0,
"Cores": 2
},
"Queue": "2",
"Rerunable": true,
"VariableList": "{\"PBS_O_SHELL\":\"/bin/bash\", \t\"PBS_O_HOST\":\"manager\", \t\"PBS_O_SYSTEM\":\"Linux\", \t\"PBS_O_LANG\":\"en_US.UTF-8\", \t\"PBS_O_QUEUE\":\"workq\"}"
}
],
"Success": true
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidParams | %s |
406 | AgentError | The agent service request failed. |
500 | UnknownError | An unknown error occurred. |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server |
For a list of error codes, visit the Service error codes.