WatcherOperations class

Class representing a WatcherOperations.

Constructors

WatcherOperations(AutomationClientContext)

Create a WatcherOperations.

Methods

createOrUpdate(string, string, string, Watcher, RequestOptionsBase)

Create the watcher identified by watcher name.

createOrUpdate(string, string, string, Watcher, RequestOptionsBase, ServiceCallback<Watcher>)
createOrUpdate(string, string, string, Watcher, ServiceCallback<Watcher>)
deleteMethod(string, string, string, RequestOptionsBase)

Delete the watcher by name.

deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, string, ServiceCallback<void>)
get(string, string, string, RequestOptionsBase)

Retrieve the watcher identified by watcher name.

get(string, string, string, RequestOptionsBase, ServiceCallback<Watcher>)
get(string, string, string, ServiceCallback<Watcher>)
listByAutomationAccount(string, string, ServiceCallback<WatcherListResult>)
listByAutomationAccount(string, string, WatcherListByAutomationAccountOptionalParams)

Retrieve a list of watchers.

listByAutomationAccount(string, string, WatcherListByAutomationAccountOptionalParams, ServiceCallback<WatcherListResult>)
listByAutomationAccountNext(string, RequestOptionsBase)

Retrieve a list of watchers.

listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<WatcherListResult>)
listByAutomationAccountNext(string, ServiceCallback<WatcherListResult>)
start(string, string, string, RequestOptionsBase)

Resume the watcher identified by watcher name.

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

Resume the watcher identified by watcher name.

stop(string, string, string, RequestOptionsBase, ServiceCallback<void>)
stop(string, string, string, ServiceCallback<void>)
update(string, string, string, WatcherUpdateParameters, RequestOptionsBase)

Update the watcher identified by watcher name.

update(string, string, string, WatcherUpdateParameters, RequestOptionsBase, ServiceCallback<Watcher>)
update(string, string, string, WatcherUpdateParameters, ServiceCallback<Watcher>)

Constructor Details

WatcherOperations(AutomationClientContext)

Create a WatcherOperations.

new WatcherOperations(client: AutomationClientContext)

Parameters

client
AutomationClientContext

Reference to the service client.

Method Details

createOrUpdate(string, string, string, Watcher, RequestOptionsBase)

Create the watcher identified by watcher name.

function createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Watcher, options?: RequestOptionsBase): Promise<WatcherCreateOrUpdateResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

parameters
Watcher

The create or update parameters for watcher.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WatcherCreateOrUpdateResponse>

createOrUpdate(string, string, string, Watcher, RequestOptionsBase, ServiceCallback<Watcher>)

function createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Watcher, options: RequestOptionsBase, callback: ServiceCallback<Watcher>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

parameters
Watcher

The create or update parameters for watcher.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Watcher>

The callback

createOrUpdate(string, string, string, Watcher, ServiceCallback<Watcher>)

function createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Watcher, callback: ServiceCallback<Watcher>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

parameters
Watcher

The create or update parameters for watcher.

callback

ServiceCallback<Watcher>

The callback

deleteMethod(string, string, string, RequestOptionsBase)

Delete the watcher by name.

function deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

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

function deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

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

function deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

callback

ServiceCallback<void>

The callback

get(string, string, string, RequestOptionsBase)

Retrieve the watcher identified by watcher name.

function get(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: RequestOptionsBase): Promise<WatcherGetResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WatcherGetResponse>

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

function get(resourceGroupName: string, automationAccountName: string, watcherName: string, options: RequestOptionsBase, callback: ServiceCallback<Watcher>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Watcher>

The callback

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

function get(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback<Watcher>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

callback

ServiceCallback<Watcher>

The callback

listByAutomationAccount(string, string, ServiceCallback<WatcherListResult>)

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

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

callback

ServiceCallback<WatcherListResult>

The callback

listByAutomationAccount(string, string, WatcherListByAutomationAccountOptionalParams)

Retrieve a list of watchers.

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: WatcherListByAutomationAccountOptionalParams): Promise<WatcherListByAutomationAccountResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

options
WatcherListByAutomationAccountOptionalParams

The optional parameters

Returns

Promise<Models.WatcherListByAutomationAccountResponse>

listByAutomationAccount(string, string, WatcherListByAutomationAccountOptionalParams, ServiceCallback<WatcherListResult>)

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: WatcherListByAutomationAccountOptionalParams, callback: ServiceCallback<WatcherListResult>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

options
WatcherListByAutomationAccountOptionalParams

The optional parameters

callback

ServiceCallback<WatcherListResult>

The callback

listByAutomationAccountNext(string, RequestOptionsBase)

Retrieve a list of watchers.

function listByAutomationAccountNext(nextPageLink: string, options?: RequestOptionsBase): Promise<WatcherListByAutomationAccountNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WatcherListByAutomationAccountNextResponse>

listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<WatcherListResult>)

function listByAutomationAccountNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<WatcherListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<WatcherListResult>

The callback

listByAutomationAccountNext(string, ServiceCallback<WatcherListResult>)

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

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<WatcherListResult>

The callback

start(string, string, string, RequestOptionsBase)

Resume the watcher identified by watcher name.

function start(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

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

function start(resourceGroupName: string, automationAccountName: string, watcherName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

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

function start(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

callback

ServiceCallback<void>

The callback

stop(string, string, string, RequestOptionsBase)

Resume the watcher identified by watcher name.

function stop(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

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

function stop(resourceGroupName: string, automationAccountName: string, watcherName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

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

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

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

callback

ServiceCallback<void>

The callback

update(string, string, string, WatcherUpdateParameters, RequestOptionsBase)

Update the watcher identified by watcher name.

function update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: WatcherUpdateParameters, options?: RequestOptionsBase): Promise<WatcherUpdateResponse>

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

parameters
WatcherUpdateParameters

The update parameters for watcher.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.WatcherUpdateResponse>

update(string, string, string, WatcherUpdateParameters, RequestOptionsBase, ServiceCallback<Watcher>)

function update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: WatcherUpdateParameters, options: RequestOptionsBase, callback: ServiceCallback<Watcher>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

parameters
WatcherUpdateParameters

The update parameters for watcher.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<Watcher>

The callback

update(string, string, string, WatcherUpdateParameters, ServiceCallback<Watcher>)

function update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: WatcherUpdateParameters, callback: ServiceCallback<Watcher>)

Parameters

resourceGroupName

string

Name of an Azure Resource group.

automationAccountName

string

The name of the automation account.

watcherName

string

The watcher name.

parameters
WatcherUpdateParameters

The update parameters for watcher.

callback

ServiceCallback<Watcher>

The callback