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