{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-arc/json-schema/microsoft-azure-arc-extension-value-v2-schema.json",
  "title": "ExtensionValueV2",
  "description": "Describes an Extension Metadata.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-arc-extensions-api-openapi.yml#/components/schemas/ExtensionValueV2",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ExtensionValueV2Properties",
      "description": "The single extension based on search criteria.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "ExtensionValueProperties": {
      "type": "object",
      "description": "Describes Extension Metadata properties",
      "properties": {
        "version": {
          "type": "string",
          "description": "The version of the Extension being received.",
          "readOnly": true
        },
        "extensionType": {
          "type": "string",
          "description": "The type of the Extension being received.",
          "readOnly": true
        },
        "publisher": {
          "type": "string",
          "description": "The publisher of the Extension being received.",
          "readOnly": true
        }
      }
    },
    "ExtensionValueV2Properties": {
      "type": "object",
      "description": "Describes Extension Metadata properties.",
      "properties": {
        "extensionUris": {
          "type": "array",
          "description": "A list of locations where the extension packages can be found.",
          "items": {
            "type": "string",
            "format": "uri"
          },
          "readOnly": true
        },
        "extensionSignatureUri": {
          "type": "string",
          "format": "uri",
          "description": "Location of the signature files for the extension.",
          "readOnly": true
        },
        "operatingSystem": {
          "type": "string",
          "description": "The operating system (Windows, Linux, etc.) this extension supports.",
          "readOnly": true
        },
        "architecture": {
          "type": "array",
          "description": "Architectures (x64, arms64, etc.) that this extension supports.",
          "items": {
            "type": "string"
          },
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/ExtensionValueProperties"
        }
      ]
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}