pbs_tape_changer_create
Create a PBS tape changer configuration by mapping a name to a SCSI device path. Dry-run returns a plan; confirm to execute.
Instructions
MUTATION: create a PBS tape changer config.
RISK_MEDIUM: maps 'name' onto real host hardware at 'path' — a wrong path means a future tape job silently targets the wrong physical changer/robot. Dry-run by default (returns a PLAN); confirm=True executes (POST /config/changer, synchronous — PBS returns null) and returns {"status": "ok", "result": None}. Needs PROXIMO_PBS_* config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New tape changer identifier (3-32 chars, alnum/underscore start, then alnum/./_/-). | |
| path | Yes | Path to the Linux generic SCSI device, e.g. '/dev/sg4'. | |
| confirm | No | False (default) returns a dry-run PLAN only; True executes the creation. | |
| export_slots | No | Comma-separated slot numbers reserved for Import/Export (e.g. '1,2,3') — media in those slots is considered offline. | |
| 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. | |
| eject_before_unload | No | If True, tapes are ejected manually before unloading. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |