Compartir a través de


AutomationAccountResource.GetAutomationWatcherAsync Método

Definición

Recupere el monitor identificado por el nombre del monitor.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}
  • IdWatcher_Get de operación
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

Nombre del monitor.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

watcherName es una cadena vacía y se espera que no esté vacía.

watcherName es null.

Se aplica a