{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/intruder/main/json-schema/intruder-target-schema.json",
  "title": "Target",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intruder-api-openapi.yml#/components/schemas/Target",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "readOnly": true
    },
    "address": {
      "type": "string"
    },
    "display_address": {
      "type": "string",
      "readOnly": true,
      "description": "Human-readable address (e.g. cloud account name)."
    },
    "has_api_schemas": {
      "type": "boolean",
      "readOnly": true
    },
    "has_authentications": {
      "type": "boolean",
      "readOnly": true
    },
    "last_scanned": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "readOnly": true,
      "description": "Date and time this target was last scanned."
    },
    "license_type": {
      "allOf": [
        {
          "$ref": "#/$defs/LicenseTypeEnum"
        }
      ],
      "readOnly": true
    },
    "waf_provider": {
      "type": [
        "string",
        "null"
      ],
      "readOnly": true,
      "description": "The WAF provider detected on this target, or null if none detected."
    },
    "waf_interference": {
      "type": [
        "boolean",
        "null"
      ],
      "readOnly": true,
      "description": "Whether a WAF is blocking scans on this target, or null if not applicable."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "readOnly": true
    },
    "target_status": {
      "allOf": [
        {
          "$ref": "#/$defs/TargetStatusEnum"
        }
      ],
      "readOnly": true
    },
    "target_type": {
      "allOf": [
        {
          "$ref": "#/$defs/TargetTypeEnum"
        }
      ],
      "readOnly": true
    }
  },
  "required": [
    "address",
    "display_address",
    "has_api_schemas",
    "has_authentications",
    "id",
    "last_scanned",
    "license_type",
    "tags",
    "target_status",
    "target_type",
    "waf_interference",
    "waf_provider"
  ],
  "$defs": {
    "LicenseTypeEnum": {
      "type": "string",
      "enum": [
        "infrastructure",
        "application"
      ]
    },
    "TargetStatusEnum": {
      "type": "string",
      "enum": [
        "live",
        "license_exceeded",
        "unscanned",
        "unresponsive",
        "agent_uninstalled"
      ]
    },
    "TargetTypeEnum": {
      "type": "string",
      "enum": [
        "external",
        "internal",
        "cloud",
        "container_image"
      ]
    }
  }
}