pbs_tape_drive_barcode_label_media
Relabel tape drive media using barcode scanner data from the changer. Dry-run by default; confirm to execute and assign to a pool.
Instructions
MUTATION: label a drive's mounted media using barcodes read from the changer device.
RISK_HIGH: same "prior content becomes unaddressable" reasoning as pbs_tape_drive_label_media — the new label is sourced from the changer's barcode scan instead of a caller-supplied string. No built-in emptiness check. Dry-run by default (returns a PLAN); confirm=True executes (POST /tape/drive/{drive}/barcode-label-media) and returns {"status": "submitted", "result": ""}. No undo. Needs PROXIMO_PBS_* config.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | No | Media pool to assign the newly-labeled media to. Omit to assign it to the free-media pool. | |
| drive | Yes | Drive identifier. | |
| confirm | No | False (default) returns a dry-run PLAN only; True executes the label write. | |
| 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 |