List all jobs in an automation account

 

Updated: May 26, 2016

The List jobs task lists the current jobs in an automation account.

The related Windows PowerShell cmdlet for this task is Get-AzureRmAutomationJob.

To specify the request, replace {subscription-id} with your subscription ID, {resource-group-name} with the name of your resource group, {automation-account-name} with the name of the automation account, and {runbook-name} with the name of the runbook for its jobs.

Method

Request URI

GET

https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Automation/automationAccounts/{automation-account-name}/runbooks/{runbook-name}/jobs?api-version=2015-10-31

URI parameter

Description

api-version

Required. Valid values include 2015-10-31

The following code shows an example of the 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>"
   ]
}



If the number of records exceeds the page size (100 records), a 'nextLink' element is provided to link to subsequent pages as needed.

200

For information about common error codes, see Service Management Status and Error Codes

Show: