]> git.proxmox.com Git - pmg-api.git/commitdiff
fix #4944: api/pbs remote: Add a port config
authorMaximiliano Sandoval <m.sandoval@proxmox.com>
Mon, 4 Sep 2023 13:54:37 +0000 (15:54 +0200)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 12 Sep 2023 14:36:52 +0000 (16:36 +0200)
Allows to set a port via

    pmgbackup proxmox-backup remote set REMOTE --port PORT

The client perl-module is shared with Proxmox VE, where the required
bits for this to work are already implemented.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
src/PMG/PBSConfig.pm

index ee506f1feda743a35aca0683d4bc4a622ed982d6..998e96033164d70b98035a08142834bfb53db154 100644 (file)
@@ -96,6 +96,14 @@ sub properties {
            type => 'string',
            optional => 1,
        },
+       port => {
+           description => "Non-default port for Proxmox Backup Server.",
+           optional => 1,
+           type => 'integer',
+           minimum => 1,
+           maximum => 65535,
+           default => 8007,
+       },
        username => get_standard_option('pmg-email-address', {
            description => "Username or API token ID on the Proxmox Backup Server"
        }),
@@ -123,6 +131,7 @@ sub options {
        disable => { optional => 1 },
        username => { optional => 1 },
        password => { optional => 1 },
+       port => { optional => 1 },
        fingerprint => { optional => 1 },
        notify => { optional => 1 },
        'include-statistics' => { optional => 1 },