다음을 통해 공유


소비자 그룹 나열

지정된 이벤트 허브와 연결된 모든 소비자 그룹을 검색합니다. ConsumerGroupDescription 속성을 참조하세요.

요청

메서드 요청 URI
GET https://{servicebusNamespace}.servicebus.windows.net/{eventHubPath}/consumergroups

요청 헤더

Event Hubs와 관련된 모든 요청에서 사용되는 헤더 및 매개 변수는 일반적인 매개 변수 및 헤더를 참조하세요.

응답

응답에는 HTTP 상태 코드, 응답 헤더 집합 및 응답 본문이 포함되어 있습니다.

요소 이름 필수 Type 버전 Description
CreatedAt 예, 읽기 전용 문자열 2014-01 소비자 그룹을 만든 정확한 시간입니다.
UpdatedAt 예, 읽기 전용 문자열 2014-01 소비자 그룹이 업데이트된 정확한 시간입니다.

응답 본문

요청이 성공하면 응답 본문에 지정된 이벤트 허브 내의 모든 소비자 그룹에 대한 설명이 포함됩니다. 요청에 실패하면 본문에 오류 코드 및 오류 메시지가 포함됩니다.

코드 Description
200 성공.
401 인증 실패
500 내부 오류입니다.

예제

요청

참고

공통 매개 변수 및 헤더에 설명된 대로 권한 부여 헤더에 Azure Active Directory 토큰을 사용할 수도 있습니다. 예: Authorization: Bearer <Azure AD token>

GET https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups?timeout=60&api-version=2014-01 HTTP/1.1  
Authorization: SharedAccessSignature sr=https%3A%2F%2Fyour-namespace.servicebus.windows.net%2F&sig=your-sas-key&se=1455847106&skn=RootManageSharedAccessKey  
Content-Type: application/atom+xml;type=entry;charset=utf-8  
Host: your-namespace.servicebus.windows.net  

응답

HTTP/1.1 200 OK  
Content-Type: application/atom+xml;type=feed;charset=utf-8  
Server: Microsoft-HTTPAPI/2.0  
Date: Fri, 19 Feb 2016 01:40:40 GMT  
Content-Length: 1179  
  
<?xml version="1.0" encoding="UTF-8"?>  
<feed xmlns="http://www.w3.org/2005/Atom">  
   <title type="text">ConsumerGroups</title>  
   <id>https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups?timeout=60&api-version=2014-01</id>  
   <updated>2016-02-19T01:40:41Z</updated>  
   <link rel="self" href="https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups?timeout=60&api-version=2014-01" />  
   <entry xml:base="https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups?timeout=60&api-version=2014-01">  
      <id>https://your-namespace.servicebus.windows.net/your-event-hub/consumergroups/$Default?api-version=2014-01</id>  
      <title type="text">$Default</title>  
      <published>2015-09-09T20:31:00Z</published>  
      <updated>2015-09-09T20:31:00Z</updated>  
      <link rel="self" href="consumergroups/$Default?api-version=2014-01" />  
      <content type="application/xml">  
         <ConsumerGroupDescription xmlns="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
            <CreatedAt>2015-09-09T20:31:00.4479782</CreatedAt>  
            <UpdatedAt>2015-09-09T20:31:00.4479782</UpdatedAt>  
         </ConsumerGroupDescription>  
      </content>  
   </entry>  
</feed>