Share via


MockableVirtualEnclavesSubscriptionResource.GetVirtualEnclaveTransitHubs Method

Definition

List TransitHubResource resources by subscription ID

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Mission/communities/{communityName}/transitHubs
  • Operation Id: TransitHubResource_ListBySubscription
  • Default Api Version: 2025-05-01-preview
  • Resource: VirtualEnclaveTransitHubResource
public virtual Azure.Pageable<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveTransitHubResource> GetVirtualEnclaveTransitHubs(string communityName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualEnclaveTransitHubs : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveTransitHubResource>
override this.GetVirtualEnclaveTransitHubs : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveTransitHubResource>
Public Overridable Function GetVirtualEnclaveTransitHubs (communityName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualEnclaveTransitHubResource)

Parameters

communityName
String

The name of the communityResource Resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

communityName is an empty string, and was expected to be non-empty.

communityName is null.

Applies to