JobOperations class
Class representing a JobOperations.
Constructors
Job |
Create a JobOperations. |
Methods
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<JobCreateResponse>
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
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
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
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
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<JobGetOutputResponse>
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.
The optional parameters
Returns
Promise<JobGetRunbookContentResponse>
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.
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.
The optional parameters
Returns
Promise<JobListByAutomationAccountResponse>
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.
The optional parameters
- callback
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
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.
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.
The optional parameters
- callback
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
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