Condividi tramite


EventHubConsumerGroupInfoCollection.GetAllAsync(CancellationToken) Method

Definition

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups
  • Operation Id: IotHubResource_ListEventHubConsumerGroups
  • Default Api Version: 2023-06-30
  • Resource: EventHubConsumerGroupInfoResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.IotHub.EventHubConsumerGroupInfoResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.IotHub.EventHubConsumerGroupInfoResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.IotHub.EventHubConsumerGroupInfoResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of EventHubConsumerGroupInfoResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to