Dela via


LogProfileCollection.CreateOrUpdateAsync Method

Definition

Create or update a log profile in Azure Monitoring REST API.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}
  • Operation Id: LogProfiles_CreateOrUpdate
  • Default Api Version: 2016-03-01
  • Resource: LogProfileResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.LogProfileResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string logProfileName, Azure.ResourceManager.Monitor.LogProfileData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.LogProfileData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.LogProfileResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.LogProfileData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.LogProfileResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, logProfileName As String, data As LogProfileData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of LogProfileResource))

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.

logProfileName
String

The name of the log profile.

data
LogProfileData

Parameters supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

logProfileName is an empty string, and was expected to be non-empty.

logProfileName or data is null.

Applies to