{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-sql-database/json-schema/microsoft-azure-sql-database-check-name-availability-response-schema.json",
  "title": "CheckNameAvailabilityResponse",
  "description": "The result of a name availability check.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-sql-database-servers-api-openapi.yml#/components/schemas/CheckNameAvailabilityResponse",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name whose availability was checked.",
      "readOnly": true
    },
    "available": {
      "type": "boolean",
      "description": "True if the name is available, otherwise false.",
      "readOnly": true
    },
    "reason": {
      "type": "string",
      "description": "The reason code explaining why the name is unavailable. Will be undefined if the name is available.",
      "enum": [
        "Invalid",
        "AlreadyExists"
      ],
      "x-ms-enum": {
        "name": "CheckNameAvailabilityReason",
        "modelAsString": false,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid",
            "description": "Invalid"
          },
          {
            "name": "AlreadyExists",
            "value": "AlreadyExists",
            "description": "AlreadyExists"
          }
        ]
      }
    },
    "message": {
      "type": "string",
      "description": "A message explaining why the name is unavailable. Will be undefined if the name is available.",
      "readOnly": true
    }
  }
}