你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WatcherOperations interface

表示 WatcherOperations 的接口。

方法

createOrUpdate(string, string, string, Watcher, WatcherCreateOrUpdateOptionalParams)

创建由观察程序名称标识的观察程序。

delete(string, string, string, WatcherDeleteOptionalParams)

按名称删除观察程序。

get(string, string, string, WatcherGetOptionalParams)

检索由观察程序名称标识的观察程序。

listByAutomationAccount(string, string, WatcherListByAutomationAccountOptionalParams)

检索观察程序列表。

start(string, string, string, WatcherStartOptionalParams)

恢复由观察程序名称标识的观察程序。

stop(string, string, string, WatcherStopOptionalParams)

恢复由观察程序名称标识的观察程序。

update(string, string, string, WatcherUpdateParameters, WatcherUpdateOptionalParams)

更新由观察程序名称标识的观察程序。

方法详细信息

createOrUpdate(string, string, string, Watcher, WatcherCreateOrUpdateOptionalParams)

创建由观察程序名称标识的观察程序。

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

watcherName

string

观察程序名称。

parameters
Watcher

观察程序的创建或更新参数。

options
WatcherCreateOrUpdateOptionalParams

选项参数。

返回

Promise<Watcher>

delete(string, string, string, WatcherDeleteOptionalParams)

按名称删除观察程序。

function delete(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: WatcherDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

watcherName

string

观察程序名称。

options
WatcherDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, WatcherGetOptionalParams)

检索由观察程序名称标识的观察程序。

function get(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: WatcherGetOptionalParams): Promise<Watcher>

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

watcherName

string

观察程序名称。

options
WatcherGetOptionalParams

选项参数。

返回

Promise<Watcher>

listByAutomationAccount(string, string, WatcherListByAutomationAccountOptionalParams)

检索观察程序列表。

function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: WatcherListByAutomationAccountOptionalParams): PagedAsyncIterableIterator<Watcher, Watcher[], PageSettings>

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

返回

start(string, string, string, WatcherStartOptionalParams)

恢复由观察程序名称标识的观察程序。

function start(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: WatcherStartOptionalParams): Promise<void>

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

watcherName

string

观察程序名称。

options
WatcherStartOptionalParams

选项参数。

返回

Promise<void>

stop(string, string, string, WatcherStopOptionalParams)

恢复由观察程序名称标识的观察程序。

function stop(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: WatcherStopOptionalParams): Promise<void>

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

watcherName

string

观察程序名称。

options
WatcherStopOptionalParams

选项参数。

返回

Promise<void>

update(string, string, string, WatcherUpdateParameters, WatcherUpdateOptionalParams)

更新由观察程序名称标识的观察程序。

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

参数

resourceGroupName

string

Azure 资源组的名称。

automationAccountName

string

自动化帐户的名称。

watcherName

string

观察程序名称。

parameters
WatcherUpdateParameters

观察程序的更新参数。

options
WatcherUpdateOptionalParams

选项参数。

返回

Promise<Watcher>