[pdm-devel] [PATCH datacenter-manager v2 4/4] pdm-client: add bindings for system report generation

Lukas Wagner l.wagner at proxmox.com
Mon Dec 1 16:32:29 CET 2025


This adds bindings for the `/nodes/localhost/report` endpoint which
returns a system report.

Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
Tested-by: Stefan Hanreich <s.hanreich at proxmox.com>
Reviewed-by: Shannon Sterz  <s.sterz at proxmox.com>
Tested-by: Shannon Sterz  <s.sterz at proxmox.com>
---
 lib/pdm-client/src/lib.rs | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/lib/pdm-client/src/lib.rs b/lib/pdm-client/src/lib.rs
index ddca3958..db92c1ef 100644
--- a/lib/pdm-client/src/lib.rs
+++ b/lib/pdm-client/src/lib.rs
@@ -1313,6 +1313,16 @@ impl<T: HttpApiClient> PdmClient<T> {
             .expect_json()?
             .data)
     }
+
+    /// Get remote update summary.
+    pub async fn generate_system_report(&self) -> Result<String, Error> {
+        Ok(self
+            .0
+            .get("/api2/extjs/nodes/localhost/report")
+            .await?
+            .expect_json()?
+            .data)
+    }
 }
 
 /// Builder for migration parameters.
-- 
2.47.3





More information about the pdm-devel mailing list