Iot Hub Resource - Create Event Hub Consumer Group

IoT hub'ında Event Hub uyumlu bir uç noktaya tüketici grubu ekleme.

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

URI Parametreleri

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

string

IoT hub'ında Event Hub ile uyumlu uç noktanın adı.

name
path True

string

Eklenecek tüketici grubunun 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 sürümü.

İstek Gövdesi

Name Gerekli Tür Description
properties True

EventHubConsumerGroupName

EventHub tüketici grubu adı.

Yanıtlar

Name Tür Description
200 OK

EventHubConsumerGroupInfo

Bu zaman uyumlu bir işlemdir.

Other Status Codes

ErrorDetails

DefaultErrorResponse

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Tür: oauth2
Akış: implicit
Yetkilendirme URL’si: https://login.microsoftonline.com/common/oauth2/authorize

Kapsamlar

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

Örnekler

IotHubResource_CreateEventHubConsumerGroup

Örnek isteği

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

{
  "properties": {
    "name": "test"
  }
}

Örnek yanıt

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

Tanımlar

Name Description
ErrorDetails

Hata ayrıntıları.

EventHubConsumerGroupBodyDescription

EventHub tüketici grubu.

EventHubConsumerGroupInfo

EventHubConsumerGroupInfo nesnesinin özellikleri.

EventHubConsumerGroupName

EventHub tüketici grubu adı.

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.

EventHubConsumerGroupBodyDescription

EventHub tüketici grubu.

Name Tür Description
properties

EventHubConsumerGroupName

EventHub tüketici grubu adı.

EventHubConsumerGroupInfo

EventHubConsumerGroupInfo nesnesinin özellikleri.

Name Tür Description
etag

string

Etag.

id

string

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

name

string

Event Hub uyumlu tüketici grubu adı.

properties

Etiketler.

type

string

kaynak türünü seçin.

EventHubConsumerGroupName

EventHub tüketici grubu adı.

Name Tür Description
name

string

EventHub tüketici grubu adı