Share via


ExpressRoutePortCollection.CreateOrUpdate Method

Definition

Creates or updates the specified ExpressRoutePort resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}
  • Operation Id: ExpressRoutePorts_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ExpressRoutePortResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string expressRoutePortName, Azure.ResourceManager.Network.ExpressRoutePortData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.ExpressRoutePortData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ExpressRoutePortResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.ExpressRoutePortData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ExpressRoutePortResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, expressRoutePortName As String, data As ExpressRoutePortData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ExpressRoutePortResource)

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.

expressRoutePortName
String

The name of the ExpressRoutePort resource.

data
ExpressRoutePortData

Parameters supplied to the create ExpressRoutePort operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

expressRoutePortName or data is null.

Applies to