---
title: "POST /subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability"
tags: ["Clusters"]
---

# POST /subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability

`POST /subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability`

Checks that the cluster name is valid and is not already in use.

## 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
- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/LocationParameter` — unresolved $ref

## Request body

- ClusterCheckNameRequest — The result returned from a cluster check name availability request.
  - `name` string, required — Cluster name.
  - `type` 'Microsoft.Kusto/clusters', required — The type of resource, Microsoft.Kusto/clusters.

## Response `200`

The request has succeeded.

- CheckNameResult — The result returned from a check name availability request.
  - `nameAvailable` boolean — Specifies a Boolean value that indicates if the name is available.
  - `name` string — The name that was checked.
  - `message` string — Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.
  - `reason` 'Invalid' | 'AlreadyExists' — Message providing the reason why the given name is invalid.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/azure-kusto-microsoft-kusto-kusto.md) · [All operations](https://skmtc.net/azure/apis/azure-kusto-microsoft-kusto-kusto/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/azure-kusto-microsoft-kusto-kusto/revisions/6c09537668b6/schema)
