Share via


MockableNetworkSubscriptionResource.GetVirtualRoutersAsync Method

Definition

Gets all the Virtual Routers in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualRouters
  • Operation Id: VirtualRouters_List
  • Default Api Version: 2024-03-01
  • Resource: VirtualRouterResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Network.VirtualRouterResource> GetVirtualRoutersAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualRoutersAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.VirtualRouterResource>
override this.GetVirtualRoutersAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Network.VirtualRouterResource>
Public Overridable Function GetVirtualRoutersAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of VirtualRouterResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to