Delen via


Iot Hub Resource - List Event Hub Consumer Groups

Haal een lijst op van de consumentengroepen in het apparaat-naar-cloud-eindpunt van Event Hub in een IoT-hub.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups?api-version=2023-06-30

URI-parameters

Name In Vereist Type Description
eventHubEndpointName
path True

string

De naam van het event hub-compatibele eindpunt.

resourceGroupName
path True

string

De naam van de resourcegroep die de IoT-hub bevat.

resourceName
path True

string

De naam van de IoT-hub.

subscriptionId
path True

string

De abonnements-id.

api-version
query True

string

De versie van de API.

Antwoorden

Name Type Description
200 OK

EventHubConsumerGroupsListResult

Dit is een synchrone bewerking. De hoofdtekst bevat een JSON-geserialiseerde lijst met consumentengroepen in het event hub-compatibele eindpunt in deze IoT-hub

Other Status Codes

ErrorDetails

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_ListEventHubConsumerGroups

Voorbeeldaanvraag

GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/eventHubEndpoints/events/ConsumerGroups?api-version=2023-06-30

Voorbeeldrespons

{
  "value": [
    {
      "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": "$Default",
      "type": "Microsoft.Devices/IotHubs/EventHubEndpoints/ConsumerGroups",
      "etag": "AAAAAAFD6M4="
    }
  ]
}

Definities

Name Description
ErrorDetails

Foutdetails.

EventHubConsumerGroupInfo

De eigenschappen van het object EventHubConsumerGroupInfo.

EventHubConsumerGroupsListResult

De JSON-geserialiseerde matrix met namen van consumentengroepen die compatibel zijn met Event Hub met een volgende koppeling.

ErrorDetails

Foutdetails.

Name Type Description
code

string

De foutcode.

details

string

De foutdetails.

httpStatusCode

string

De HTTP-statuscode.

message

string

Het foutbericht.

EventHubConsumerGroupInfo

De eigenschappen van het object EventHubConsumerGroupInfo.

Name Type Description
etag

string

De etag.

id

string

De id van de Event Hub-compatibele consumentengroep.

name

string

De naam van de event hub-compatibele consumentengroep.

properties

De tags.

type

string

het resourcetype.

EventHubConsumerGroupsListResult

De JSON-geserialiseerde matrix met namen van consumentengroepen die compatibel zijn met Event Hub met een volgende koppeling.

Name Type Description
nextLink

string

De volgende koppeling.

value

EventHubConsumerGroupInfo[]

Lijst met objecten voor consumentengroepen