Share via


SubscriptionNetworkManagerConnectionCollection.CreateOrUpdateAsync Method

Definition

Create a network manager connection on this subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}
  • Operation Id: SubscriptionNetworkManagerConnections_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: SubscriptionNetworkManagerConnectionResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.SubscriptionNetworkManagerConnectionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string networkManagerConnectionName, Azure.ResourceManager.Network.NetworkManagerConnectionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkManagerConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.SubscriptionNetworkManagerConnectionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkManagerConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.SubscriptionNetworkManagerConnectionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, networkManagerConnectionName As String, data As NetworkManagerConnectionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SubscriptionNetworkManagerConnectionResource))

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.

networkManagerConnectionName
String

Name for the network manager connection.

data
NetworkManagerConnectionData

Network manager connection to be created/updated.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

networkManagerConnectionName or data is null.

Applies to