共用方式為


NetworkExtensions.GetExpressRouteGateways Method

Definition

Overloads

GetExpressRouteGateways(ResourceGroupResource)

Gets a collection of ExpressRouteGatewayResources in the ResourceGroupResource. MockingTo mock this method, please mock GetExpressRouteGateways() instead.

GetExpressRouteGateways(SubscriptionResource, CancellationToken)

Lists ExpressRoute gateways under a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteGateways
  • Operation Id: ExpressRouteGateways_ListBySubscription
  • Default Api Version: 2024-03-01
  • Resource: ExpressRouteGatewayResource

GetExpressRouteGateways(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Gets a collection of ExpressRouteGatewayResources in the ResourceGroupResource. MockingTo mock this method, please mock GetExpressRouteGateways() instead.

public static Azure.ResourceManager.Network.ExpressRouteGatewayCollection GetExpressRouteGateways (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetExpressRouteGateways : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Network.ExpressRouteGatewayCollection
<Extension()>
Public Function GetExpressRouteGateways (resourceGroupResource As ResourceGroupResource) As ExpressRouteGatewayCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ExpressRouteGatewayResources and their operations over a ExpressRouteGatewayResource.

Exceptions

resourceGroupResource is null.

Applies to

GetExpressRouteGateways(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

Lists ExpressRoute gateways under a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteGateways
  • Operation Id: ExpressRouteGateways_ListBySubscription
  • Default Api Version: 2024-03-01
  • Resource: ExpressRouteGatewayResource
public static Azure.Pageable<Azure.ResourceManager.Network.ExpressRouteGatewayResource> GetExpressRouteGateways (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetExpressRouteGateways : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Network.ExpressRouteGatewayResource>
<Extension()>
Public Function GetExpressRouteGateways (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ExpressRouteGatewayResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ExpressRouteGatewayResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to