{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-voice-portal/json-schema/cisco-voice-portal-device-schema.json",
  "title": "Device",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-voice-portal-device-management-api-openapi.yml#/components/schemas/Device",
  "type": "object",
  "properties": {
    "deviceId": {
      "type": "string",
      "description": "Unique identifier for the device"
    },
    "hostname": {
      "type": "string",
      "description": "Hostname of the device"
    },
    "ipAddress": {
      "type": "string",
      "format": "ipv4",
      "description": "IP address of the device"
    },
    "deviceType": {
      "type": "string",
      "enum": [
        "CallServer",
        "VXMLServer",
        "ReportingServer",
        "MediaServer",
        "OAMPServer"
      ],
      "description": "Type of CVP component"
    },
    "description": {
      "type": "string",
      "description": "Device description"
    },
    "status": {
      "type": "string",
      "enum": [
        "online",
        "offline",
        "maintenance",
        "error"
      ],
      "description": "Current operational status"
    },
    "version": {
      "type": "string",
      "description": "Software version installed on the device"
    },
    "lastContact": {
      "type": "string",
      "format": "date-time",
      "description": "Last time the OAMP server contacted this device"
    }
  }
}