WatcherOperations class
表示 WatcherOperations 的类。
构造函数
| Watcher |
创建 WatcherOperations。 |
方法
构造函数详细信息
WatcherOperations(AutomationClientContext)
创建 WatcherOperations。
new WatcherOperations(client: AutomationClientContext)
参数
- client
- AutomationClientContext
对服务客户端的引用。
方法详细信息
createOrUpdate(string, string, string, Watcher, RequestOptionsBase)
创建由观察程序名称标识的观察程序。
function createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Watcher, options?: RequestOptionsBase): Promise<WatcherCreateOrUpdateResponse>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- parameters
- Watcher
观察程序的创建或更新参数。
- options
- RequestOptionsBase
可选参数
返回
Promise<WatcherCreateOrUpdateResponse>
承诺<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>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- parameters
- Watcher
观察程序的创建或更新参数。
- options
- RequestOptionsBase
可选参数
- callback
回调
createOrUpdate(string, string, string, Watcher, ServiceCallback<Watcher>)
function createOrUpdate(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: Watcher, callback: ServiceCallback<Watcher>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- parameters
- Watcher
观察程序的创建或更新参数。
- callback
回调
deleteMethod(string, string, string, RequestOptionsBase)
按名称删除观察程序。
function deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: RequestOptionsBase): Promise<RestResponse>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<RestResponse>
承诺<msRest.RestResponse>
deleteMethod(string, string, string, RequestOptionsBase, ServiceCallback<void>)
function deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- options
- RequestOptionsBase
可选参数
- callback
-
ServiceCallback<void>
回调
deleteMethod(string, string, string, ServiceCallback<void>)
function deleteMethod(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- callback
-
ServiceCallback<void>
回调
get(string, string, string, RequestOptionsBase)
检索由观察程序名称标识的观察程序。
function get(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: RequestOptionsBase): Promise<WatcherGetResponse>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<WatcherGetResponse>
承诺<Models.WatcherGetResponse>
get(string, string, string, RequestOptionsBase, ServiceCallback<Watcher>)
function get(resourceGroupName: string, automationAccountName: string, watcherName: string, options: RequestOptionsBase, callback: ServiceCallback<Watcher>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- options
- RequestOptionsBase
可选参数
- callback
回调
get(string, string, string, ServiceCallback<Watcher>)
function get(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback<Watcher>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- callback
回调
listByAutomationAccount(string, string, ServiceCallback<WatcherListResult>)
function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, callback: ServiceCallback<WatcherListResult>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- callback
回调
listByAutomationAccount(string, string, WatcherListByAutomationAccountOptionalParams)
检索观察程序列表。
function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options?: WatcherListByAutomationAccountOptionalParams): Promise<WatcherListByAutomationAccountResponse>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
可选参数
返回
承诺<Models.WatcherListByAutomationAccountResponse>
listByAutomationAccount(string, string, WatcherListByAutomationAccountOptionalParams, ServiceCallback<WatcherListResult>)
function listByAutomationAccount(resourceGroupName: string, automationAccountName: string, options: WatcherListByAutomationAccountOptionalParams, callback: ServiceCallback<WatcherListResult>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
可选参数
- callback
回调
listByAutomationAccountNext(string, RequestOptionsBase)
检索观察程序列表。
function listByAutomationAccountNext(nextPageLink: string, options?: RequestOptionsBase): Promise<WatcherListByAutomationAccountNextResponse>
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
返回
承诺<Models.WatcherListByAutomationAccountNextResponse>
listByAutomationAccountNext(string, RequestOptionsBase, ServiceCallback<WatcherListResult>)
function listByAutomationAccountNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<WatcherListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
- callback
回调
listByAutomationAccountNext(string, ServiceCallback<WatcherListResult>)
function listByAutomationAccountNext(nextPageLink: string, callback: ServiceCallback<WatcherListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- callback
回调
start(string, string, string, RequestOptionsBase)
恢复由观察程序名称标识的观察程序。
function start(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: RequestOptionsBase): Promise<RestResponse>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<RestResponse>
承诺<msRest.RestResponse>
start(string, string, string, RequestOptionsBase, ServiceCallback<void>)
function start(resourceGroupName: string, automationAccountName: string, watcherName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- options
- RequestOptionsBase
可选参数
- callback
-
ServiceCallback<void>
回调
start(string, string, string, ServiceCallback<void>)
function start(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- callback
-
ServiceCallback<void>
回调
stop(string, string, string, RequestOptionsBase)
恢复由观察程序名称标识的观察程序。
function stop(resourceGroupName: string, automationAccountName: string, watcherName: string, options?: RequestOptionsBase): Promise<RestResponse>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<RestResponse>
承诺<msRest.RestResponse>
stop(string, string, string, RequestOptionsBase, ServiceCallback<void>)
function stop(resourceGroupName: string, automationAccountName: string, watcherName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- options
- RequestOptionsBase
可选参数
- callback
-
ServiceCallback<void>
回调
stop(string, string, string, ServiceCallback<void>)
function stop(resourceGroupName: string, automationAccountName: string, watcherName: string, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- callback
-
ServiceCallback<void>
回调
update(string, string, string, WatcherUpdateParameters, RequestOptionsBase)
更新由观察程序名称标识的观察程序。
function update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: WatcherUpdateParameters, options?: RequestOptionsBase): Promise<WatcherUpdateResponse>
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- parameters
- WatcherUpdateParameters
观察程序的更新参数。
- options
- RequestOptionsBase
可选参数
返回
Promise<WatcherUpdateResponse>
承诺<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>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- parameters
- WatcherUpdateParameters
观察程序的更新参数。
- options
- RequestOptionsBase
可选参数
- callback
回调
update(string, string, string, WatcherUpdateParameters, ServiceCallback<Watcher>)
function update(resourceGroupName: string, automationAccountName: string, watcherName: string, parameters: WatcherUpdateParameters, callback: ServiceCallback<Watcher>)
参数
- resourceGroupName
-
string
Azure 资源组的名称。
- automationAccountName
-
string
自动化帐户的名称。
- watcherName
-
string
观察程序名称。
- parameters
- WatcherUpdateParameters
观察程序的更新参数。
- callback
回调