List consumer groups

Retrieves all consumer groups associated with the specified Event Hub. See ConsumerGroupDescription Properties.


Method Request URI
GET https://{servicebusNamespace}{eventHubPath}/consumergroups

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
CreatedAt Yes, read-only string 2014-01 The exact time the consumer group was created.
UpdatedAt Yes, read-only string 2014-01 The exact time the consumer group was updated.

Response Body

If the request is successful, the response body contains the description of all consumer groups within the specified Event Hub. If the request is not successful, the body contains an error code and error message

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




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  
Content-Type: application/atom+xml;type=entry;charset=utf-8  


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="">  
   <title type="text">ConsumerGroups</title>  
   <link rel="self" href="" />  
   <entry xml:base="">  
      <title type="text">$Default</title>  
      <link rel="self" href="consumergroups/$Default?api-version=2014-01" />  
      <content type="application/xml">  
         <ConsumerGroupDescription xmlns="" xmlns:i="">