Compartilhar via


AutomationWatcherResource.UpdateAsync Método

Definição

Atualize o observador identificado pelo nome do observador.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}
  • Operação 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))

Parâmetros

patch
AutomationWatcherPatch

Os parâmetros de atualização para o observador.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

patch é nulo.

Aplica-se a