[pdm-devel] [PATCH proxmox-datacenter-manager 1/2] client: expose search parameter

Stefan Hanreich s.hanreich at proxmox.com
Tue Dec 2 14:17:37 CET 2025


This parameter already exists in the respective API endpoint, but it
doesn't get exposed via the client. Expose the search parameter here
so it can be used by the UI.

Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
 lib/pdm-client/src/lib.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/pdm-client/src/lib.rs b/lib/pdm-client/src/lib.rs
index 84d8b4cf..01ee6f78 100644
--- a/lib/pdm-client/src/lib.rs
+++ b/lib/pdm-client/src/lib.rs
@@ -1048,11 +1048,13 @@ impl<T: HttpApiClient> PdmClient<T> {
         max_age: Option<u64>,
         resource_type: ResourceType,
         view: Option<&str>,
+        search: Option<&str>,
     ) -> Result<Vec<RemoteResources>, Error> {
         let path = ApiPathBuilder::new("/api2/extjs/resources/list")
             .maybe_arg("max-age", &max_age)
             .arg("resource-type", resource_type)
             .maybe_arg("view", &view)
+            .maybe_arg("search", &search)
             .build();
 
         Ok(self.0.get(&path).await?.expect_json()?.data)
-- 
2.47.3




More information about the pdm-devel mailing list