次の方法で共有


AutomationAccountResource.GetAutomationWatcher メソッド

定義

ウォッチャー名で識別されるウォッチャーを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}
  • 操作IdWatcher_Get
public virtual Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource> GetAutomationWatcher (string watcherName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAutomationWatcher : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource>
override this.GetAutomationWatcher : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource>
Public Overridable Function GetAutomationWatcher (watcherName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AutomationWatcherResource)

パラメーター

watcherName
String

ウォッチャー名。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

watcherName は空の文字列であり、空でないと想定されていました。

watcherName が null です。

適用対象