다음을 통해 공유


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