Job Schedule - List By Automation Account

Retrieve a list of job schedules.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules?api-version=2015-10-31
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules?$filter={$filter}&api-version=2015-10-31

URI Parameters

Name In Required Type Description
subscriptionId
path True
  • string

Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

resourceGroupName
path True
  • string

Name of an Azure Resource group.

Regex pattern: ^[-\w\._]+$

automationAccountName
path True
  • string

The name of the automation account.

$filter
query
  • string

The filter to apply on the operation.

api-version
query True
  • string

Client Api Version.

Responses

Name Type Description
200 OK

OK

Other Status Codes

Automation error response describing why the operation failed.

Examples

List all job schedules by automation account

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobSchedules?api-version=2015-10-31

Sample Response

{
  "value": [
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobSchedules/2f4d8f35-ecd5-44ee-a019-2382fec58fb7",
      "properties": {
        "jobScheduleId": "2f4d8f35-ecd5-44ee-a019-2382fec58fb7",
        "runbook": {
          "name": "TestRunbook"
        },
        "schedule": {
          "name": "JobScheduleforTestRunbook"
        },
        "runOn": null,
        "parameters": null
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobSchedules/446f7a33-86ff-45a1-b71c-f998f701b443",
      "properties": {
        "jobScheduleId": "446f7a33-86ff-45a1-b71c-f998f701b443",
        "runbook": {
          "name": "TestRunbook"
        },
        "schedule": {
          "name": "TestSchedule"
        },
        "runOn": null,
        "parameters": null
      }
    },
    {
      "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/jobSchedules/0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc",
      "properties": {
        "jobScheduleId": "0fa462ba-3aa2-4138-83ca-9ebc3bc55cdc",
        "runbook": {
          "name": "TestRunbook"
        },
        "schedule": {
          "name": "ScheduleNameGoesHere332204b5-debe-4348-a5c7-6357457189f2"
        },
        "runOn": null,
        "parameters": null
      }
    }
  ]
}

Definitions

ErrorResponse

Error response of an operation failure

JobSchedule

Definition of the job schedule.

JobScheduleListResult

The response model for the list job schedule operation.

RunbookAssociationProperty

The runbook property associated with the entity.

ScheduleAssociationProperty

The schedule property associated with the entity.

ErrorResponse

Error response of an operation failure

Name Type Description
code
  • string

Error code

message
  • string

Error message indicating why the operation failed.

JobSchedule

Definition of the job schedule.

Name Type Description
id
  • string

Gets the id of the resource.

name
  • string

Gets the name of the variable.

properties.jobScheduleId
  • string

Gets or sets the id of job schedule.

properties.parameters
  • object

Gets or sets the parameters of the job schedule.

properties.runOn
  • string

Gets or sets the hybrid worker group that the scheduled job should run on.

properties.runbook

Gets or sets the runbook.

properties.schedule

Gets or sets the schedule.

type
  • string

Resource type

JobScheduleListResult

The response model for the list job schedule operation.

Name Type Description
nextLink
  • string

Gets or sets the next link.

value

Gets or sets a list of job schedules.

RunbookAssociationProperty

The runbook property associated with the entity.

Name Type Description
name
  • string

Gets or sets the name of the runbook.

ScheduleAssociationProperty

The schedule property associated with the entity.

Name Type Description
name
  • string

Gets or sets the name of the Schedule.