---
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 databases resource name is valid and is not already in use.

## Path parameters

- `clusterName` string, required

## 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/ResourceGroupNameParameter` — unresolved $ref

## 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`

Azure operation completed successfully.

- 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)
