Iot Hub Resource - Create Event Hub Consumer Group

IoT Hub의 Event Hub 호환 엔드포인트에 소비자 그룹을 추가합니다.

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

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
eventHubEndpointName
path True

string

IoT Hub에서 Event Hub 호환 엔드포인트의 이름입니다.

name
path True

string

추가할 소비자 그룹의 이름입니다.

resourceGroupName
path True

string

IoT Hub를 포함하는 리소스 그룹의 이름입니다.

resourceName
path True

string

IoT Hub의 이름입니다.

subscriptionId
path True

string

구독 식별자입니다.

api-version
query True

string

API 버전입니다.

요청 본문

Name 필수 형식 Description
properties True

EventHubConsumerGroupName

EventHub 소비자 그룹 이름입니다.

응답

Name 형식 Description
200 OK

EventHubConsumerGroupInfo

동기 작업입니다.

Other Status Codes

ErrorDetails

DefaultErrorResponse

보안

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 사용자 계정 가장

예제

IotHubResource_CreateEventHubConsumerGroup

Sample Request

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"
  }
}

Sample Response

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

정의

Name Description
ErrorDetails

오류 세부 정보입니다.

EventHubConsumerGroupBodyDescription

EventHub 소비자 그룹입니다.

EventHubConsumerGroupInfo

EventHubConsumerGroupInfo 개체의 속성입니다.

EventHubConsumerGroupName

EventHub 소비자 그룹 이름입니다.

ErrorDetails

오류 세부 정보입니다.

Name 형식 Description
code

string

오류 코드입니다.

details

string

오류 세부 정보입니다.

httpStatusCode

string

HTTP 상태 코드입니다.

message

string

오류 메시지입니다.

EventHubConsumerGroupBodyDescription

EventHub 소비자 그룹입니다.

Name 형식 Description
properties

EventHubConsumerGroupName

EventHub 소비자 그룹 이름입니다.

EventHubConsumerGroupInfo

EventHubConsumerGroupInfo 개체의 속성입니다.

Name 형식 Description
etag

string

etag입니다.

id

string

Event Hub 호환 소비자 그룹 식별자입니다.

name

string

Event Hub 호환 소비자 그룹 이름입니다.

properties

태그입니다.

type

string

리소스 종류입니다.

EventHubConsumerGroupName

EventHub 소비자 그룹 이름입니다.

Name 형식 Description
name

string

EventHub 소비자 그룹 이름