---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability"
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability`

Check the give Namespace name availability.

## Parameters

- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Request body

- CheckNameAvailabilityParameter — Parameter supplied to check Namespace name availability operation
  - `name` string, required — Name to check the namespace name availability

## Response `200`

The request has succeeded.

- CheckNameAvailabilityResult — The Result of the CheckNameAvailability operation
  - `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` 'None' | 'InvalidName' | 'SubscriptionIsDisabled' | 'NameInUse' | 'NameInLockdown' | 'TooManyNamespaceInCurrentSubscription' — Specifies the reason for the unavailability of the service.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/eventhubmanagementclient.md) · [All operations](https://skmtc.dev/azure/apis/eventhubmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/eventhubmanagementclient/revisions/122d63fca4a7/schema)
