proxctl_bindings/api/qemu.rs
1use crate::resources::qemu::NodeQemuResponse;
2
3use crate::ProxmoxApi;
4
5impl ProxmoxApi {
6 // QEMU
7 pub async fn get_node_qemu(&self, node: &str) -> Result<NodeQemuResponse, reqwest::Error> {
8 let path = format!("/api2/json/nodes/{}/qemu", node);
9 let response = self.client.get(&path).await?;
10
11 let qemu_response: NodeQemuResponse = response.json().await?;
12 Ok(qemu_response)
13 }
14}