{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-networking-services/json-schema/azure-networking-services-bastion-shareable-link-list-request-schema.json",
  "title": "BastionShareableLinkListRequest",
  "description": "Post request for Create/Delete/Get Bastion Shareable Link endpoints.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-networking-services-bastionshareablelink-api-openapi.yml#/components/schemas/BastionShareableLinkListRequest",
  "type": "object",
  "properties": {
    "vms": {
      "type": "array",
      "description": "List of VM references.",
      "items": {
        "$ref": "#/$defs/BastionShareableLink"
      }
    }
  },
  "$defs": {
    "BastionShareableLink": {
      "type": "object",
      "description": "Bastion Shareable Link.",
      "properties": {
        "vm": {
          "$ref": "#/$defs/VM",
          "description": "Reference of the virtual machine resource."
        },
        "bsl": {
          "type": "string",
          "description": "The unique Bastion Shareable Link to the virtual machine.",
          "readOnly": true
        },
        "createdAt": {
          "type": "string",
          "description": "The time when the link was created.",
          "readOnly": true
        },
        "message": {
          "type": "string",
          "description": "Optional field indicating the warning or error message related to the vm in case of partial failure.",
          "readOnly": true
        }
      },
      "required": [
        "vm"
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Common resource representation.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        },
        "name": {
          "type": "string",
          "description": "Resource name.",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        },
        "location": {
          "type": "string",
          "description": "Resource location."
        },
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "x-ms-azure-resource": true
    },
    "VM": {
      "type": "object",
      "description": "Describes a Virtual Machine.",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}