Delen via


EventHubsExtensions.GetEventHubsClusters Method

Definition

Overloads

GetEventHubsClusters(ResourceGroupResource)

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

GetEventHubsClusters(SubscriptionResource, CancellationToken)

Lists the available Event Hubs Clusters within an ARM resource group

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.EventHub/clusters
  • Operation Id: Clusters_ListBySubscription
  • Default Api Version: 2024-01-01
  • Resource: EventHubsClusterResource

GetEventHubsClusters(ResourceGroupResource)

Source:
EventHubsExtensions.cs
Source:
EventHubsExtensions.cs

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

public static Azure.ResourceManager.EventHubs.EventHubsClusterCollection GetEventHubsClusters (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetEventHubsClusters : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.EventHubs.EventHubsClusterCollection
<Extension()>
Public Function GetEventHubsClusters (resourceGroupResource As ResourceGroupResource) As EventHubsClusterCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of EventHubsClusterResources and their operations over a EventHubsClusterResource.

Exceptions

resourceGroupResource is null.

Applies to

GetEventHubsClusters(SubscriptionResource, CancellationToken)

Source:
EventHubsExtensions.cs
Source:
EventHubsExtensions.cs

Lists the available Event Hubs Clusters within an ARM resource group

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.EventHub/clusters
  • Operation Id: Clusters_ListBySubscription
  • Default Api Version: 2024-01-01
  • Resource: EventHubsClusterResource
public static Azure.Pageable<Azure.ResourceManager.EventHubs.EventHubsClusterResource> GetEventHubsClusters (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetEventHubsClusters : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.EventHubs.EventHubsClusterResource>
<Extension()>
Public Function GetEventHubsClusters (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of EventHubsClusterResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to