diff --git a/README.md b/README.md index 3257a0f..1a60efb 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Options: -?|-h|--help Show help information --version Show version information --host The host name host[:port],host1[:port],host2[:port] + --api-token Api token format 'USER@REALM!TOKENID=UUID'. Require Proxmox VE 6.2 or later --username User name @ --password The password. Specify 'file:path_file' to store password in file. --vmid The id or name VM/CT @@ -63,6 +64,13 @@ this software aims to simplify run SPICE client from Proxmox VE using command li * Not require Web login * Support multiple host for HA in --host parameter es. host[:port],host1[:port],host2[:port] * Check-Update and Upgrade application +* Use Api token --api-token parameter + +## Api token + +From version 6.2 of Proxmox VE is possible to use [Api token](https://pve.proxmox.com/pve-docs/pveum-plain.html). +This feature permit execute Api without using user and password. +If using **Privilege Separation** when create api token remember specify in permission. ## Configuration and use diff --git a/src/Corsinvest.ProxmoxVE.Pepper/Corsinvest.ProxmoxVE.Pepper.csproj b/src/Corsinvest.ProxmoxVE.Pepper/Corsinvest.ProxmoxVE.Pepper.csproj index e28b846..cced0a5 100644 --- a/src/Corsinvest.ProxmoxVE.Pepper/Corsinvest.ProxmoxVE.Pepper.csproj +++ b/src/Corsinvest.ProxmoxVE.Pepper/Corsinvest.ProxmoxVE.Pepper.csproj @@ -1,7 +1,7 @@ Exe - 1.3.0 + 1.3.1 netcoreapp3.1 cv4pve-pepper Corsinvest Srl @@ -19,6 +19,6 @@ - + \ No newline at end of file diff --git a/src/Corsinvest.ProxmoxVE.Pepper/Program.cs b/src/Corsinvest.ProxmoxVE.Pepper/Program.cs index 934b848..35aad00 100644 --- a/src/Corsinvest.ProxmoxVE.Pepper/Program.cs +++ b/src/Corsinvest.ProxmoxVE.Pepper/Program.cs @@ -22,8 +22,7 @@ namespace Corsinvest.ProxmoxVE.Pepper { static int Main(string[] args) { - var app = ShellHelper.CreateConsoleApp("cv4pve-pepper", - "Launching SPICE on Proxmox VE"); + var app = ShellHelper.CreateConsoleApp("cv4pve-pepper", "Launching SPICE on Proxmox VE"); var optVmId = app.VmIdOrNameOption().DependOn(app, CommandOptionExtension.HOST_OPTION_NAME); var optRemoteViewer = app.Option("--viewer", @@ -40,10 +39,9 @@ namespace Corsinvest.ProxmoxVE.Pepper if (ret) { - var process = new Process { - StartInfo = new ProcessStartInfo() + StartInfo = new ProcessStartInfo { UseShellExecute = false, CreateNoWindow = true,