{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure/json-schema/microsoft-azure-resource-link-schema.json",
  "title": "ResourceLink",
  "description": "The resource link.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-resource-links-api-openapi.yml#/components/schemas/ResourceLink",
  "properties": {
    "id": {
      "readOnly": true,
      "type": "string",
      "description": "The fully qualified ID of the resource link."
    },
    "name": {
      "readOnly": true,
      "type": "string",
      "description": "The name of the resource link."
    },
    "type": {
      "readOnly": true,
      "type": "object",
      "description": "The resource link object."
    },
    "properties": {
      "$ref": "#/$defs/ResourceLinkProperties",
      "description": "Properties for resource link."
    }
  },
  "x-ms-azure-resource": true,
  "$defs": {
    "ResourceLinkProperties": {
      "properties": {
        "sourceId": {
          "readOnly": true,
          "type": "string",
          "description": "The fully qualified ID of the source resource in the link. "
        },
        "targetId": {
          "type": "string",
          "description": "The fully qualified ID of the target resource in the link."
        },
        "notes": {
          "type": "string",
          "description": "Notes about the resource link."
        }
      },
      "required": [
        "targetId"
      ],
      "description": "The resource link properties."
    }
  }
}