[pdm-devel] [PATCH proxmox-datacenter-manager 3/9] pbs client: add termproxy wrapper

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Nov 11 09:29:26 CET 2025


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    new in v1, requires bumped pbs-api-types

 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 4908736..f2b4838 100644
--- a/server/src/pbs_client.rs
+++ b/server/src/pbs_client.rs
@@ -238,6 +238,12 @@ impl PbsClient {
         Ok(self.0.get(path).await?.expect_json()?.data)
     }
 
+    /// Return a term ticket for calling the vncwebsocket endpoint
+    pub async fn node_shell_termproxy(&self) -> Result<pbs_api_types::NodeShellTicket, Error> {
+        let path = "/api2/extjs/nodes/localhost/termproxy";
+        Ok(self.0.post_without_body(path).await?.expect_json()?.data)
+    }
+
     /// Return the datastore status
     pub async fn datastore_status(
         &self,
-- 
2.47.3





More information about the pdm-devel mailing list