Share via


IotHubResourceOperationsExtensions.GetEventHubConsumerGroupAsync Method

Definition

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.IotHub.Models.EventHubConsumerGroupInfo> GetEventHubConsumerGroupAsync (this Microsoft.Azure.Management.IotHub.IIotHubResourceOperations operations, string resourceGroupName, string resourceName, string eventHubEndpointName, string name, System.Threading.CancellationToken cancellationToken = default);
static member GetEventHubConsumerGroupAsync : Microsoft.Azure.Management.IotHub.IIotHubResourceOperations * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.IotHub.Models.EventHubConsumerGroupInfo>
<Extension()>
Public Function GetEventHubConsumerGroupAsync (operations As IIotHubResourceOperations, resourceGroupName As String, resourceName As String, eventHubEndpointName As String, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of EventHubConsumerGroupInfo)

Parameters

operations
IIotHubResourceOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group that contains the IoT hub.

resourceName
String

The name of the IoT hub.

eventHubEndpointName
String

The name of the Event Hub-compatible endpoint in the IoT hub.

name
String

The name of the consumer group to retrieve.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Get a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.

Applies to