Namespaces - Get
Gets the description of the specified namespace.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}?api-version=2026-01-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
namespace
|
path | True |
string minLength: 6maxLength: 50 pattern: ^[a-zA-Z][a-zA-Z0-9-]{6,50}[a-zA-Z0-9]$ |
The Namespace name |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Azure operation completed successfully. |
|
| Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
NameSpaceGet
Sample request
GET https://management.azure.com/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.EventHub/namespaces/NamespaceSample?api-version=2026-01-01
Sample response
{
"name": "NamespaceSample",
"type": "Microsoft.EventHub/Namespaces",
"id": "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.EventHub/namespaces/NamespaceSample",
"identity": {
"type": "SystemAssigned, UserAssigned",
"principalId": "PrincipalIdGUID",
"tenantId": "TenantIdGUID",
"userAssignedIdentities": {
"/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud1": {
"clientId": "ClientIdGUID",
"principalId": "PrincipalIdGUID"
},
"/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud2": {
"clientId": "6a35400f-6ccb-4817-8f1a-ce19ea4523bc",
"principalId": "ce2d5953-5c15-40ca-9d51-cc3f4a63b0f5"
}
}
},
"location": "East US",
"properties": {
"clusterArmId": "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.EventHub/clusters/enc-test",
"createdAt": "2021-01-30T00:28:38.963Z",
"disableLocalAuth": false,
"encryption": {
"keySource": "Microsoft.KeyVault",
"keyVaultProperties": [
{
"identity": {
"userAssignedIdentity": "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.ManagedIdentity/userAssignedIdentities/ud1"
},
"keyName": "Samplekey",
"keyVaultUri": "https://sample-keyvault-user.vault-int.azure-int.net",
"keyVersion": ""
}
],
"requireInfrastructureEncryption": false
},
"isAutoInflateEnabled": false,
"maximumThroughputUnits": 0,
"metricId": "MetricGUID:NamespaceSample",
"minimumTlsVersion": "1.2",
"platformCapabilities": {
"confidentialCompute": {
"mode": "Disabled"
}
},
"privateEndpointConnections": [
{
"name": "privateEndpointConnectionName",
"type": "Microsoft.EventHub/Namespaces/PrivateEndpointConnections",
"id": "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.EventHub/namespaces/NamespaceSample/privateEndpointConnections/privateEndpointConnectionName",
"properties": {
"privateEndpoint": {
"id": "/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.Network/privateEndpoints/NamespaceSample"
},
"privateLinkServiceConnectionState": {
"description": "Auto-Approved",
"status": "Approved"
},
"provisioningState": "Succeeded"
}
}
],
"provisioningState": "Succeeded",
"serviceBusEndpoint": "https://NamespaceSample.servicebus.windows-int.net:443",
"updatedAt": "2021-01-30T00:30:55.143Z",
"zoneRedundant": false
},
"sku": {
"name": "Standard",
"capacity": 1,
"tier": "Standard"
},
"tags": {}
}
Definitions
| Name | Description |
|---|---|
|
Confidential |
|
|
Connection |
ConnectionState information. |
|
created |
The type of identity that created the resource. |
| EHNamespace |
Single Namespace item in List or Get Operation |
| Encryption |
Properties to configure Encryption |
|
End |
Provisioning state of the Private Endpoint Connection. |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response indicates Event Hub service is not able to process the incoming request. The reason is provided in the error message. |
|
Geo |
GeoDR Replication properties |
|
Geo |
GeoDR Role Types |
| Identity |
Properties to configure Identity for Bring your Own Keys |
|
Key |
Properties to configure keyVault Properties |
|
Managed |
Type of managed service identity. |
| Mode |
Setting to Enable or Disable Confidential Compute |
|
Namespace |
Namespace replication properties |
|
Platform |
|
|
Private |
PrivateEndpoint information. |
|
Private |
Properties of the PrivateEndpointConnection. |
|
Private |
Status of the connection. |
|
Public |
This determines if traffic is allowed over public network. By default it is enabled. |
| Sku |
SKU parameters supplied to the create namespace operation |
|
Sku |
Name of this SKU. |
|
Sku |
The billing tier of this particular SKU. |
|
system |
Metadata pertaining to creation and last modification of the resource. |
|
Tls |
The minimum TLS version for the cluster to support, e.g. '1.2' |
|
User |
Recognized Dictionary value. |
|
user |
ConfidentialCompute
| Name | Type | Description |
|---|---|---|
| mode |
Setting to Enable or Disable Confidential Compute |
ConnectionState
ConnectionState information.
| Name | Type | Description |
|---|---|---|
| description |
string |
Description of the connection state. |
| status |
Status of the connection. |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
EHNamespace
Single Namespace item in List or Get Operation
| Name | Type | Default value | Description |
|---|---|---|---|
| id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
|
| identity |
Properties of BYOK Identity description |
||
| location |
string |
The geo-location where the resource lives |
|
| name |
string |
The name of the resource |
|
| properties.alternateName |
string |
Alternate name specified when alias and namespace names are same. |
|
| properties.clusterArmId |
string |
Cluster ARM ID of the Namespace. |
|
| properties.createdAt |
string (date-time) |
The time the Namespace was created. |
|
| properties.disableLocalAuth |
boolean |
This property disables SAS authentication for the Event Hubs namespace. |
|
| properties.encryption |
Properties of BYOK Encryption description |
||
| properties.geoDataReplication |
Geo Data Replication settings for the namespace |
||
| properties.ipV6Enabled |
boolean |
Value that indicates whether IPv6 is enabled for public network access. |
|
| properties.isAutoInflateEnabled |
boolean |
Value that indicates whether AutoInflate is enabled for eventhub namespace. |
|
| properties.kafkaEnabled |
boolean |
Value that indicates whether Kafka is enabled for eventhub namespace. |
|
| properties.maximumThroughputUnits |
integer (int32) minimum: 0 |
Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true) |
|
| properties.metricId |
string |
Identifier for Azure Insights metrics. |
|
| properties.minimumTlsVersion |
The minimum TLS version for the cluster to support, e.g. '1.2' |
||
| properties.platformCapabilities | |||
| properties.privateEndpointConnections |
List of private endpoint connections. |
||
| properties.provisioningState |
string |
Provisioning state of the Namespace. |
|
| properties.publicNetworkAccess | Enabled |
This determines if traffic is allowed over public network. By default it is enabled. |
|
| properties.serviceBusEndpoint |
string |
Endpoint you can use to perform Service Bus operations. |
|
| properties.status |
string |
Status of the Namespace. |
|
| properties.updatedAt |
string (date-time) |
The time the Namespace was updated. |
|
| properties.zoneRedundant |
boolean |
Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones. |
|
| sku |
Properties of sku resource |
||
| systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
||
| tags |
object |
Resource tags. |
|
| type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Encryption
Properties to configure Encryption
| Name | Type | Default value | Description |
|---|---|---|---|
| keySource |
enum:
Microsoft. |
Microsoft.KeyVault |
Enumerates the possible value of keySource for Encryption |
| keyVaultProperties |
Properties of KeyVault |
||
| requireInfrastructureEncryption |
boolean |
Enable Infrastructure Encryption (Double Encryption) |
EndPointProvisioningState
Provisioning state of the Private Endpoint Connection.
| Value | Description |
|---|---|
| Creating | |
| Updating | |
| Deleting | |
| Succeeded | |
| Canceled | |
| Failed |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
|
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response indicates Event Hub service is not able to process the incoming request. The reason is provided in the error message.
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
GeoDataReplicationProperties
GeoDR Replication properties
| Name | Type | Description |
|---|---|---|
| locations |
A list of regions where replicas of the namespace are maintained. |
|
| maxReplicationLagDurationInSeconds |
integer (int32) |
The maximum acceptable lag for data replication operations from the primary replica to a quorum of secondary replicas. When the lag exceeds the configured amount, operations on the primary replica will be failed. The allowed values are 0 and 5 minutes to 1 day. |
GeoDRRoleType
GeoDR Role Types
| Value | Description |
|---|---|
| Primary | |
| Secondary |
Identity
Properties to configure Identity for Bring your Own Keys
| Name | Type | Description |
|---|---|---|
| principalId |
string |
ObjectId from the KeyVault |
| tenantId |
string |
TenantId from the KeyVault |
| type |
Type of managed service identity. |
|
| userAssignedIdentities |
<string,
User |
Properties for User Assigned Identities |
KeyVaultProperties
Properties to configure keyVault Properties
| Name | Type | Description |
|---|---|---|
| identity | ||
| keyName |
string |
Name of the Key from KeyVault |
| keyVaultUri |
string |
Uri of KeyVault |
| keyVersion |
string |
Key Version |
ManagedServiceIdentityType
Type of managed service identity.
| Value | Description |
|---|---|
| SystemAssigned | |
| UserAssigned | |
| SystemAssigned, UserAssigned | |
| None |
Mode
Setting to Enable or Disable Confidential Compute
| Value | Description |
|---|---|
| Disabled | |
| Enabled |
NamespaceReplicaLocation
Namespace replication properties
| Name | Type | Description |
|---|---|---|
| clusterArmId |
string |
Optional property that denotes the ARM ID of the Cluster. This is required, if a namespace replica should be placed in a Dedicated Event Hub Cluster |
| locationName |
string |
Azure regions where a replica of the namespace is maintained |
| replicaState |
string |
state of Namespace replica. |
| roleType |
GeoDR Role Types |
PlatformCapabilities
| Name | Type | Description |
|---|---|---|
| confidentialCompute |
PrivateEndpoint
PrivateEndpoint information.
| Name | Type | Description |
|---|---|---|
| id |
string |
The ARM identifier for Private Endpoint. |
PrivateEndpointConnection
Properties of the PrivateEndpointConnection.
| Name | Type | Description |
|---|---|---|
| id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| location |
string |
The geo-location where the resource lives |
| name |
string |
The name of the resource |
| properties.privateEndpoint |
The Private Endpoint resource for this Connection. |
|
| properties.privateLinkServiceConnectionState |
Details about the state of the connection. |
|
| properties.provisioningState |
Provisioning state of the Private Endpoint Connection. |
|
| systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
| type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
PrivateLinkConnectionStatus
Status of the connection.
| Value | Description |
|---|---|
| Pending | |
| Approved | |
| Rejected | |
| Disconnected |
PublicNetworkAccess
This determines if traffic is allowed over public network. By default it is enabled.
| Value | Description |
|---|---|
| Enabled | |
| Disabled | |
| SecuredByPerimeter |
Sku
SKU parameters supplied to the create namespace operation
| Name | Type | Description |
|---|---|---|
| capacity |
integer (int32) minimum: 0 |
The Event Hubs throughput units for Basic or Standard tiers, where value should be 0 to 20 throughput units. The Event Hubs premium units for Premium tier, where value should be 0 to 10 premium units. |
| name |
Name of this SKU. |
|
| tier |
The billing tier of this particular SKU. |
SkuName
Name of this SKU.
| Value | Description |
|---|---|
| Basic | |
| Standard | |
| Premium |
SkuTier
The billing tier of this particular SKU.
| Value | Description |
|---|---|
| Basic | |
| Standard | |
| Premium |
systemData
Metadata pertaining to creation and last modification of the resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
| createdBy |
string |
The identity that created the resource. |
| createdByType |
The type of identity that created the resource. |
|
| lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
| lastModifiedBy |
string |
The identity that last modified the resource. |
| lastModifiedByType |
The type of identity that last modified the resource. |
TlsVersion
The minimum TLS version for the cluster to support, e.g. '1.2'
| Value | Description |
|---|---|
| 1.0 | |
| 1.1 | |
| 1.2 | |
| 1.3 |
UserAssignedIdentity
Recognized Dictionary value.
| Name | Type | Description |
|---|---|---|
| clientId |
string |
Client Id of user assigned identity |
| principalId |
string |
Principal Id of user assigned identity |
userAssignedIdentityProperties
| Name | Type | Description |
|---|---|---|
| userAssignedIdentity |
string |
ARM ID of user Identity selected for encryption |