Share via


List all associations between schedules and runbooks

 

The List all associations between schedules and runbooks operation lists all runbook to schedule associations. A job schedule is an association between a runbook and a schedule.

Use this operation shows the job-schedule-id values to use for the Disassociate a schedule with a runbook operation.

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, and <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>/jobSchedules?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":{
            "jobScheduleId":"ca0264cb-251d-46f9-bc98-10b332270c0d",
            "runbook":{
               "name":"Use-RunbookParameterSample"
            },
            "schedule":{
               "name":"Sched10"
            },
            "parameters":null
         }
      },
      {
         "properties":{
            "jobScheduleId":"e387bc95-0afd-4640-bf23-4b6417114806",
            "runbook":{
               "name":"Use-RunbookParameterSample"
            },
            "schedule":{
               "name":"Sched5_0501_1200AM"
            },
            "parameters":null
         }
      }
   ]
}

Element

Description

jobScheduleID

The GUID that was created to link the schedule to a runbook.

nunbook/name

The name of the linked runbook.

parameters

Any parameters that are passed to the runbook are not listed in this operation. To determine any parameters, use the Get information about a schedule's association to a runbook operation.

name

The name of the runbook.

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 Schedules
Operations on Automation