Compartir a través de


AutomationAccountResource.GetAutomationWatcher 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 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)

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