RunbookDraftOperations class

Class representing a RunbookDraftOperations.

Constructors

RunbookDraftOperations(AutomationClientContext)

Create a RunbookDraftOperations.

Methods

beginReplaceContent(string, string, string, HttpRequestBody, RequestOptionsBase)

Replaces the runbook draft content.

get(string, string, string, RequestOptionsBase)

Retrieve the runbook draft identified by runbook name.

get(string, string, string, RequestOptionsBase, ServiceCallback<RunbookDraft>)
get(string, string, string, ServiceCallback<RunbookDraft>)
getContent(string, string, string, RequestOptionsBase)

Retrieve the content of runbook draft identified by runbook name.

getContent(string, string, string, RequestOptionsBase, ServiceCallback<void>)
getContent(string, string, string, ServiceCallback<void>)
replaceContent(string, string, string, HttpRequestBody, RequestOptionsBase)

Replaces the runbook draft content.

undoEdit(string, string, string, RequestOptionsBase)

Undo draft edit to last known published state identified by runbook name.

undoEdit(string, string, string, RequestOptionsBase, ServiceCallback<RunbookDraftUndoEditResult>)
undoEdit(string, string, string, ServiceCallback<RunbookDraftUndoEditResult>)

Constructor Details

RunbookDraftOperations(AutomationClientContext)

Create a RunbookDraftOperations.

new RunbookDraftOperations(client: AutomationClientContext)

Parameters

client
AutomationClientContext

Reference to the service client.

Method Details

beginReplaceContent(string, string, string, HttpRequestBody, RequestOptionsBase)

Replaces the runbook draft content.

function beginReplaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: HttpRequestBody, options?: RequestOptionsBase): Promise<LROPoller>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.

runbookContent
HttpRequestBody

The runbook draft content.

options
RequestOptionsBase

The optional parameters

Returns

Promise<@azure/ms-rest-azure-js.LROPoller>

Promise<msRestAzure.LROPoller>

get(string, string, string, RequestOptionsBase)

Retrieve the runbook draft identified by runbook name.

function get(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: RequestOptionsBase): Promise<RunbookDraftGetResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.RunbookDraftGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<RunbookDraft>)

function get(resourceGroupName: string, automationAccountName: string, runbookName: string, options: RequestOptionsBase, callback: ServiceCallback<RunbookDraft>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<RunbookDraft>

The callback

get(string, string, string, ServiceCallback<RunbookDraft>)

function get(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback<RunbookDraft>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.

callback

ServiceCallback<RunbookDraft>

The callback

getContent(string, string, string, RequestOptionsBase)

Retrieve the content of runbook draft identified by runbook name.

function getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: RequestOptionsBase): Promise<RunbookDraftGetContentResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.RunbookDraftGetContentResponse>

getContent(string, string, string, RequestOptionsBase, ServiceCallback<void>)

function getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

getContent(string, string, string, ServiceCallback<void>)

function getContent(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.

callback

ServiceCallback<void>

The callback

replaceContent(string, string, string, HttpRequestBody, RequestOptionsBase)

Replaces the runbook draft content.

function replaceContent(resourceGroupName: string, automationAccountName: string, runbookName: string, runbookContent: HttpRequestBody, options?: RequestOptionsBase): Promise<RunbookDraftReplaceContentResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.

runbookContent
HttpRequestBody

The runbook draft content.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.RunbookDraftReplaceContentResponse>

undoEdit(string, string, string, RequestOptionsBase)

Undo draft edit to last known published state identified by runbook name.

function undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, options?: RequestOptionsBase): Promise<RunbookDraftUndoEditResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.RunbookDraftUndoEditResponse>

undoEdit(string, string, string, RequestOptionsBase, ServiceCallback<RunbookDraftUndoEditResult>)

function undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, options: RequestOptionsBase, callback: ServiceCallback<RunbookDraftUndoEditResult>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.

options
RequestOptionsBase

The optional parameters

undoEdit(string, string, string, ServiceCallback<RunbookDraftUndoEditResult>)

function undoEdit(resourceGroupName: string, automationAccountName: string, runbookName: string, callback: ServiceCallback<RunbookDraftUndoEditResult>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

runbookName

string

The runbook name.