{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-secure-firewall/json-schema/cisco-secure-firewall-netmap-vuln-schema.json",
  "title": "NetmapVuln",
  "description": "Represents the vulnerability object which is used to add a vuln to the Network Map",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-secure-firewall-network-map-api-openapi.yml#/components/schemas/NetmapVuln",
  "properties": {
    "cve": {
      "description": "The CVE number of the vuln (eg. 2020-1234)",
      "type": "string"
    },
    "description": {
      "description": "The description of the vuln. If this value is empty, the description is automatically taken from the title of the CVE",
      "type": "string"
    },
    "id": {
      "description": "ID of the vuln. When provided during creation, must be less than 2,000,000.<br>If not provided during creation, will be auto-assigned to a value greater than or equal to 2,000,000",
      "type": "string"
    },
    "ipAddress": {
      "description": "IP address of the host that contains the vuln",
      "type": "string"
    },
    "links": {
      "$ref": "#/$defs/ILinks",
      "type": "object"
    },
    "metadata": {
      "$ref": "#/$defs/IMetadata",
      "type": "object"
    },
    "name": {
      "type": "string"
    },
    "port": {
      "description": "The port associated with the vuln. If provided, must also provide a protocol",
      "format": "int32",
      "type": "integer"
    },
    "protocol": {
      "description": "The protocol associated with the vuln. Can be: tcp or udp. If provided, must also provide a port",
      "type": "string"
    },
    "source": {
      "description": "Name of the source of the vulnerability. This groups together vulns from a single source.<br>Vulns discovered using passive detection (from a NGFW/NGIPS device) have the source as 'RNA'",
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "IDomain": {
      "properties": {
        "id": {
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "ILinks": {
      "description": "This defines the self referencing links for the given resource.",
      "properties": {
        "parent": {
          "description": "Full resource URL path to reference the parent (if any) for this resource.",
          "type": "string"
        },
        "self": {
          "description": "Full resource URL path to reference this particular resource.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "IMetadata": {
      "properties": {
        "domain": {
          "$ref": "#/$defs/IDomain",
          "type": "object"
        },
        "isLocked": {
          "type": "boolean"
        },
        "lastUser": {
          "$ref": "#/$defs/IMetadataUser",
          "type": "object"
        },
        "matches": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "readOnly": {
          "$ref": "#/$defs/IReadonly",
          "type": "object"
        },
        "timestamp": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "IMetadataUser": {
      "properties": {
        "id": {
          "type": "string"
        },
        "links": {
          "$ref": "#/$defs/ILinks",
          "type": "object"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "IReadonly": {
      "properties": {
        "reason": {
          "enum": [
            "RBAC",
            "SYSTEM",
            "DOMAIN"
          ],
          "type": "string"
        },
        "state": {
          "type": "boolean"
        }
      },
      "type": "object"
    }
  }
}