Język

ServiceDiagnosticSettingResource.CreateOrUpdateAsync Method

Definition

Create or update new diagnostic settings for the specified resource. WARNING: This method will be deprecated in future releases.

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

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

data
ServiceDiagnosticSettingData

Parameters supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to