Databases - Check Name Availability

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

HTTP
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability?api-version=2024-04-13

URI Parameters

Name In Required Type Description
clusterName
path True

string

The name of the Kusto cluster.

Regex pattern: ^.*$

resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Request Body

Name Required Type Description
name True

string

Resource name.

type True

Type

The type of resource, for instance Microsoft.Kusto/clusters/databases.

Responses

Name Type Description
200 OK

CheckNameResult

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

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Examples

KustoDatabasesCheckNameAvailability

Sample request

HTTP
POST https://management.azure.com/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/kustoCluster/checkNameAvailability?api-version=2024-04-13

{
  "name": "database1",
  "type": "Microsoft.Kusto/clusters/databases"
}

Sample response

JSON
{
  "name": "database1",
  "nameAvailable": false,
  "message": "Name 'database1' is already taken. Please specify a different name"
}

Definitions

Name Description
CheckNameRequest

The result returned from a database check name availability request.

CheckNameResult

The result returned from a check name availability request.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

reason

Message providing the reason why the given name is invalid.

Type

The type of resource, for instance Microsoft.Kusto/clusters/databases.

CheckNameRequest

The result returned from a database check name availability request.

Name Type Description
name

string

Resource name.

type

Type

The type of resource, for instance Microsoft.Kusto/clusters/databases.

CheckNameResult

The result returned from a check name availability request.

Name Type Description
message

string

Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.

name

string

The name that was checked.

nameAvailable

boolean

Specifies a Boolean value that indicates if the name is available.

reason

reason

Message providing the reason why the given name is invalid.

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

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

reason

Message providing the reason why the given name is invalid.

Value Description
AlreadyExists
Invalid

Type

The type of resource, for instance Microsoft.Kusto/clusters/databases.

Value Description
Microsoft.Kusto/clusters/attachedDatabaseConfigurations
Microsoft.Kusto/clusters/databases