Event Hubs - List All
Gets all the Event Hubs in a Namespace.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs?api-version={api-version}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
authorizationRuleName
|
path | True |
|
The authorization rule name. |
|
eventHubName
|
path | True |
|
The Event Hub name |
|
consumerGroupName
|
path | True |
|
The consumer group name |
|
subscriptionId
|
path | True |
|
Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
|
resourceGroupName
|
path | True |
|
Name of the resource group within the azure subscription. |
|
namespaceName
|
path | True |
|
The Namespace name |
|
api-version
|
query | True |
|
Client API Version. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Successfully retrieved the list of Event Hubs. |
Examples
EventHubsListAll
Sample Request
GET https://management.azure.com/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.EventHub/namespaces/sdk-Namespace4919/eventhubs?api-version=2015-08-01&eventHubName=sdk-eventhub4839
Sample Response
{
"value": [
{
"id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.EventHub/namespaces/sdk-Namespace4919/eventhubs/sdk-eventhub4839",
"name": "sdk-eventhub4839",
"type": "Microsoft.EventHub/EventHubs",
"properties": {
"messageRetentionInDays": 7,
"status": "Active",
"createdAt": "2017-03-12T07:39:13.310Z",
"updatedAt": "2017-03-12T07:39:15.410Z",
"partitionCount": 4,
"partitionIds": [
"0",
"1",
"2",
"3"
]
}
}
]
}
Definitions
| EventHubListResult | |
| EventHubResource |
Single item in List or Get Event Hub operation |
| Name | Type | Description |
|---|---|---|
| nextLink |
|
Link to the next set of results. Not empty if Value contains incomplete list of EventHubs. |
| value |
Result of the List EventHubs operation. |
Single item in List or Get Event Hub operation
| Name | Type | Description |
|---|---|---|
| createdAt |
|
Exact time the Event Hub was created. |
| id |
|
Resource Id |
| location |
|
Resource location |
| messageRetentionInDays |
|
Number of days to retain the events for this Event Hub. |
| name |
|
Resource name |
| partitionCount |
|
Number of partitions created for the Event Hub. |
| partitionIds |
|
Current number of shards on the Event Hub. |
| status |
|
Enumerates the possible values for the status of the Event Hub. |
| type |
|
Resource type |
| updatedAt |
|
The exact time the message was updated. |