Freigeben über


AutomationWatcherResource.UpdateAsync Methode

Definition

Aktualisieren Sie den watcher, der durch den Namen des Watchers identifiziert wird.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}
  • Vorgangs-IdWatcher_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource>> UpdateAsync (Azure.ResourceManager.Automation.Models.AutomationWatcherPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Automation.Models.AutomationWatcherPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource>>
override this.UpdateAsync : Azure.ResourceManager.Automation.Models.AutomationWatcherPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource>>
Public Overridable Function UpdateAsync (patch As AutomationWatcherPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AutomationWatcherResource))

Parameter

patch
AutomationWatcherPatch

Die Updateparameter für Watcher.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

patch ist NULL.

Gilt für: