共用方式為


Iot Hub Resource - List Event Hub Consumer Groups

取得IoT中樞中事件中樞相容裝置到雲端端點中的取用者群組清單。

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

URI 參數

名稱 位於 必要 類型 Description
eventHubEndpointName
path True

string

事件中樞相容端點的名稱。

resourceGroupName
path True

string

包含IoT中樞的資源群組名稱。

resourceName
path True

string

IoT 中樞的名稱。

subscriptionId
path True

string

訂用帳戶識別碼。

api-version
query True

string

API 的版本。

回應

名稱 類型 Description
200 OK

EventHubConsumerGroupsListResult

這是同步作業。 本文包含此 IoT 中樞中事件中樞相容端點中取用者群組的 JSON 串行化清單

Other Status Codes

ErrorDetails

DefaultErrorResponse

安全性

azure_auth

Azure Active Directory OAuth2 Flow

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

IotHubResource_ListEventHubConsumerGroups

範例要求

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

範例回覆

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

定義

名稱 Description
ErrorDetails

錯誤詳細數據。

EventHubConsumerGroupInfo

EventHubConsumerGroupInfo 對象的屬性。

EventHubConsumerGroupsListResult

事件中樞相容取用者組名與下一個連結的 JSON 串行化陣列。

ErrorDetails

錯誤詳細數據。

名稱 類型 Description
code

string

錯誤碼。

details

string

錯誤詳細資料。

httpStatusCode

string

HTTP 狀態碼。

message

string

錯誤訊息。

EventHubConsumerGroupInfo

EventHubConsumerGroupInfo 對象的屬性。

名稱 類型 Description
etag

string

Etag。

id

string

事件中樞相容的取用者群組標識符。

name

string

事件中樞相容的取用者組名。

properties

標記。

type

string

資源類型。

EventHubConsumerGroupsListResult

事件中樞相容取用者組名與下一個連結的 JSON 串行化陣列。

名稱 類型 Description
nextLink

string

下一個連結。

value

EventHubConsumerGroupInfo[]

取用者群組物件清單