Share via


DataCollectionEndpointCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a data collection endpoint.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}
  • Operation Id: DataCollectionEndpoints_Create
  • Default Api Version: 2022-06-01
  • Resource: DataCollectionEndpointResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DataCollectionEndpointResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string dataCollectionEndpointName, Azure.ResourceManager.Monitor.DataCollectionEndpointData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.DataCollectionEndpointData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DataCollectionEndpointResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.DataCollectionEndpointData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DataCollectionEndpointResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, dataCollectionEndpointName As String, data As DataCollectionEndpointData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DataCollectionEndpointResource))

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.

dataCollectionEndpointName
String

The name of the data collection endpoint. The name is case insensitive.

data
DataCollectionEndpointData

The payload.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

dataCollectionEndpointName or data is null.

Applies to