@RestController @RequestMapping(value="/node/ssh_command") @Feature(cls=SSH_COMMAND) public class CommandInfoController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
CommandInfoController(CommandService commandService,
CommandExecLogService commandExecLogService,
TriggerTokenLogServer triggerTokenLogServer) |
Modifier and Type | Method and Description |
---|---|
String |
batch(String id,
String params,
String nodes)
批量执行命令
|
String |
del(String id)
删除命令
|
String |
edit(com.alibaba.fastjson.JSONObject data)
新建/编辑命令
|
String |
getTriggerUrl(String id,
String rest)
get a trigger url
|
String |
page()
分页获取命令信息
|
String |
syncToWorkspace(String ids,
String toWorkspaceId)
同步到指定工作空间
|
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNode
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public CommandInfoController(CommandService commandService, CommandExecLogService commandExecLogService, TriggerTokenLogServer triggerTokenLogServer)
@RequestMapping(value="list", method=POST, produces="application/json") @Feature(method=LIST) public String page()
@RequestMapping(value="edit", method=POST, produces="application/json") @Feature(method=EDIT) public String edit(@RequestBody com.alibaba.fastjson.JSONObject data)
data
- 命令信息@RequestMapping(value="del", method=POST, produces="application/json") @Feature(method=DEL) public String del(String id)
id
- id@RequestMapping(value="batch", method=POST, produces="application/json") @Feature(method=EXECUTE) public String batch(String id, String params, @ValidatorItem(value=NOT_BLANK,msg="\u8fd0\u884c\u8282\u70b9\u4e0d\u80fd\u4e3a\u7a7a") String nodes) throws IOException
IOException
@GetMapping(value="sync-to-workspace", produces="application/json") @Feature(method=EDIT) @SystemPermission public String syncToWorkspace(@ValidatorItem String ids, @ValidatorItem String toWorkspaceId)
ids
- 节点IDtoWorkspaceId
- 分配到到工作空间IDCopyright © 2017–2022. All rights reserved.