Share via


NetworkTapCollection.CreateOrUpdateAsync Method

Definition

Creates a Network Tap.

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

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.

networkTapName
String

Name of the Network Tap.

data
NetworkTapData

Request payload.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

networkTapName or data is null.

Applies to