pbs_job_run
Trigger a PBS job (sync, verify, or prune) immediately outside its normal schedule. Use dry-run to preview changes before confirming execution.
Instructions
MUTATION: trigger a PBS scheduled job immediately, outside its normal schedule. job_type = sync|verify|prune. Dry-run by default; confirm=True to execute. SCHEMA QUIRK (live PBS apidoc, 2026-07-15, Wave 5c review Finding 4): POST /admin/{type}/{id}/run declares returns:null for all three types — when PBS returns nothing the run completed (or at least was accepted) synchronously and the status is "ok"; if a UPID does come back (the schema may be under-documented), the status is "submitted" and pbs_tasks_list tracks it. Risk depends on job_type: prune runs permanently DELETE snapshots per the retention policy, sync may add/remove directory data, verify is read-only. Needs PROXIMO_PBS_* config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ID of the PBS scheduled job to trigger immediately. | |
| confirm | No | Gate: false returns a dry-run PLAN, true executes the run. | |
| job_type | Yes | PBS job type: sync | verify | prune. | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |