pve_token_create
Create a Proxmox API token with a dry-run plan showing privilege risks. Confirm to execute; secret returned once.
Instructions
MUTATION: create an API token for a user.
Dry-run by default — the PLAN shows risk (privsep=False is HIGH: token inherits ALL owner perms). confirm=True to execute. The token secret (value) is returned ONCE to the caller and is NEVER written to the audit ledger. Synchronous.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expire | No | ||
| userid | Yes | ||
| comment | No | ||
| confirm | No | ||
| privsep | No | ||
| tokenid | Yes | ||
| 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 |