WatcherOperations class
Class representing a WatcherOperations.
Constructors
Watcher |
Create a WatcherOperations. |
Methods
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<WatcherCreateOrUpdateResponse>
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
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
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<WatcherGetResponse>
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
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
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
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.
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.
The optional parameters
- callback
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
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
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<WatcherUpdateResponse>
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
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
The callback