Iot Hub Resource - List Event Hub Consumer Groups

IoT hub'ında Event Hub uyumlu cihazdan buluta uç noktasındaki tüketici gruplarının listesini alın.

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

URI Parametreleri

Name İçinde Gerekli Tür Description
eventHubEndpointName
path True

string

Event Hub ile uyumlu uç noktanın adı.

resourceGroupName
path True

string

IoT hub'ını içeren kaynak grubunun adı.

resourceName
path True

string

IoT hub'ının adı.

subscriptionId
path True

string

Abonelik tanımlayıcısı.

api-version
query True

string

API'nin sürümü.

Yanıtlar

Name Tür Description
200 OK

EventHubConsumerGroupsListResult

Bu zaman uyumlu bir işlemdir. Gövde, bu IoT hub'ında Event Hub ile uyumlu uç noktadaki tüketici gruplarının JSON serileştirilmiş listesini içerir

Other Status Codes

ErrorDetails

DefaultErrorResponse

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

IotHubResource_ListEventHubConsumerGroups

Sample Request

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

Sample Response

{
  "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="
    }
  ]
}

Tanımlar

Name Description
ErrorDetails

Hata ayrıntıları.

EventHubConsumerGroupInfo

EventHubConsumerGroupInfo nesnesinin özellikleri.

EventHubConsumerGroupsListResult

Sonraki bağlantıya sahip Event Hub uyumlu tüketici grubu adlarının JSON serileştirilmiş dizisi.

ErrorDetails

Hata ayrıntıları.

Name Tür Description
code

string

Hata kodu.

details

string

Hata ayrıntıları.

httpStatusCode

string

HTTP durum kodu.

message

string

Hata iletisi.

EventHubConsumerGroupInfo

EventHubConsumerGroupInfo nesnesinin özellikleri.

Name Tür Description
etag

string

Etiket.

id

string

Event Hub uyumlu tüketici grubu tanımlayıcısı.

name

string

Event Hub uyumlu tüketici grubu adı.

properties

object

Etiketler.

type

string

kaynak türü.

EventHubConsumerGroupsListResult

Sonraki bağlantıya sahip Event Hub uyumlu tüketici grubu adlarının JSON serileştirilmiş dizisi.

Name Tür Description
nextLink

string

Sonraki bağlantı.

value

EventHubConsumerGroupInfo[]

Tüketici grupları nesnelerinin listesi