Iot Hub Resource - List Event Hub Consumer Groups
Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups?api-version={api-version}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
subscriptionId
|
path | True |
|
The subscription identifier. |
|
resourceGroupName
|
path | True |
|
The name of the resource group that contains the IoT hub. |
|
resourceName
|
path | True |
|
The name of the IoT hub. |
|
eventHubEndpointName
|
path | True |
|
The name of the Event Hub-compatible endpoint. |
|
api-version
|
query | True |
|
The version of the API. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
This is a synchronous operation. The body contains a JSON-serialized list of the consumer groups in the the Event Hub-compatible endpoint in this IoT hub |
|
| Other Status Codes |
DefaultErrorResponse |
Definitions
| ErrorDetails | |
| EventHubConsumerGroupsListResult |
| Name | Type | Description |
|---|---|---|
| Code |
|
The error code. |
| Details |
|
The error details. |
| HttpStatusCode |
|
The HTTP status code. |
| Message |
|
The error message. |
| Name | Type | Description |
|---|---|---|
| nextLink |
|
The next link. |
| value |
|
The array of Event Hub-compatible consumer group names. |