[pve-devel] applied: [PATCH apiclient] implement api token support
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Feb 5 11:22:22 CET 2020
Am 1/30/20 um 12:07 PM schrieb Fabian Grünbichler:
> and add an example for it.
>
> Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
> ---
> PVE/APIClient/LWP.pm | 22 ++++++++++++++++++++--
> examples/example3.pl | 24 ++++++++++++++++++++++++
> 2 files changed, 44 insertions(+), 2 deletions(-)
> create mode 100755 examples/example3.pl
applied, thanks!
> +use PVE::APIClient::LWP;
> +
> +use JSON;
> +
> +my $apitoken = 'PVEAPIToken=USER at REALM!TOKENID=TOKENVALUE';
it could make sense to add that ourself for convenience, i.e., if the token
does not matches /^PVEAPIToken[ =]/
More information about the pve-devel
mailing list