IVirtualNetworkGatewaysOperations.BeginGetAdvertisedRoutesWithHttpMessagesAsync(String, String, String, Dictionary<String,List<String>>, CancellationToken) IVirtualNetworkGatewaysOperations.BeginGetAdvertisedRoutesWithHttpMessagesAsync(String, String, String, Dictionary<String,List<String>>, CancellationToken) Method

Definition

This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Network.Fluent.Models.GatewayRouteListResultInner>> BeginGetAdvertisedRoutesWithHttpMessagesAsync (string resourceGroupName, string virtualNetworkGatewayName, string peer, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
abstract member BeginGetAdvertisedRoutesWithHttpMessagesAsync : string * string * string * 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.GatewayRouteListResultInner>>

Parameters

resourceGroupName
String String

The name of the resource group.

virtualNetworkGatewayName
String String

The name of the virtual network gateway.

peer
String String

The IP address of the peer

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Task<Microsoft.Rest.Azure.AzureOperationResponse<GatewayRouteListResultInner>>

Exceptions

Microsoft.Rest.Azure.CloudException Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException Microsoft.Rest.ValidationException

Thrown when a required parameter is null

Applies to