Other Data Models¶
The plugin's main plugin-specific models are:
ProxmoxEndpoint: Proxmox cluster or node credentials and connectivity settingsNetBoxEndpoint: target NetBox API endpoint and token configurationFastAPIEndpoint:proxbox-apibackend connectivity settingsProxmoxStorage: synchronized storage rows linked to NetBox clusters and virtual disksVMBackup: backup metadata for synchronized virtual machinesVMSnapshot: snapshot metadata for synchronized virtual machinesVMTaskHistory: archived Proxmox task history linked to virtual machinesBackupRoutine: Proxmox vzdump backup schedule metadata with retention policies and schedulingReplication: Proxmox storage replication job metadata for virtual machinesProxboxPluginSettings: singleton-style plugin behavior toggles
These models are exposed through the plugin UI and plugin REST API using standard NetBox model views and viewsets.
BackupRoutine Model¶
The BackupRoutine model tracks Proxmox vzdump backup schedules synchronized from Proxmox endpoints. Key fields include:
- endpoint: Link to the ProxmoxEndpoint this backup routine was discovered from
- job_id: Unique Proxmox job identifier (e.g., 'local:123')
- enabled: Whether this backup job is currently enabled
- schedule: Systemd calendar format schedule string (e.g., 'daily 04:00')
- next_run: Computed next scheduled run time
- node: Node to run backup on (null = all nodes)
- storage: Target storage for backup files
- selection: List of VMID values selected for this backup job
- status: Active or stale (stale routines no longer exist in Proxmox)
Retention Fields¶
keep_last: Number of last backups to retainkeep_daily: Number of daily backups to retainkeep_weekly: Number of weekly backups to retainkeep_monthly: Number of monthly backups to retainkeep_yearly: Number of yearly backups to retainkeep_all: Retain all backups regardless of other retention settings
Advanced Fields¶
bwlimit: I/O bandwidth limit in KiB/s (0 = unlimited)zstd: Number of zstd compression threads (0 = auto)io_workers: Number of IO workers for parallel processingfleecing: Options for backup fleecing (VM only)fleecing_storage: Storage to use for fleecing operationsrepeat_missed: Run the job as soon as possible if missed while scheduler was not runningpbs_change_detection_mode: PBS mode used to detect file changes for container backupsraw_config: Full raw configuration from Proxmox API for reference
Replication Model¶
The Replication model stores Proxmox storage replication metadata attached to NetBox VirtualMachines. Key fields include:
- virtual_machine: Link to the NetBox VirtualMachine
- proxmox_node: Target Proxmox node for replication
- guest: Guest ID (VM ID)
- target: Target node for replication
- job_type: Replication type (currently only "local")
- schedule: Replication schedule in systemd calendar format
- rate: Rate limit in MB/s
- disable: Flag to disable the replication entry
- replication_id: Unique replication job ID composed of guest ID and job number ('
- ')