{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-functions/json-schema/microsoft-azure-functions-dnl-resource-name-availability-schema.json",
  "title": "DnlResourceNameAvailability",
  "description": "Information regarding availability of a resource name for DNL apps with regionalized default hostnames.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-functions-subscriptions-api-openapi.yml#/components/schemas/DnlResourceNameAvailability",
  "type": "object",
  "properties": {
    "hostName": {
      "type": "string"
    },
    "nameAvailable": {
      "type": "boolean",
      "description": "<code>true</code> indicates name is valid and available. <code>false</code> indicates the name is invalid, unavailable, or both."
    },
    "reason": {
      "$ref": "#/$defs/InAvailabilityReasonType",
      "description": "<code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable."
    },
    "message": {
      "type": "string",
      "description": "If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name."
    }
  },
  "$defs": {
    "InAvailabilityReasonType": {
      "type": "string",
      "description": "<code>Invalid</code> indicates the name provided does not match Azure App Service naming requirements. <code>AlreadyExists</code> indicates that the name is already in use and is therefore unavailable.",
      "enum": [
        "Invalid",
        "AlreadyExists"
      ],
      "x-ms-enum": {
        "name": "InAvailabilityReasonType",
        "modelAsString": true,
        "values": [
          {
            "name": "Invalid",
            "value": "Invalid"
          },
          {
            "name": "AlreadyExists",
            "value": "AlreadyExists"
          }
        ]
      }
    }
  }
}