From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 44E7D1FF142 for ; Fri, 22 May 2026 10:34:50 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id AA67A254B; Fri, 22 May 2026 10:34:48 +0200 (CEST) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager v3 1/6] server: pbs client: add node_config method Date: Fri, 22 May 2026 10:34:02 +0200 Message-ID: <20260522083412.1223719-7-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260522083412.1223719-1-d.csapak@proxmox.com> References: <20260522083412.1223719-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.050 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: LENBZWJIQ56W2F4WBCKEBEW5YB67UPRN X-Message-ID-Hash: LENBZWJIQ56W2F4WBCKEBEW5YB67UPRN X-MailFrom: d.csapak@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: we need that for getting the location data out of the config of PBS remotes. Signed-off-by: Dominik Csapak --- server/src/pbs_client.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/src/pbs_client.rs b/server/src/pbs_client.rs index c3025091..1b4d0fce 100644 --- a/server/src/pbs_client.rs +++ b/server/src/pbs_client.rs @@ -297,6 +297,12 @@ impl PbsClient { Ok(self.0.post_without_body(path).await?.expect_json()?.data) } + /// Return the node config of the Proxmox Backup Server instance + pub async fn node_config(&self) -> Result { + let path = "/api2/extjs/nodes/localhost/config"; + Ok(self.0.get(path).await?.expect_json()?.data) + } + /// Return the datastore status pub async fn datastore_status( &self, -- 2.47.3