All Products
Search
Document Center

Elastic High Performance Computing:ListJobsWithFilters

Last Updated:Apr 09, 2024

Queries the details of a specified job.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The ID of the E-HPC cluster.

You can call the ListClusters operation to query the cluster ID.

ehpc-hz-FYUr32****
PageNumberlongNo

The page number to return.

Pages start from 1.

Default value: 1.

1
PageSizelongNo

The number of entries per page. Maximum value: 50.

Default value: 10.

10
UsersarrayNo

The users that run the job.

stringNo

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
QueuesarrayNo

The information about the queues in which the job is run.

stringNo

The name of the queue in which the job is run. Fuzzy search is supported.

workq
NodesarrayNo

The information about the computing nodes that are used to run the job.

stringNo

The name of the compute node. Fuzzy match is supported.

node1
JobNamestringNo

The name of the job. Fuzzy search is supported.

job1
JobStatusstringNo

The status of the job. Valid values:

  • all
  • finished
  • notfinish

Default value: all.

finished
ExecuteOrderstringNo

The order in which jobs are sorted based on the execution time. Valid values:

  • asc: ascending order
  • desc: descending order
asc
SubmitOrderstringNo

The order in which jobs are sorted based on the time when they are submitted. Valid values:

  • asc: ascending order
  • desc: descending order
asc
PendOrderstringNo

The order in which jobs are sorted based on the time when they queue. Valid values:

  • asc: ascending order
  • desc: descending order
desc
RegionIdstringNo

The ID of the region. You can call the ListRegions operation to query the list of regions where E-HPC is supported.

cn-hangzhou
CreateTimeStartstringNo

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
CreateTimeEndstringNo

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
AsyncbooleanNo

Specifies whether to enable asynchronous query.

false

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

TotalCountinteger

The total number of entries returned.

1
RequestIdstring

The request ID.

04F0F334-1335-436C-A1D7-6C044FE7****
PageSizelong

The number of entries returned per page.

10
PageNumberlong

The page number returned.

1
Jobsobject []

The list of jobs.

Ownerstring

The name of the user that ran the job.

test2@scheduler
Commentstring

The description of the job.

jobDescription
Statestring

The status of the job. Valid value:

  • FINISHED: The job is completed.
  • RUNNING: The job is running.
  • QUEUED: The job is pending in a queue.
FINISHED
Stderrstring

The output file path of stderr.

./Temp
Prioritystring

The priority of the job. Valid values: 0 to 9. A larger value indicates a higher priority.

0
ShellPathstring

The path that was used to run the job.

./Temp
Stdoutstring

The output file path of stdout.

./Temp
ArrayRequeststring

The job array. If the job is not in a queue, the output is empty.

Format: X-Y:Z. X is the minimum index value. Y is the maximum index value. Z is the step size. For example, 2-7:2 indicates that three jobs need to be run and their index values are 2, 4, and 6.

1-10:2
StartTimestring

The time when the job was created.

1647427667
LastModifyTimestring

The time when the job was last modified.

1647428667
NodeListstring

The list of compute nodes that were used to run the job.

['compute2', 'compute3']
Namestring

The name of the job.

job1
Idstring

The job ID.

8.scheduler
SubmitTimestring

The time when the job was submitted.

1647423718
Resourcesobject

The resources that were used to run the job.

Nodeslong

The number of nodes that were used to run the job.

0
Coreslong

The number of CPUs that were used to run the job.

2
Queuestring

The number of queues that ran the job.

2
Rerunableboolean

Indicates whether the job can be run again. Valid values:

  • true: yes
  • false: no
true
VariableListstring

The list of variables of the job.

{"PBS_O_SHELL":"/bin/bash", "PBS_O_HOST":"manager", "PBS_O_SYSTEM":"Linux", "PBS_O_LANG":"en_US.UTF-8", "PBS_O_QUEUE":"workq"}
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError message
400InvalidParams%s
406AgentErrorThe agent service request failed.
500UnknownErrorAn unknown error occurred.
503ServiceUnavailable The request has failed due to a temporary failure of the server

For a list of error codes, visit the Service error codes.