Sdílet prostřednictvím


ExpressRoutePortCollection.CreateOrUpdateAsync 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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ExpressRoutePortResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string expressRoutePortName, Azure.ResourceManager.Network.ExpressRoutePortData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.ExpressRoutePortData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ExpressRoutePortResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.ExpressRoutePortData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ExpressRoutePortResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, expressRoutePortName As String, data As ExpressRoutePortData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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