{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fortify/main/json-schema/fortify-sensor-list-response-schema.json",
  "title": "SensorListResponse",
  "description": "List of sensors",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fortify-sensors-api-openapi.yml#/components/schemas/SensorListResponse",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Sensor"
      }
    },
    "totalCount": {
      "type": "integer",
      "format": "int32"
    }
  },
  "$defs": {
    "Sensor": {
      "type": "object",
      "description": "A WebInspect sensor",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier"
        },
        "name": {
          "type": "string",
          "description": "Sensor name"
        },
        "hostName": {
          "type": "string",
          "description": "Host name of the sensor machine"
        },
        "ipAddress": {
          "type": "string",
          "description": "IP address of the sensor"
        },
        "status": {
          "type": "string",
          "description": "Current sensor status",
          "enum": [
            "Active",
            "Inactive",
            "Disabled"
          ]
        },
        "sensorPoolId": {
          "type": "string",
          "format": "uuid",
          "description": "Assigned sensor pool"
        },
        "sensorPoolName": {
          "type": "string",
          "description": "Name of the assigned sensor pool"
        },
        "webInspectVersion": {
          "type": "string",
          "description": "Version of WebInspect on the sensor"
        },
        "lastHeartbeat": {
          "type": "string",
          "format": "date-time",
          "description": "Last heartbeat timestamp"
        },
        "operatingSystem": {
          "type": "string",
          "description": "Operating system of the sensor"
        },
        "isRunning": {
          "type": "boolean",
          "description": "Whether the sensor is currently running a scan"
        }
      }
    }
  }
}