Get information about a job

 

The Get information about a job operation returns information about a job by its ID.

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, and <job-name> with the name job to get information about. 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/<job-name>?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

{
   "properties":{
      "jobId":"67bf1965-43f2-45ab-882d-55a1fc551fcd",
      "creationTime":"2015-04-28T20:43:48.32+00:00",
      "provisioningState":"Succeeded",
      "status":"Completed",
      "statusDetails":"None",
      "startedBy":null,
      "startTime":"2015-04-28T20:44:14.677+00:00",
      "endTime":"2015-04-28T20:44:22.03+00:00",
      "lastModifiedTime":"2015-04-28T20:44:22.03+00:00",
      "lastStatusModifiedTime":"2015-04-28T20:44:22.03+00:00",
      "exception":null,
      "parameters":{
         "Name":"Bernique",
         "Number":"77",
         "SayGoodbye":"true"
      },
      "runOn":null,
      "runbook":{
         "name":"Use-RunbookParameterSample"
      }
   }
}

Element

Description

jobID

The ID of the job.

creationTime

The date and time the job was created.

provisioningState

The job execution state until a terminal state is reached.

status

The status of the job,

statusDetails

The job status detail.

startedBy

The server that started the job.

startTime

The date and start time of the job.

endTime

The date and end time of the job.

creationTime

The date and time the job was created.

lastModifiedTime

The date and time the job was last changed.

lastStatusModifiedTime

The date and time the job's status was last changed.

exception

Any exception the job encountered.

parameters

Any parameters of the job as key value pairs.

runOn

The name of the computer that ran the job.

Runbook/Name

The name of the runbook used in the job.

See Also

Automation Jobs
Operations on Automation