Databases - Check Name Availability
Checks that the databases resource name is valid and is not already in use.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability?api-version=2024-04-13
Name | In | Required | Type | Description |
---|---|---|---|---|
cluster
|
path | True |
string |
The name of the Kusto cluster. Regex pattern: |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string |
The ID of the target subscription. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Name | Required | Type | Description |
---|---|---|---|
name | True |
string |
Resource name. |
type | True |
The type of resource, for instance Microsoft.Kusto/clusters/databases. |
Name | Type | Description |
---|---|---|
200 OK |
OK -- Operation to check the kusto resource name availability was successful. |
|
Other Status Codes |
Error response describing why the operation failed. |
Sample request
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
{
"name": "database1",
"nameAvailable": false,
"message": "Name 'database1' is already taken. Please specify a different name"
}
Name | Description |
---|---|
Check |
The result returned from a database check name availability request. |
Check |
The result returned from a check name availability request. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
reason |
Message providing the reason why the given name is invalid. |
Type |
The type of resource, for instance Microsoft.Kusto/clusters/databases. |
The result returned from a database check name availability request.
Name | Type | Description |
---|---|---|
name |
string |
Resource name. |
type |
The type of resource, for instance Microsoft.Kusto/clusters/databases. |
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 |
Message providing the reason why the given name is invalid. |
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
Message providing the reason why the given name is invalid.
Value | Description |
---|---|
AlreadyExists | |
Invalid |
The type of resource, for instance Microsoft.Kusto/clusters/databases.
Value | Description |
---|---|
Microsoft.Kusto/clusters/attachedDatabaseConfigurations | |
Microsoft.Kusto/clusters/databases |