Iot Hub Resource - Create Event Hub Consumer Group
Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}?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 in the IoT hub. |
|
name
|
path | True |
|
The name of the consumer group to add. |
|
api-version
|
query | True |
|
The version of the API. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
This is a synchronous operation. |
|
| Other Status Codes |
DefaultErrorResponse |
Definitions
| ErrorDetails | |
| EventHubConsumerGroupInfo |
| Name | Type | Description |
|---|---|---|
| Code |
|
The error code. |
| Details |
|
The error details. |
| HttpStatusCode |
|
The HTTP status code. |
| Message |
|
The error message. |
| Name | Type | Description |
|---|---|---|
| id |
|
The Event Hub-compatible consumer group identifier. |
| name |
|
The Event Hub-compatible consumer group name. |
| tags |
|
The tags. |