Dela via


NetworkExtensions.GetExpressRoutePorts Method

Definition

Overloads

GetExpressRoutePorts(ResourceGroupResource)

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

GetExpressRoutePorts(SubscriptionResource, CancellationToken)

List all the ExpressRoutePort resources in the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts
  • Operation Id: ExpressRoutePorts_List
  • Default Api Version: 2024-03-01
  • Resource: ExpressRoutePortResource

GetExpressRoutePorts(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ExpressRoutePortResources and their operations over a ExpressRoutePortResource.

Exceptions

resourceGroupResource is null.

Applies to

GetExpressRoutePorts(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

List all the ExpressRoutePort resources in the specified subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to