Język

ServiceDiagnosticSettingResource.UpdateAsync Method

Definition

Updates an existing ServiceDiagnosticSettingsResource. To update other fields use the CreateOrUpdate method. WARNING: This method will be deprecated in future releases.

  • Request Path. : /{resourceUri}/providers/microsoft.insights/diagnosticSettings/service.
  • Operation Id. : ServiceDiagnosticSettingsResources_Update.
  • Default Api Version. : 2016-09-01.
  • Resource. : ServiceDiagnosticSettingResource.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.ServiceDiagnosticSettingResource>> UpdateAsync(Azure.ResourceManager.Monitor.Models.ServiceDiagnosticSettingPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Monitor.Models.ServiceDiagnosticSettingPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.ServiceDiagnosticSettingResource>>
override this.UpdateAsync : Azure.ResourceManager.Monitor.Models.ServiceDiagnosticSettingPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.ServiceDiagnosticSettingResource>>
Public Overridable Function UpdateAsync (patch As ServiceDiagnosticSettingPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceDiagnosticSettingResource))

Parameters

patch
ServiceDiagnosticSettingPatch

Parameters supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to