runbook_drafts
Creates, updates, deletes, gets or lists a runbook_drafts
resource.
Overview
Name | runbook_drafts |
Type | Resource |
Id | azure.automation.runbook_drafts |
Fields
Name | Datatype | Description |
---|---|---|
creationTime | string | Gets or sets the creation time of the runbook draft. |
draftContentLink | object | Definition of the content link. |
inEdit | boolean | Gets or sets whether runbook is in edit mode. |
lastModifiedTime | string | Gets or sets the last modified time of the runbook draft. |
outputTypes | array | Gets or sets the runbook output types. |
parameters | object | Gets or sets the runbook draft parameters. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | automationAccountName, resourceGroupName, runbookName, subscriptionId | Retrieve the runbook draft identified by runbook name. |
undo_edit | EXEC | automationAccountName, resourceGroupName, runbookName, subscriptionId | Undo draft edit to last known published state identified by runbook name. |
SELECT
examples
Retrieve the runbook draft identified by runbook name.
SELECT
creationTime,
draftContentLink,
inEdit,
lastModifiedTime,
outputTypes,
parameters
FROM azure.automation.runbook_drafts
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND runbookName = '{{ runbookName }}'
AND subscriptionId = '{{ subscriptionId }}';