Share via


IExpressRoutePortsOperations.BeginCreateOrUpdateWithHttpMessagesAsync Method

Definition

Creates or updates the specified ExpressRoutePort resource.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Network.Fluent.Models.ExpressRoutePortInner>> BeginCreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string expressRoutePortName, Microsoft.Azure.Management.Network.Fluent.Models.ExpressRoutePortInner parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginCreateOrUpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Network.Fluent.Models.ExpressRoutePortInner * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Network.Fluent.Models.ExpressRoutePortInner>>
Public Function BeginCreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, expressRoutePortName As String, parameters As ExpressRoutePortInner, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ExpressRoutePortInner))

Parameters

resourceGroupName
String

The name of the resource group.

expressRoutePortName
String

The name of the ExpressRoutePort resource.

parameters
ExpressRoutePortInner

Parameters supplied to the create ExpressRoutePort operation.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to