共用方式為


NetworkExtensions.GetExpressRoutePortsAsync Method

Definition

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.AsyncPageable<Azure.ResourceManager.Network.ExpressRoutePortResource> GetExpressRoutePortsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetExpressRoutePortsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.ExpressRoutePortResource>
<Extension()>
Public Function GetExpressRoutePortsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ExpressRoutePortResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to