Iot Hub Resource - Create Event Hub Consumer Group
Voeg een consumentengroep toe aan een event hub-compatibel eindpunt in een IoT-hub.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}?api-version=2023-06-30
URI-parameters
| Name | In | Vereist | Type | Description |
|---|---|---|---|---|
|
event
|
path | True |
string |
De naam van het event hub-compatibele eindpunt in de IoT-hub. |
|
name
|
path | True |
string |
De naam van de consumentengroep die moet worden toegevoegd. |
|
resource
|
path | True |
string |
De naam van de resourcegroep die de IoT-hub bevat. |
|
resource
|
path | True |
string |
De naam van de IoT-hub. |
|
subscription
|
path | True |
string |
De abonnement-ID. |
|
api-version
|
query | True |
string |
De versie van de API. |
Aanvraagbody
| Name | Vereist | Type | Description |
|---|---|---|---|
| properties | True |
De naam van de EventHub-consumentengroep. |
Antwoorden
| Name | Type | Description |
|---|---|---|
| 200 OK |
Dit is een synchrone bewerking. |
|
| Other Status Codes |
DefaultErrorResponse |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
| Name | Description |
|---|---|
| user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
IotHubResource_CreateEventHubConsumerGroup
Voorbeeldaanvraag
PUT https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/eventHubEndpoints/events/ConsumerGroups/test?api-version=2023-06-30
{
"properties": {
"name": "test"
}
}
Voorbeeldrespons
{
"properties": {
"created": "Thu, 15 Jun 2017 19:20:58 GMT"
},
"id": "/subscriptions/cmd-sub-1/resourceGroups/cmd-rg-1/providers/Microsoft.Devices/IotHubs/test-hub-2/eventHubEndpoints/events/ConsumerGroups/%24Default",
"name": "test",
"type": "Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups",
"etag": "AAAAAAFD6M4="
}
Definities
| Name | Description |
|---|---|
|
Error |
Foutdetails. |
|
Event |
De EventHub-consumentengroep. |
|
Event |
De eigenschappen van het Object EventHubConsumerGroupInfo. |
|
Event |
De naam van de EventHub-consumentengroep. |
ErrorDetails
Foutdetails.
| Name | Type | Description |
|---|---|---|
| code |
string |
De foutcode. |
| details |
string |
De foutdetails. |
| httpStatusCode |
string |
De HTTP-statuscode. |
| message |
string |
Het foutbericht. |
EventHubConsumerGroupBodyDescription
De EventHub-consumentengroep.
| Name | Type | Description |
|---|---|---|
| properties |
De naam van de EventHub-consumentengroep. |
EventHubConsumerGroupInfo
De eigenschappen van het Object EventHubConsumerGroupInfo.
| Name | Type | Description |
|---|---|---|
| etag |
string |
De etag. |
| id |
string |
De event hub-compatibele consumentengroep-id. |
| name |
string |
De naam van de event hub-compatibele consumentengroep. |
| properties |
De tags. |
|
| type |
string |
het resourcetype. |
EventHubConsumerGroupName
De naam van de EventHub-consumentengroep.
| Name | Type | Description |
|---|---|---|
| name |
string |
EventHub-consumentengroepnaam |