AutomationWatcherResource.Update Method

Definition

Update the watcher identified by watcher name.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}
  • Operation Id: Watcher_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)

Parameters

patch
AutomationWatcherPatch

The update parameters for watcher.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to