{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-bastion/json-schema/microsoft-azure-bastion-bastion-host-list-result-schema.json",
  "title": "BastionHostListResult",
  "description": "Response for ListBastionHosts API service call.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-bastion-bastionhosts-api-openapi.yml#/components/schemas/BastionHostListResult",
  "properties": {
    "value": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BastionHost"
      },
      "description": "List of Bastion Hosts in a resource group."
    },
    "nextLink": {
      "type": "string",
      "description": "URL to get the next set of results."
    }
  },
  "$defs": {
    "BastionHost": {
      "properties": {
        "properties": {
          "x-ms-client-flatten": true,
          "$ref": "#/$defs/BastionHostPropertiesFormat",
          "description": "Represents the bastion host resource."
        },
        "zones": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of availability zones denoting where the resource needs to come from."
        },
        "etag": {
          "type": "string",
          "readOnly": true,
          "description": "A unique read-only string that changes whenever the resource is updated."
        },
        "sku": {
          "description": "The sku of this Bastion Host.",
          "$ref": "#/$defs/Sku"
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ],
      "description": "Bastion Host resource."
    },
    "BastionHostIPConfiguration": {
      "properties": {
        "properties": {
          "x-ms-client-flatten": true,
          "$ref": "#/$defs/BastionHostIPConfigurationPropertiesFormat",
          "description": "Represents the ip configuration associated with the resource."
        },
        "name": {
          "type": "string",
          "description": "Name of the resource that is unique within a resource group. This name can be used to access the resource."
        },
        "etag": {
          "type": "string",
          "readOnly": true,
          "description": "A unique read-only string that changes whenever the resource is updated."
        },
        "type": {
          "readOnly": true,
          "type": "string",
          "description": "Ip configuration type."
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ],
      "description": "IP configuration of an Bastion Host."
    },
    "BastionHostIPConfigurationPropertiesFormat": {
      "properties": {
        "subnet": {
          "$ref": "#/$defs/SubResource",
          "description": "Reference of the subnet resource."
        },
        "publicIPAddress": {
          "$ref": "#/$defs/SubResource",
          "description": "Reference of the PublicIP resource. Null for private only bastion"
        },
        "provisioningState": {
          "readOnly": true,
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the bastion host IP configuration resource."
        },
        "privateIPAllocationMethod": {
          "$ref": "#/$defs/IPAllocationMethod",
          "description": "Private IP allocation method."
        }
      },
      "required": [
        "subnet"
      ],
      "description": "Properties of IP configuration of an Bastion Host."
    },
    "BastionHostPropertiesFormat": {
      "properties": {
        "ipConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BastionHostIPConfiguration"
          },
          "description": "IP configuration of the Bastion Host resource."
        },
        "dnsName": {
          "type": "string",
          "description": "FQDN for the endpoint on which bastion host is accessible."
        },
        "virtualNetwork": {
          "$ref": "#/$defs/SubResource",
          "description": "Reference to an existing virtual network required for Developer Bastion Host only."
        },
        "networkAcls": {
          "properties": {
            "ipRules": {
              "type": "array",
              "items": {
                "description": "IP rule with specific IP or IP range in CIDR format.",
                "$ref": "#/$defs/IPRule"
              },
              "description": "Sets the IP ACL rules for Developer Bastion Host."
            }
          }
        },
        "provisioningState": {
          "readOnly": true,
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the bastion host resource."
        },
        "scaleUnits": {
          "type": "integer",
          "format": "int32",
          "description": "The scale units for the Bastion Host resource.",
          "minimum": 2,
          "maximum": 50
        },
        "disableCopyPaste": {
          "type": "boolean",
          "default": false,
          "description": "Enable/Disable Copy/Paste feature of the Bastion Host resource."
        },
        "enableFileCopy": {
          "type": "boolean",
          "default": false,
          "description": "Enable/Disable File Copy feature of the Bastion Host resource."
        },
        "enableIpConnect": {
          "type": "boolean",
          "default": false,
          "description": "Enable/Disable IP Connect feature of the Bastion Host resource."
        },
        "enableShareableLink": {
          "type": "boolean",
          "default": false,
          "description": "Enable/Disable Shareable Link of the Bastion Host resource."
        },
        "enableTunneling": {
          "type": "boolean",
          "default": false,
          "description": "Enable/Disable Tunneling feature of the Bastion Host resource."
        },
        "enableKerberos": {
          "type": "boolean",
          "default": false,
          "description": "Enable/Disable Kerberos feature of the Bastion Host resource."
        },
        "enableSessionRecording": {
          "type": "boolean",
          "default": false,
          "description": "Enable/Disable Session Recording feature of the Bastion Host resource."
        },
        "enablePrivateOnlyBastion": {
          "type": "boolean",
          "default": false,
          "description": "Enable/Disable Private Only feature of the Bastion Host resource."
        }
      },
      "description": "Properties of the Bastion Host."
    },
    "IPAllocationMethod": {
      "type": "string",
      "description": "IP address allocation method.",
      "enum": [
        "Static",
        "Dynamic"
      ],
      "x-ms-enum": {
        "name": "IPAllocationMethod",
        "modelAsString": true
      }
    },
    "IPRule": {
      "properties": {
        "addressPrefix": {
          "type": "string",
          "description": "Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed."
        }
      },
      "type": "object"
    },
    "ProvisioningState": {
      "type": "string",
      "readOnly": true,
      "description": "The current provisioning state.",
      "enum": [
        "Succeeded",
        "Updating",
        "Deleting",
        "Failed"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true
      }
    },
    "Resource": {
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Resource name."
        },
        "type": {
          "readOnly": true,
          "type": "string",
          "description": "Resource type."
        },
        "location": {
          "type": "string",
          "description": "Resource location."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Resource tags."
        }
      },
      "description": "Common resource representation.",
      "x-ms-azure-resource": true
    },
    "Sku": {
      "description": "The sku of this Bastion Host.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the sku of this Bastion Host.",
          "enum": [
            "Basic",
            "Standard",
            "Developer",
            "Premium"
          ],
          "default": "Standard",
          "x-ms-enum": {
            "name": "BastionHostSkuName",
            "modelAsString": true
          }
        }
      },
      "type": "object"
    },
    "SubResource": {
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      },
      "description": "Reference to another subresource.",
      "x-ms-azure-resource": true
    }
  }
}