Check Name Availability - Namespaces - Check Name Availability
Check the give Namespace name availability.
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability?api-version=2024-01-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
subscription
|
path | True |
string |
Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
|
api-version
|
query | True |
string |
Client API Version. |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| name | True |
string |
Name to check the namespace name availability |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
check availability returned successfully. |
|
| Other Status Codes |
Eventhub error response describing why the operation failed. |
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
NamespacesCheckNameAvailability
Sample request
POST https://management.azure.com/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/providers/Microsoft.EventHub/checkNameAvailability?api-version=2024-01-01
{
"name": "sdk-Namespace-8458"
}
Sample response
{
"nameAvailable": true,
"reason": "None",
"message": ""
}
Definitions
| Name | Description |
|---|---|
|
Check |
Parameter supplied to check Namespace name availability operation |
|
Check |
The Result of the CheckNameAvailability operation |
|
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. |
|
Unavailable |
Specifies the reason for the unavailability of the service. |
CheckNameAvailabilityParameter
Parameter supplied to check Namespace name availability operation
| Name | Type | Description |
|---|---|---|
| name |
string |
Name to check the namespace name availability |
CheckNameAvailabilityResult
The Result of the CheckNameAvailability operation
| Name | Type | Description |
|---|---|---|
| message |
string |
The detailed info regarding the reason associated with the Namespace. |
| nameAvailable |
boolean |
Value indicating Namespace is availability, true if the Namespace is available; otherwise, false. |
| reason |
The reason for unavailability of a Namespace. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
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. |
UnavailableReason
Specifies the reason for the unavailability of the service.
| Value | Description |
|---|---|
| None | |
| InvalidName | |
| SubscriptionIsDisabled | |
| NameInUse | |
| NameInLockdown | |
| TooManyNamespaceInCurrentSubscription |