Share via


MockableNetworkSubscriptionResource.GetVirtualHubsAsync Method

Definition

Lists all the VirtualHubs in a subscription.

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

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to