Share via


ElasticMonitorResource.UpdateAsync Method

Definition

Update a monitor resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}
  • Operation Id: Monitors_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Elastic.ElasticMonitorResource>> UpdateAsync (Azure.ResourceManager.Elastic.Models.ElasticMonitorResourcePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Elastic.Models.ElasticMonitorResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Elastic.ElasticMonitorResource>>
override this.UpdateAsync : Azure.ResourceManager.Elastic.Models.ElasticMonitorResourcePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Elastic.ElasticMonitorResource>>
Public Overridable Function UpdateAsync (patch As ElasticMonitorResourcePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ElasticMonitorResource))

Parameters

patch
ElasticMonitorResourcePatch

Elastic resource model update parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to