Dela via


DataCollectionEndpointCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DataCollectionEndpointResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string dataCollectionEndpointName, Azure.ResourceManager.Monitor.DataCollectionEndpointData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.DataCollectionEndpointData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DataCollectionEndpointResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.DataCollectionEndpointData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.DataCollectionEndpointResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, dataCollectionEndpointName As String, data As DataCollectionEndpointData, Optional cancellationToken As CancellationToken = Nothing) As 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