Sdílet prostřednictvím


ILoadBalancersOperations.SwapPublicIpAddressesWithHttpMessagesAsync Method

Definition

Swaps VIPs between two load balancers.

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

Parameters

location
String

The region where load balancers are located at.

parameters
LoadBalancerVipSwapRequest

Parameters that define which VIPs should be swapped.

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 a required parameter is null

Applies to