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=2026-11-01
URI-parameters
| Naam | In | Vereist | Type | Description |
|---|---|---|---|---|
|
event
|
path | True |
string |
De naam van het EventHubEndpoint |
|
name
|
path | True |
string |
De naam van de consumentengroep die moet worden opgehaald. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
De naam van de resource group. De naam is hoofdletterongevoelig. |
|
resource
|
path | True |
string |
De naam van de IoT-hub. |
|
subscription
|
path | True |
string (uuid) |
De ID van het doelabonnement. De waarde moet een UUID zijn. |
|
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
Aanvraagbody
| Naam | Vereist | Type | Description |
|---|---|---|---|
| properties | True |
De naam van de EventHub-consumentengroep. |
Antwoorden
| Naam | Type | Description |
|---|---|---|
| 200 OK |
Resource-update operatie 'EventHubConsumerGroupInfo' is geslaagd |
|
| Other Status Codes |
Een onverwachte foutreactie. |
Beveiliging
azure_auth
OAuth2-stroom voor Azure Active Directory.
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
| Naam | 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=2026-11-01
{
"properties": {
"name": "test"
}
}
Voorbeeldrespons
{
"name": "test",
"type": "Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups",
"etag": "AAAAAAFD6M4=",
"id": "/subscriptions/cmd-sub-1/resourceGroups/cmd-rg-1/providers/Microsoft.Devices/IotHubs/test-hub-2/eventHubEndpoints/events/ConsumerGroups/%24Default",
"properties": {
"created": "Thu, 15 Jun 2017 19:20:58 GMT"
}
}
Definities
| Naam | Description |
|---|---|
|
created |
Het identiteitstype dat de resource heeft gemaakt. |
|
Error |
Foutdetails. |
|
Event |
De EventHub-consumentengroep. |
|
Event |
De eigenschappen van het object EventHubConsumerGroupInfo. |
|
Event |
De naam van de EventHub-consumentengroep. |
|
system |
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource. |
createdByType
Het identiteitstype dat de resource heeft gemaakt.
| Waarde | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorDetails
Foutdetails.
| Naam | Type | Description |
|---|---|---|
| code |
string |
De foutcode. |
| details |
string |
De foutgegevens. |
| httpStatusCode |
string |
De HTTP-statuscode. |
| message |
string |
Het foutbericht. |
EventHubConsumerGroupBodyDescription
De EventHub-consumentengroep.
| Naam | Type | Description |
|---|---|---|
| properties |
De naam van de EventHub-consumentengroep. |
EventHubConsumerGroupInfo
De eigenschappen van het object EventHubConsumerGroupInfo.
| Naam | Type | Description |
|---|---|---|
| etag |
string |
De etag. |
| id |
string (arm-id) |
Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceType}/{resourceName}" |
| name |
string |
De naam van de resource |
| properties |
De tags. |
|
| systemData |
Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens. |
|
| type |
string |
Het type bron. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
EventHubConsumerGroupName
De naam van de EventHub-consumentengroep.
| Naam | Type | Description |
|---|---|---|
| name |
string |
EventHub-consumentengroepnaam |
systemData
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.
| Naam | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
De tijdstempel van het aanmaken van resources (UTC). |
| createdBy |
string |
De identiteit die de resource heeft gemaakt. |
| createdByType |
Het identiteitstype dat de resource heeft gemaakt. |
|
| lastModifiedAt |
string (date-time) |
De tijdstempel van de laatste wijziging van de resource (UTC) |
| lastModifiedBy |
string |
De identiteit die de resource voor het laatst heeft gewijzigd. |
| lastModifiedByType |
Het type identiteit dat de resource voor het laatst heeft gewijzigd. |