List Event Hubs

지정된 Event Hubs 네임스페이스 내의 모든 Event Hubs와 연결된 모든 메타데이터를 검색합니다. EventHubDescription 속성을 참조하세요.

요청

메서드 요청 URI
GET https://{servicebusNamespace}.servicebus.windows.net/$Resources/Eventhubs

요청 헤더

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

응답

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

요소 이름 필수 Type 버전 Description
AuthorizationRules 예, 읽기 전용 string 2014-01 권한 부여 규칙입니다.
MessageRetentionInDays 예, 읽기 전용 string 2014-01 이 이벤트 허브에 대한 이벤트를 보존할 일 수입니다.
Status 예, 읽기 전용 문자열 2014-01 이벤트 허브의 현재 상태(사용 또는 사용 안 함)입니다.
CreatedAt 예, 읽기 전용 문자열 2014-01 이벤트 허브를 만든 정확한 시간입니다.
UpdatedAt 예, 읽기 전용 문자열 2014-01 이벤트 허브가 업데이트된 정확한 시간입니다.
PartitionCount 예, 읽기 전용 문자열 2014-01 이벤트 허브의 현재 파티션 수입니다.
PartitionIds 예, 읽기 전용 문자열 2014-01 이벤트 허브에 대해 만든 파티션의 식별자입니다.

응답 코드

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

응답 본문

요청이 성공하면 응답 본문에 쿼리된 Event Hubs 네임스페이스의 모든 이벤트 hHub에 대한 설명이 포함됩니다. 요청이 성공하지 못하면 본문에 오류 코드와 오류 메시지가 포함됩니다.

예제

요청

참고

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

GET https://your-namespace.servicebus.windows.net/ $Resources/Eventhubs?timeout=60&api-version=2014-01 HTTP/1.1  
Authorization: SharedAccessSignature sr=your-namespace.servicebus.windows.net&sig=your-sas-key&se=1403736877&skn=RootManageSharedAccessKey  
Content-Type: application/atom+xml;type=entry;charset=utf-8  
Host: your-namespace.servicebus.windows.net  

응답

HTTP/1.1 200 OK  
Transfer-Encoding: chunked  
Content-Type: application/atom+xml;type=entry;charset=utf-8  
Server: Microsoft-HTTPAPI/2.0  
Date: Wed, 25 Jun 2014 22:43:27 GMT  
  
<?xml version="1.0" encoding="UTF-8"?>  
<feed xmlns="http://www.w3.org/2005/Atom">  
   <title type="text">EventHubs</title>  
   <id>https://your-namespace.servicebus.windows.net/$Resources/Eventhubs?timeout=60&api-version=2014-01</id>  
   <updated>2016-02-19T22:56:38Z</updated>  
   <link rel="self" href="https://your-namespace.servicebus.windows.net/$Resources/Eventhubs?timeout=60&api-version=2014-01" />  
   <entry xml:base="https://your-namespace.servicebus.windows.net/$Resources/Eventhubs?timeout=60&api-version=2014-01">  
      <id>https://your-namespace.servicebus.windows.net/your-event-hub?api-version=2014-01</id>  
      <title type="text">your-event-hub</title>  
      <published>2015-09-09T20:30:51Z</published>  
      <updated>2015-09-09T21:16:12Z</updated>  
      <author>  
         <name>your-namespace</name>  
      </author>  
      <link rel="self" href="../your-event-hub?api-version=2014-01" />  
      <content type="application/xml">  
         <EventHubDescription xmlns="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
            <MessageRetentionInDays>1</MessageRetentionInDays>  
            <AuthorizationRules>  
               <AuthorizationRule i:type="SharedAccessAuthorizationRule">  
                  <ClaimType>SharedAccessKey</ClaimType>  
                  <ClaimValue>None</ClaimValue>  
                  <Rights>  
                     <AccessRights>Send</AccessRights>  
                  </Rights>  
                  <CreatedTime>2015-09-09T21:16:11.7216934Z</CreatedTime>  
                  <ModifiedTime>2015-09-09T21:16:11.7216934Z</ModifiedTime>  
                  <KeyName>send</KeyName>  
                  <PrimaryKey>your-primary-key</PrimaryKey>  
                  <SecondaryKey>your-secondary-key</SecondaryKey>  
               </AuthorizationRule>  
               <AuthorizationRule i:type="SharedAccessAuthorizationRule">  
                  <ClaimType>SharedAccessKey</ClaimType>  
                  <ClaimValue>None</ClaimValue>  
                  <Rights>  
                     <AccessRights>Listen</AccessRights>  
                  </Rights>  
                  <CreatedTime>2015-09-09T21:16:11.7216934Z</CreatedTime>  
                  <ModifiedTime>2015-09-09T21:16:11.7216934Z</ModifiedTime>  
                  <KeyName>listen</KeyName>  
                  <PrimaryKey>your-primary-key</PrimaryKey>  
                  <SecondaryKey>your-secondary-key</SecondaryKey>  
               </AuthorizationRule>  
               <AuthorizationRule i:type="SharedAccessAuthorizationRule">  
                  <ClaimType>SharedAccessKey</ClaimType>  
                  <ClaimValue>None</ClaimValue>  
                  <Rights>  
                     <AccessRights>Manage</AccessRights>  
                     <AccessRights>Send</AccessRights>  
                     <AccessRights>Listen</AccessRights>  
                  </Rights>  
                  <CreatedTime>2015-09-09T21:16:11.7216934Z</CreatedTime>  
                  <ModifiedTime>2015-09-09T21:16:11.7216934Z</ModifiedTime>  
                  <KeyName>manage</KeyName>  
                  <PrimaryKey>your-primary-key</PrimaryKey>  
                  <SecondaryKey>your-secondary-key</SecondaryKey>  
               </AuthorizationRule>  
            </AuthorizationRules>  
            <Status>Active</Status>  
            <CreatedAt>2015-09-09T20:30:51.083</CreatedAt>  
            <UpdatedAt>2015-09-09T21:16:12.057</UpdatedAt>  
            <PartitionCount>2</PartitionCount>  
            <PartitionIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">  
               <d2p1:string>0</d2p1:string>  
               <d2p1:string>1</d2p1:string>  
            </PartitionIds>  
         </EventHubDescription>  
      </content>  
   </entry>  
</feed>