pbs_traffic_control_upsert
Create or update a PBS traffic-control rule for bandwidth limits. Dry-run by default; set confirm=True to execute.
Instructions
MUTATION: create or update a PBS traffic-control (bandwidth-limit) rule. Dry-run by default.
Detects create-vs-update by reading the existing rule config (CAPTURE on update path): create → LOW: additive, no existing rule changed. update → MEDIUM: changing rate limits can throttle backups or saturate the network.
A too-low rate-in or rate-out throttles PBS backups to a crawl. No rollback primitive. confirm=True to execute. Use pbs_traffic_controls_list to see existing rules first, or pbs_traffic_control_delete to remove one.
POST (create) or PUT (update) /config/traffic-control[/{name}] Smoke-confirm: create-vs-update dispatch; rate-in/rate-out/burst-in/burst-out/timeframe param names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Traffic-control rule name; creates it if new, updates it if it already exists. | |
| comment | No | Free-text comment/description for the rule. | |
| confirm | No | Set True to execute; False (default) only returns the dry-run plan. | |
| network | No | Network/CIDR this rule applies to. | |
| rate_in | No | Sustained inbound bandwidth limit in bytes/second. | |
| burst_in | No | Inbound burst bandwidth allowance in bytes. | |
| rate_out | No | Sustained outbound bandwidth limit in bytes/second. | |
| burst_out | No | Outbound burst bandwidth allowance in bytes. | |
| timeframe | No | Time window this rule is active (PBS traffic-control timeframe format). | |
| 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 |