---
title: "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability"
tags: ["Databases"]
---

# POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability`

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

## Path parameters

- `resourceGroupName` string, required
- `clusterName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- CheckNameRequest — The result returned from a database check name availability request.
  - `name` string, required — Resource name.
  - `type` 'Microsoft.Kusto/clusters/databases' | 'Microsoft.Kusto/clusters/attachedDatabaseConfigurations', required — The type of resource, for instance Microsoft.Kusto/clusters/databases.

## Response `200`

OK -- Operation to check the kusto resource name availability was successful.

- 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` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/kustomanagementclient.md) · [All operations](https://skmtc.net/azure/apis/kustomanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/kustomanagementclient/versions/9f0c01a1b449/schema)
