Servers

Determines whether a resource can be created with the specified name.

post/subscriptions/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability

Parameters

../../../common/v1/types.json#/components/parameters/ApiVersionParameter — unresolved $ref
../../../common/v1/types.json#/components/parameters/SubscriptionIdParameter — unresolved $ref

Request body

namestring required

The name whose availability is to be checked.

type'Microsoft.Sql/servers' required

The type of resource that is used as the scope of the availability check.

Response

OK

availableboolean

True if the name is available, otherwise false.

messagestring

A message explaining why the name is unavailable. Will be null if the name is available.

namestring

The name whose availability was checked.

reason'Invalid' | 'AlreadyExists'

The reason code explaining why the name is unavailable. Will be null if the name is available.

Changes