[PATCH common v2 6/9] pbs-client: add support for the 'server-identity' command

Lukas Wagner
2026-04-24T08:30:53Z

This allows us to retrieve a unique instance identifier for a PBS
server.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
---
src/PVE/PBSClient.pm | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/src/PVE/PBSClient.pm b/src/PVE/PBSClient.pm
index 6333304..5af0d00 100644
--- a/src/PVE/PBSClient.pm
+++ b/src/PVE/PBSClient.pm
@@ -257,6 +257,13 @@ my sub split_namespaced_parameter : prototype($$) {
return ($namespace, $snapshot);
}

+# Get the server identity information for this backup server.
+sub get_server_identity {
+ my ($self) = @_;
+
+ return run_client_cmd($self, "server-identity");
+}
+
# lists all snapshots, optionally limited to a specific group
sub get_snapshots {
my ($self, $group) = @_;
--
2.47.3