Iot Hub Resource - Create Event Hub Consumer Group
IoT ハブのイベント ハブ互換エンドポイントにコンシューマー グループを追加します。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/eventHubEndpoints/{eventHubEndpointName}/ConsumerGroups/{name}?api-version=2026-11-01
URI パラメーター
| Name | / | 必須 | 型 | 説明 |
|---|---|---|---|---|
|
event
|
path | True |
string |
EventHubEndpointの名前 |
|
name
|
path | True |
string |
取得するコンシューマーグループの名前。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
リソース グループの名前。 名前は大文字と小文字を区別しません。 |
|
resource
|
path | True |
string |
IoT ハブの名前。 |
|
subscription
|
path | True |
string (uuid) |
ターゲット サブスクリプションの ID。 値は UUID である必要があります。 |
|
api-version
|
query | True |
string minLength: 1 |
この操作に使用する API バージョン。 |
要求本文
| Name | 必須 | 型 | 説明 |
|---|---|---|---|
| properties | True |
EventHub コンシューマー グループ名。 |
応答
| Name | 型 | 説明 |
|---|---|---|
| 200 OK |
リソース「EventHubConsumerGroupInfo」更新操作が成功しました |
|
| Other Status Codes |
予期しないエラー応答。 |
セキュリティ
azure_auth
Azure Active Directory OAuth2 フロー。
型:
oauth2
フロー:
implicit
Authorization URL (承認 URL):
https://login.microsoftonline.com/common/oauth2/authorize
スコープ
| Name | 説明 |
|---|---|
| user_impersonation | あなたのユーザー アカウントになりすます |
例
IotHubResource_CreateEventHubConsumerGroup
要求のサンプル
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"
}
}
応答のサンプル
{
"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"
}
}
定義
| Name | 説明 |
|---|---|
|
created |
リソースを作成した ID の種類。 |
|
Error |
エラーの詳細。 |
|
Event |
EventHub コンシューマー グループ。 |
|
Event |
EventHubConsumerGroupInfo オブジェクトのプロパティ。 |
|
Event |
EventHub コンシューマー グループ名。 |
|
system |
リソースの作成と最後の変更に関連するメタデータ。 |
createdByType
リソースを作成した ID の種類。
| 値 | 説明 |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorDetails
エラーの詳細。
| Name | 型 | 説明 |
|---|---|---|
| code |
string |
エラー コード。 |
| details |
string |
エラーの詳細。 |
| httpStatusCode |
string |
HTTP 状態コード。 |
| message |
string |
エラー メッセージ。 |
EventHubConsumerGroupBodyDescription
EventHub コンシューマー グループ。
| Name | 型 | 説明 |
|---|---|---|
| properties |
EventHub コンシューマー グループ名。 |
EventHubConsumerGroupInfo
EventHubConsumerGroupInfo オブジェクトのプロパティ。
| Name | 型 | 説明 |
|---|---|---|
| etag |
string |
etag. |
| id |
string (arm-id) |
リソースの完全修飾リソース ID。 例: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| name |
string |
リソースの名前 |
| properties |
タグ。 |
|
| systemData |
createdBy および modifiedBy 情報を含む Azure Resource Manager メタデータ。 |
|
| type |
string |
リソースの種類。 例: "Microsoft.Compute/virtualMachines" または "Microsoft.Storage/storageAccounts" |
EventHubConsumerGroupName
EventHub コンシューマー グループ名。
| Name | 型 | 説明 |
|---|---|---|
| name |
string |
EventHub コンシューマー グループ名 |
systemData
リソースの作成と最後の変更に関連するメタデータ。
| Name | 型 | 説明 |
|---|---|---|
| createdAt |
string (date-time) |
リソース作成のタイムスタンプ (UTC)。 |
| createdBy |
string |
リソースを作成した ID。 |
| createdByType |
リソースを作成した ID の種類。 |
|
| lastModifiedAt |
string (date-time) |
リソースの最終変更のタイムスタンプ (UTC) |
| lastModifiedBy |
string |
リソースを最後に変更した ID。 |
| lastModifiedByType |
リソースを最後に変更した ID の種類。 |