JobOperations class

Class representing a JobOperations.

Constructors

JobOperations(AutomationClientContext)

Create a JobOperations.

Methods

create(string, string, string, JobCreateParameters, JobCreateOptionalParams)

Create a job of the runbook.

create(string, string, string, JobCreateParameters, JobCreateOptionalParams, ServiceCallback<Job>)
create(string, string, string, JobCreateParameters, ServiceCallback<Job>)
get(string, string, string, JobGetOptionalParams)

Retrieve the job identified by job name.

get(string, string, string, JobGetOptionalParams, ServiceCallback<Job>)
get(string, string, string, ServiceCallback<Job>)
getOutput(string, string, string, JobGetOutputOptionalParams)

Retrieve the job output identified by job name.

getOutput(string, string, string, JobGetOutputOptionalParams, ServiceCallback<void>)
getOutput(string, string, string, ServiceCallback<void>)
getRunbookContent(string, string, string, JobGetRunbookContentOptionalParams)

Retrieve the runbook content of the job identified by job name.

getRunbookContent(string, string, string, JobGetRunbookContentOptionalParams, ServiceCallback<void>)
getRunbookContent(string, string, string, ServiceCallback<void>)
listByAutomationAccount(string, string, JobListByAutomationAccountOptionalParams)

Retrieve a list of jobs.

listByAutomationAccount(string, string, JobListByAutomationAccountOptionalParams, ServiceCallback<JobListResultV2>)
listByAutomationAccount(string, string, ServiceCallback<JobListResultV2>)
listByAutomationAccountNext(string, JobListByAutomationAccountNextOptionalParams)

Retrieve a list of jobs.

listByAutomationAccountNext(string, JobListByAutomationAccountNextOptionalParams, ServiceCallback<JobListResultV2>)
listByAutomationAccountNext(string, ServiceCallback<JobListResultV2>)
resume(string, string, string, JobResumeOptionalParams)

Resume the job identified by jobName.

resume(string, string, string, JobResumeOptionalParams, ServiceCallback<void>)
resume(string, string, string, ServiceCallback<void>)
stop(string, string, string, JobStopOptionalParams)

Stop the job identified by jobName.

stop(string, string, string, JobStopOptionalParams, ServiceCallback<void>)
stop(string, string, string, ServiceCallback<void>)
suspend(string, string, string, JobSuspendOptionalParams)

Suspend the job identified by job name.

suspend(string, string, string, JobSuspendOptionalParams, ServiceCallback<void>)
suspend(string, string, string, ServiceCallback<void>)

Constructor Details

JobOperations(AutomationClientContext)

Create a JobOperations.

new JobOperations(client: AutomationClientContext)

Parameters

client
AutomationClientContext

Reference to the service client.

Method Details

create(string, string, string, JobCreateParameters, JobCreateOptionalParams)

Create a job of the runbook.

function create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: JobCreateParameters, options?: JobCreateOptionalParams): Promise<JobCreateResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

parameters
JobCreateParameters

The parameters supplied to the create job operation.

options
JobCreateOptionalParams

The optional parameters

Returns

Promise<Models.JobCreateResponse>

create(string, string, string, JobCreateParameters, JobCreateOptionalParams, ServiceCallback<Job>)

function create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: JobCreateParameters, options: JobCreateOptionalParams, callback: ServiceCallback<Job>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

parameters
JobCreateParameters

The parameters supplied to the create job operation.

options
JobCreateOptionalParams

The optional parameters

callback

ServiceCallback<Job>

The callback

create(string, string, string, JobCreateParameters, ServiceCallback<Job>)

function create(resourceGroupName: string, automationAccountName: string, jobName: string, parameters: JobCreateParameters, callback: ServiceCallback<Job>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

parameters
JobCreateParameters

The parameters supplied to the create job operation.

callback

ServiceCallback<Job>

The callback

get(string, string, string, JobGetOptionalParams)

Retrieve the job identified by job name.

function get(resourceGroupName: string, automationAccountName: string, jobName: string, options?: JobGetOptionalParams): Promise<JobGetResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

options
JobGetOptionalParams

The optional parameters

Returns

Promise<JobGetResponse>

Promise<Models.JobGetResponse>

get(string, string, string, JobGetOptionalParams, ServiceCallback<Job>)

function get(resourceGroupName: string, automationAccountName: string, jobName: string, options: JobGetOptionalParams, callback: ServiceCallback<Job>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

options
JobGetOptionalParams

The optional parameters

callback

ServiceCallback<Job>

The callback

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

function get(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback<Job>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

callback

ServiceCallback<Job>

The callback

getOutput(string, string, string, JobGetOutputOptionalParams)

Retrieve the job output identified by job name.

function getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options?: JobGetOutputOptionalParams): Promise<JobGetOutputResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The name of the job to be created.

options
JobGetOutputOptionalParams

The optional parameters

Returns

Promise<Models.JobGetOutputResponse>

getOutput(string, string, string, JobGetOutputOptionalParams, ServiceCallback<void>)

function getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, options: JobGetOutputOptionalParams, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The name of the job to be created.

options
JobGetOutputOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

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

function getOutput(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The name of the job to be created.

callback

ServiceCallback<void>

The callback

getRunbookContent(string, string, string, JobGetRunbookContentOptionalParams)

Retrieve the runbook content of the job identified by job name.

function getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options?: JobGetRunbookContentOptionalParams): Promise<JobGetRunbookContentResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

options
JobGetRunbookContentOptionalParams

The optional parameters

Returns

Promise<Models.JobGetRunbookContentResponse>

getRunbookContent(string, string, string, JobGetRunbookContentOptionalParams, ServiceCallback<void>)

function getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, options: JobGetRunbookContentOptionalParams, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

options
JobGetRunbookContentOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

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

function getRunbookContent(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

callback

ServiceCallback<void>

The callback

listByAutomationAccount(string, string, JobListByAutomationAccountOptionalParams)

Retrieve a list of jobs.

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: JobListByAutomationAccountOptionalParams): Promise<JobListByAutomationAccountResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

options
JobListByAutomationAccountOptionalParams

The optional parameters

Returns

Promise<Models.JobListByAutomationAccountResponse>

listByAutomationAccount(string, string, JobListByAutomationAccountOptionalParams, ServiceCallback<JobListResultV2>)

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: JobListByAutomationAccountOptionalParams, callback: ServiceCallback<JobListResultV2>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

options
JobListByAutomationAccountOptionalParams

The optional parameters

callback

ServiceCallback<JobListResultV2>

The callback

listByAutomationAccount(string, string, ServiceCallback<JobListResultV2>)

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback<JobListResultV2>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

callback

ServiceCallback<JobListResultV2>

The callback

listByAutomationAccountNext(string, JobListByAutomationAccountNextOptionalParams)

Retrieve a list of jobs.

function listByAutomationAccountNext(nextPageLink: string, options?: JobListByAutomationAccountNextOptionalParams): Promise<JobListByAutomationAccountNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
JobListByAutomationAccountNextOptionalParams

The optional parameters

Returns

Promise<Models.JobListByAutomationAccountNextResponse>

listByAutomationAccountNext(string, JobListByAutomationAccountNextOptionalParams, ServiceCallback<JobListResultV2>)

function listByAutomationAccountNext(nextPageLink: string, options: JobListByAutomationAccountNextOptionalParams, callback: ServiceCallback<JobListResultV2>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
JobListByAutomationAccountNextOptionalParams

The optional parameters

callback

ServiceCallback<JobListResultV2>

The callback

listByAutomationAccountNext(string, ServiceCallback<JobListResultV2>)

function listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback<JobListResultV2>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<JobListResultV2>

The callback

resume(string, string, string, JobResumeOptionalParams)

Resume the job identified by jobName.

function resume(resourceGroupName: string, automationAccountName: string, jobName: string, options?: JobResumeOptionalParams): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

options
JobResumeOptionalParams

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

resume(string, string, string, JobResumeOptionalParams, ServiceCallback<void>)

function resume(resourceGroupName: string, automationAccountName: string, jobName: string, options: JobResumeOptionalParams, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

options
JobResumeOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

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

function resume(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

callback

ServiceCallback<void>

The callback

stop(string, string, string, JobStopOptionalParams)

Stop the job identified by jobName.

function stop(resourceGroupName: string, automationAccountName: string, jobName: string, options?: JobStopOptionalParams): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

options
JobStopOptionalParams

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

stop(string, string, string, JobStopOptionalParams, ServiceCallback<void>)

function stop(resourceGroupName: string, automationAccountName: string, jobName: string, options: JobStopOptionalParams, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

options
JobStopOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

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

function stop(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

callback

ServiceCallback<void>

The callback

suspend(string, string, string, JobSuspendOptionalParams)

Suspend the job identified by job name.

function suspend(resourceGroupName: string, automationAccountName: string, jobName: string, options?: JobSuspendOptionalParams): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

options
JobSuspendOptionalParams

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

suspend(string, string, string, JobSuspendOptionalParams, ServiceCallback<void>)

function suspend(resourceGroupName: string, automationAccountName: string, jobName: string, options: JobSuspendOptionalParams, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

options
JobSuspendOptionalParams

The optional parameters

callback

ServiceCallback<void>

The callback

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

function suspend(resourceGroupName: string, automationAccountName: string, jobName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

jobName

string

The job name.

callback

ServiceCallback<void>

The callback