feat: manual host add from Hosts list via WinRM/SSH (0.4.5)
Add host button probes Windows by hostname or Linux by IP, registers host in SAC and deploys agent in background. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -575,6 +575,18 @@ export function runHostAgentUpdateFallback(hostId: number): Promise<HostRemoteAc
|
||||
);
|
||||
}
|
||||
|
||||
export interface HostManualAddRequest {
|
||||
platform: "windows" | "linux";
|
||||
target: string;
|
||||
}
|
||||
|
||||
export function addHostManually(body: HostManualAddRequest): Promise<HostRemoteActionStartResult> {
|
||||
return apiFetch<HostRemoteActionStartResult>("/api/v1/hosts/manual-add", {
|
||||
method: "POST",
|
||||
body: JSON.stringify(body),
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchHostRemoteJob(hostId: number): Promise<HostRemoteActionJobStatus> {
|
||||
return apiFetch<HostRemoteActionJobStatus>(`/api/v1/hosts/${hostId}/actions/remote-job`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user