[pdm-devel] [PATCH proxmox 1/3] pbs-api-types: add NodeShellTicket

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


used for termproxy endpoint calls

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

Notes:
    new in v1, used by PBS and PDM

 pbs-api-types/src/node.rs | 36 +++++++++++++++++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/pbs-api-types/src/node.rs b/pbs-api-types/src/node.rs
index c4e9a179..4231f312 100644
--- a/pbs-api-types/src/node.rs
+++ b/pbs-api-types/src/node.rs
@@ -1,8 +1,10 @@
 use std::ffi::OsStr;
 
-use proxmox_schema::*;
 use serde::{Deserialize, Serialize};
 
+use proxmox_auth_api::types::Authid;
+use proxmox_schema::*;
+
 use crate::StorageStatus;
 
 #[api]
@@ -160,3 +162,35 @@ pub struct NodeStatus {
     /// Current boot mode
     pub boot_info: BootModeInformation,
 }
+
+#[api(
+    properties: {
+        port: {
+            type: Integer,
+        },
+        ticket: {
+            type: String,
+        },
+        upid: {
+            type: String,
+        },
+        user: {
+            type: String,
+        },
+    },
+)]
+/// Ticket used for authenticating a VNC websocket upgrade request.
+#[derive(Debug, serde::Deserialize, serde::Serialize)]
+pub struct NodeShellTicket {
+    /// port used to bind termproxy to
+    pub port: u16,
+
+    /// ticket used to verifiy websocket connection
+    pub ticket: String,
+
+    /// UPID for termproxy worker task
+    pub upid: String,
+
+    /// user or authid encoded in the ticket
+    pub user: Authid,
+}
-- 
2.47.3





More information about the pdm-devel mailing list