다음을 통해 공유


NatRulesOperationsExtensions.ListByVpnGatewayAsync Method

Definition

Retrieves all nat rules for a particular virtual wan vpn gateway.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.VpnGatewayNatRule>> ListByVpnGatewayAsync (this Microsoft.Azure.Management.Network.INatRulesOperations operations, string resourceGroupName, string gatewayName, System.Threading.CancellationToken cancellationToken = default);
static member ListByVpnGatewayAsync : Microsoft.Azure.Management.Network.INatRulesOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Models.VpnGatewayNatRule>>
<Extension()>
Public Function ListByVpnGatewayAsync (operations As INatRulesOperations, resourceGroupName As String, gatewayName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of VpnGatewayNatRule))

Parameters

operations
INatRulesOperations

The operations group for this extension method.

resourceGroupName
String

The resource group name of the VpnGateway.

gatewayName
String

The name of the gateway.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to