Get Event Hub

Retrieves all metadata associated with the specified Event Hub. See EventHubDescription Properties.


Method Request URI
GET https://{serviceNamespace}{eventHubPath}

Request Headers

See Common parameters and headers for headers and parameters that are used by all requests related to Event Hubs.


The response includes an HTTP status code, a set of response headers, and a response body.

Element name Required Type Version Description
AuthorizationRules Yes, read-only string 2014-01 The authorization rules.
MessageRetentionInDays Yes, read-only string 2014-01 The number of days to retain the events for this Event Hub.
Status Yes, read-only string 2014-01 The current status of the Event Hub (enabled or disabled).
CreatedAt Yes, read-only string 2014-01 The exact time the Event Hub was created.
UpdatedAt Yes, read-only string 2014-01 The exact time the Event Hub was updated.
PartitionCount Yes, read-only string 2014-01 The current number of partitions on the Event Hub.
PartitionIds Yes, read-only string 2014-01 Identifiers for partitions created for the Event Hub.

Response Codes

Code Description
200 Success.
401 Authorization failure.
500 Internal error.

Response Body

If the request is successful, the response body contains the description of the queried Event Hub. If the request is not successful, the body contains an error code and error message.




You can also use an Azure Active Directory token for the Authorization header as noted in the Common parameters and headers. For example: Authorization: Bearer <Azure AD token>.

GET HTTP/1.1  
Authorization: SharedAccessSignature  
ContentType: application/atom+xml;type=entry;charset=utf-8  


HTTP/1.1 200 Created  
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  
<entry xmlns="">  
  <title type="text">your-event-hub</title>  
  <link rel="self" href=""/>  
  <content type="application/xml">  
    <EventHubDescription xmlns="" xmlns:i="">