List all jobs

 

The List all jobs operation returns the current jobs or those jobs according to the result of a filter clause.

Request

To specify the request, replace <subscription-id> with your subscription ID, <cloud-service-name> with the name of the cloud service to use for making the request, <automation-account-name> with the name of the automation account to use for making the request. Include required URI parameters.

Method

Request URI

GET

https://management.core.windows.net/<subscription-id>/cloudServices/<cloud-service-name>/resources/automation/~/automationAccounts/<automation-account-name>/jobs?api-version=2014-12-08

URI Parameters

Parameter

Description

api-version

Required. Must be set to 2014-12-08.

Request Headers

The request header in the following table is required.

Request Header

Description

x-ms-version

Specifies the version of the operation. Set to 2013-06-01 or a later version.

Request Body

None

Response

Status Code

A successful operation returns 200 (OK). For information about common error codes, see HTTP/1.1 Status Code Definitions.

Response Headers

Request Header

Description

x-ms-request-id

A unique identifier for the current operation.

Response Body

{
   "value":[
      {
         "properties":{
            "jobId":"67bf1965-43f2-45ab-882d-55a1fc551fcd",
            "runbook":{
               "name":"Use-RunbookParameterSample"
            },
            "provisioningState":"Succeeded",
            "status":"Completed",
            "creationTime":"2015-04-28T20:43:48.32+00:00",
            "startTime":"2015-04-28T20:44:14.677+00:00",
            "lastModifiedTime":"2015-04-28T20:44:22.03+00:00",
            "endTime":"2015-04-28T20:44:22.03+00:00"
         }
      },
      {
         "properties":{
            "jobId":"6b3381b9-4a28-4e87-92c0-73144ebbe3c8",
            "runbook":{
               "name":"Use-RunbookParameterSample"
            },
            "provisioningState":"Failed",
            "status":"Failed",
            "creationTime":"2015-04-28T20:42:27.15+00:00",
            "startTime":"2015-04-28T20:42:47.793+00:00",
            "lastModifiedTime":"2015-04-28T20:42:47.793+00:00",
            "endTime":"2015-04-28T20:42:47.793+00:00"
         }
      },

      {
         "properties":{
            "jobId":"3c81738a-114d-4448-bc72-534340d9a5f7",
            "runbook":{
               "name":"Use-RunbookParameterSample"
            },
            "provisioningState":"Succeeded",
            "status":"Completed",
            "creationTime":"2015-04-28T18:37:28.23+00:00",
            "startTime":"2015-04-28T18:37:31.887+00:00",
            "lastModifiedTime":"2015-04-28T18:37:33.38+00:00",
            "endTime":"2015-04-28T18:37:33.38+00:00"
         }
      },
     "nextLink":"<next page uri>"
   ]
}

Element

Description

jobID

The ID of the job.

runbook/Name

The name of the runbook that performed the job.

provisioningState

The state of provisioning the job. This is tantamount to the job execution state until a terminal state is reached.

status

The status of the job

creationTime

The date and time the job was created.

startTime

The start time of the job.

lastModifiedTime

The date and time the job was last modified.

endTime

The end time of the job.

nextLink

Returned only when the number of records exceeds the page size (100 records). This link, and any subsequent links, returns the next page of records.

See Also

Automation Jobs
Operations on Automation