다음을 통해 공유


NetworkExtensions.GetVirtualHubs Method

Definition

Overloads

GetVirtualHubs(ResourceGroupResource)

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

GetVirtualHubs(SubscriptionResource, CancellationToken)

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

GetVirtualHubs(ResourceGroupResource)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of VirtualHubResources and their operations over a VirtualHubResource.

Exceptions

resourceGroupResource is null.

Applies to

GetVirtualHubs(SubscriptionResource, CancellationToken)

Source:
NetworkExtensions.cs
Source:
NetworkExtensions.cs

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to