IotHubResourceOperationsExtensions.GetEventHubConsumerGroupAsync(IIotHubResourceOperations, String, String, String, String, CancellationToken) 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 = null);
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>

Parameters

operations
IIotHubResourceOperations

The operations group for this extension method.

resourceGroupName
System.String

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

resourceName
System.String

The name of the IoT hub.

eventHubEndpointName
System.String

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

name
System.String

The name of the consumer group to retrieve.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<EventHubConsumerGroupInfo>

Remarks

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

Applies to