Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Polish: Standardize agent command API usage

rcourtmanc8f4705c5c4c
diff --git a/frontend-modern/src/api/nodes.ts b/frontend-modern/src/api/nodes.ts
index 1a45127d63..c45c227c29 100644
--- a/frontend-modern/src/api/nodes.ts
+++ b/frontend-modern/src/api/nodes.ts
@@ -76,4 +76,14 @@ export class NodesAPI {
method: 'POST',
});
}
+
+ static async getAgentInstallCommand(params: {
+ type: 'pve';
+ enableProxmox: boolean;
+ }): Promise<{ command: string }> {
+ return apiFetchJSON('/api/agent-install-command', {
+ method: 'POST',
+ body: JSON.stringify(params),
+ });
+ }
}