🔨 执行命令.

This commit is contained in:
lijiahang
2024-03-14 19:46:05 +08:00
parent e98bace51b
commit 6bd2640af7
25 changed files with 900 additions and 181 deletions

View File

@@ -4,11 +4,12 @@ import axios from 'axios';
* 执行命令请求
*/
export interface ExecCommandRequest {
templateId?: number;
logId?: number;
description?: string;
timeout?: number;
command?: string;
parameter?: string;
parameterSchema?: string;
hostIdList?: number[];
}
@@ -38,6 +39,13 @@ export function execCommand(request: ExecCommandRequest) {
return axios.post<ExecCommandResponse>('/asset/exec/exec-command', request);
}
/**
* 重新执行命令
*/
export function reExecCommand(request: ExecCommandRequest) {
return axios.post<ExecCommandResponse>('/asset/exec/re-exec-command', request);
}
/**
* 中断执行命令
*/