{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-iq-connection-xo-schema.json",
  "title": "IqConnectionXo",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-manage-sonatype-repository-firewall-configuration-api-openapi.yml#/components/schemas/IqConnectionXo",
  "required": [
    "authenticationType",
    "url"
  ],
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean",
      "description": "Whether to use Sonatype Repository Firewall"
    },
    "showLink": {
      "type": "boolean",
      "description": "Show Sonatype Repository Firewall link in Browse menu when server is enabled"
    },
    "url": {
      "minLength": 1,
      "type": "string",
      "description": "The address of your Sonatype Repository Firewall"
    },
    "authenticationType": {
      "type": "string",
      "description": "Authentication method",
      "enum": [
        "USER",
        "PKI"
      ]
    },
    "username": {
      "type": "string",
      "description": "User with access to Sonatype Repository Firewall"
    },
    "password": {
      "type": "string",
      "description": "Credentials for the Sonatype Repository Firewall User"
    },
    "useTrustStoreForUrl": {
      "type": "boolean",
      "description": "Use certificates stored in the Nexus Repository Manager truststore to connect to Sonatype Repository Firewall"
    },
    "timeoutSeconds": {
      "maximum": 3600,
      "minimum": 1,
      "type": "integer",
      "description": "Seconds to wait for activity before stopping and retrying the connection. Leave blank to use the globally defined HTTP timeout.",
      "format": "int32"
    },
    "properties": {
      "type": "string",
      "description": "Additional properties to configure for Sonatype Repository Firewall"
    },
    "failOpenModeEnabled": {
      "type": "boolean",
      "description": "Allow by default when quarantine is enabled and the IQ connection fails"
    },
    "licensedSolutions": {
      "type": "array",
      "description": "List of licensed solutions available in the connected IQ Server",
      "items": {
        "$ref": "#/$defs/LicensedSolutionXO"
      }
    },
    "hasFirewall": {
      "type": "boolean",
      "description": "Whether the connected IQ Server has Firewall enabled"
    }
  },
  "$defs": {
    "LicensedSolutionXO": {
      "required": [
        "id",
        "url"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Solution identifier (lifecycle, firewall, sbom, developer)"
        },
        "url": {
          "type": "string",
          "description": "Dashboard URL for this solution"
        }
      },
      "description": "Licensed Solution"
    }
  }
}