Freigeben über


AutomationWatcherResource.Update 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 Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource> Update (Azure.ResourceManager.Automation.Models.AutomationWatcherPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.ResourceManager.Automation.Models.AutomationWatcherPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource>
override this.Update : Azure.ResourceManager.Automation.Models.AutomationWatcherPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Automation.AutomationWatcherResource>
Public Overridable Function Update (patch As AutomationWatcherPatch, Optional cancellationToken As CancellationToken = Nothing) As 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: