All Products
Search
Document Center

Batch Compute:GetJob

Last Updated:Apr 12, 2018

Description

Obtains information about a job.

Request syntax

  1. GET /jobs/{Id}

Attribute description

Attribute Type Required Description
Id string Yes ID of a job.

Response

Success

The 200 status code and the following job status information are returned:

  1. {
  2. "Name": "demoJob",
  3. "Id": "job-0000000058184218000008150000000D",
  4. "OwnerId": 123456,
  5. "CreationTime": "2016-11-01T15:25:02.837728Z",
  6. "State": "Running",
  7. "Message": "",
  8. "StartTime": "2016-11-01T15:25:03.837728Z",
  9. "EndTime": "2016-11-01T15:25:16.827737Z",
  10. "TaskMetrics": {
  11. "WaitingCount": 0,
  12. "RunningCount": 1,
  13. "FinishedCount": 0,
  14. "FailedCount": 0,
  15. "StoppedCount": 0
  16. },
  17. "InstanceMetrics": {
  18. "WaitingCount": 0,
  19. "RunningCount": 1,
  20. "FinishedCount": 0,
  21. "FailedCount": 0,
  22. "StoppedCount": 0
  23. }
  24. }

Attribute description

Attribute Type Required or Not Description
Name string Yes Name of a job.
Id string Yes ID of a job.
OwnerId int Yes ID of a job owner.
CreationTime string Yes Time of the creation.
State String Yes State of a job.
Message string Yes Error message.
StartTime string Yes Start time of a job.
EndTime string Yes End time of a job.
TaskMetrics object Yes Details about task metrics. For more information, see TaskMetrics.
InstanceMetrics object Yes Details about instance metrics. For more information, see InstanceMetrics.

Error codes

Error code Error message Status code Syntax
InvalidResource.NotFound Specified resource is not found. 404 The user requested resource does not exist.