Share via


AzureTrafficCollectorCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a Azure Traffic Collector resource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkFunction/azureTrafficCollectors/{azureTrafficCollectorName}
  • Operation Id: AzureTrafficCollectors_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkFunction.AzureTrafficCollectorResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string azureTrafficCollectorName, Azure.ResourceManager.NetworkFunction.AzureTrafficCollectorData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetworkFunction.AzureTrafficCollectorData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkFunction.AzureTrafficCollectorResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetworkFunction.AzureTrafficCollectorData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetworkFunction.AzureTrafficCollectorResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, azureTrafficCollectorName As String, data As AzureTrafficCollectorData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of AzureTrafficCollectorResource))

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.

azureTrafficCollectorName
String

Azure Traffic Collector name.

data
AzureTrafficCollectorData

The parameters to provide for the created Azure Traffic Collector.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

azureTrafficCollectorName or data is null.

Applies to