---
title: "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks"
tags: ["Runbook"]
---

# GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Retrieve a list of runbooks.

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `automationAccountName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK

- RunbookListResult: The response model for the list runbook operation.
  - `value` Runbook[]: Gets or sets a list of runbooks.
    - `id` string: Fully qualified resource Id for the resource
    - `name` string: The name of the resource
    - `type` string: The type of the resource.
    - `tags` object: Resource tags.
    - `location` string: The Azure Region where the resource lives
    - `properties` RunbookProperties: Definition of the runbook property type.
      - `runbookType` 'Script' | 'Graph' | 'PowerShellWorkflow' | 'PowerShell' | 'GraphPowerShellWorkflow' | 'GraphPowerShell' | 'Python2' | 'Python3': Gets or sets the type of the runbook.
      - `publishContentLink` ContentLink: Definition of the content link.
        - `uri` string: Gets or sets the uri of the runbook content.
        - `contentHash` ContentHash: Definition of the runbook property type.
          - `algorithm` string, required: Gets or sets the content hash algorithm used to hash the content.
          - `value` string, required: Gets or sets expected hash value of the content.
        - `version` string: Gets or sets the version of the content.
      - `state` 'New' | 'Edit' | 'Published': Gets or sets the state of the runbook.
      - `logVerbose` boolean: Gets or sets verbose log option.
      - `logProgress` boolean: Gets or sets progress log option.
      - `logActivityTrace` integer: Gets or sets the option to log activity trace of the runbook.
      - `jobCount` integer: Gets or sets the job count of the runbook.
      - `parameters` object: Gets or sets the runbook parameters.
      - `outputTypes` string[]: Gets or sets the runbook output types.
      - `draft` RunbookDraft
        - `inEdit` boolean: Gets or sets whether runbook is in edit mode.
        - `draftContentLink` ContentLink: Definition of the content link.
          - `uri` string: Gets or sets the uri of the runbook content.
          - `contentHash` ContentHash: Definition of the runbook property type.
            - `algorithm` string, required: Gets or sets the content hash algorithm used to hash the content.
            - `value` string, required: Gets or sets expected hash value of the content.
          - `version` string: Gets or sets the version of the content.
        - `creationTime` string, date-time: Gets or sets the creation time of the runbook draft.
        - `lastModifiedTime` string, date-time: Gets or sets the last modified time of the runbook draft.
        - `parameters` object: Gets or sets the runbook draft parameters.
        - `outputTypes` string[]: Gets or sets the runbook output types.
      - `provisioningState` 'Succeeded': Gets or sets the provisioning state of the runbook.
      - `lastModifiedBy` string: Gets or sets the last modified by.
      - `creationTime` string, date-time: Gets or sets the creation time.
      - `lastModifiedTime` string, date-time: Gets or sets the last modified time.
      - `description` string: Gets or sets the description.
    - `etag` string: Gets or sets the etag of the resource.
  - `nextLink` string: Gets or sets the next link.

## Other responses

- `default`: Automation error response describing why the operation failed.

## Changes

- **2022-06-14** (2018-06-30) `ba42217a1467`: 4 breaking
  - added the new path request parameter `automationAccountName`
  - added the new path request parameter `resourceGroupName`
  - added the new path request parameter `subscriptionId`
  - added the new required `query` request parameter `api-version`

[Operation history](https://skmtc.dev/azure/apis/automationmanagement-17/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Automation/automationAccounts/:automationAccountName/runbooks/get.md)

---

[API](https://skmtc.dev/azure/apis/automationmanagement-17.md) - [All operations](https://skmtc.dev/azure/apis/automationmanagement-17/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/automationmanagement-17/revisions/ba42217a1467?raw)
