pbs_tape_drive_update
Update a PBS tape drive's device path, changer, or drive slot. Dry-run generates a plan; confirm executes the change.
Instructions
MUTATION: update a PBS tape drive config.
RISK_MEDIUM: repoints 'name' at (potentially) different physical hardware — a scheduled tape job using this drive next targets whatever device the new config names. Dry-run by default (captures current config into the PLAN); confirm=True executes (PUT /config/drive/{name}, synchronous — PBS returns null) and returns {"status": "ok", "result": None}. No snapshot primitive; re-apply the captured config to revert. Needs PROXIMO_PBS_* config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the existing tape drive to update. | |
| path | No | New device path, e.g. '/dev/sg0'. | |
| delete | No | Property names to clear: 'changer' and/or 'changer-drivenum'. | |
| digest | No | Optimistic-lock: 64-char lowercase hex SHA-256 of the config PBS last returned. If set and stale, PBS rejects the update. | |
| changer | No | New tape changer identifier association. | |
| confirm | No | False (default) returns a dry-run PLAN only; True executes the update. | |
| 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. | |
| changer_drivenum | No | New changer drive slot number (0-255). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |