Partilhar via


AutomationAccountResource.GetAutomationWatcherAsync Método

Definição

Recupere o observador identificado pelo nome do observador.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}
  • Operação IdWatcher_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource>> GetAutomationWatcherAsync (string watcherName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAutomationWatcherAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource>>
override this.GetAutomationWatcherAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource>>
Public Overridable Function GetAutomationWatcherAsync (watcherName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AutomationWatcherResource))

Parâmetros

watcherName
String

O nome do observador.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

watcherName é uma cadeia de caracteres vazia e era esperado que não estivesse vazio.

watcherName é nulo.

Aplica-se a