All Products
Search
Document Center

ListJobs

Last Updated: May 14, 2018

Description

Obtains a list of jobs.

Request syntax

  1. GET /jobs?Marker={Marker}&MaxItemCount={MaxItemCount}

Attribute description

Attribute Type Required Description
Marker String No Start resource ID of the current page.Default value: Null string
MaxItemCount int No Maximum number of actually returned resources.The default value is 50, and the maximum value is 100.

Response

Success

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

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

Attribute description

Attribute Type Description
NextMarker string Start resource ID on the next page.The value is blank in the last page.
Items array List of resources.

Error codes

Error code Error message Status code Syntax
InvalidMaxItemCount Specified parameter MaxItemCount is not valid. Its type must be integer. 400 MaxItemCount must be an integer.
InvalidMaxItemCount Specified parameter MaxItemCount is not valid. It must be in [0, 100]. 400 The MaxItemCount value must be in the range of [0, 100].