@RestController @RequestMapping(value="node/ssh") @Feature(cls=SSH) public class SshController extends BaseServerController
NODE_ID, nodeService
Constructor and Description |
---|
SshController(SshService sshService,
SshTerminalExecuteLogService sshTerminalExecuteLogService,
BuildInfoService buildInfoService) |
Modifier and Type | Method and Description |
---|---|
String |
checkAgent(String ids)
检查 ssh 是否安装插件端
|
String |
del(String id) |
cn.jiangzeyin.common.JsonMessage<SshModel> |
getItem(String id) |
cn.jiangzeyin.common.JsonMessage<PageResultDto<SshModel>> |
listData() |
cn.jiangzeyin.common.JsonMessage<List<SshModel>> |
listDataAll() |
String |
logListData()
执行记录
|
String |
save(String name,
String host,
String user,
String password,
SshModel.ConnectType connectType,
String privateKey,
int port,
String charset,
String fileDirs,
String id,
String notAllowedCommand)
编辑
|
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 SshController(SshService sshService, SshTerminalExecuteLogService sshTerminalExecuteLogService, BuildInfoService buildInfoService)
@PostMapping(value="list_data.json", produces="application/json") @Feature(method=LIST) public cn.jiangzeyin.common.JsonMessage<PageResultDto<SshModel>> listData()
@GetMapping(value="list_data_all.json", produces="application/json") @Feature(method=LIST) public cn.jiangzeyin.common.JsonMessage<List<SshModel>> listDataAll()
@GetMapping(value="get-item.json", produces="application/json") @Feature(method=LIST) public cn.jiangzeyin.common.JsonMessage<SshModel> getItem(@ValidatorItem String id)
@PostMapping(value="save.json", produces="application/json") @Feature(method=EDIT) public String save(@ValidatorItem(value=NOT_BLANK,msg="ssh\u540d\u79f0\u4e0d\u80fd\u4e3a\u7a7a") String name, @ValidatorItem(value=NOT_BLANK,msg="host\u4e0d\u80fd\u4e3a\u7a7a") String host, @ValidatorItem(value=NOT_BLANK,msg="user\u4e0d\u80fd\u4e3a\u7a7a") String user, String password, SshModel.ConnectType connectType, String privateKey, @ValidatorItem(value=POSITIVE_INTEGER,msg="port\u9519\u8bef") int port, String charset, String fileDirs, String id, String notAllowedCommand)
name
- 名称host
- 端口user
- 用户名password
- 密码connectType
- 连接方式privateKey
- 私钥port
- 端口charset
- 编码格式fileDirs
- 文件夹id
- IDnotAllowedCommand
- 禁止输入的命令@GetMapping(value="check_agent.json", produces="application/json") @Feature(method=LIST) public String checkAgent(String ids)
ids
- ids@PostMapping(value="del.json", produces="application/json") @Feature(method=DEL) public String del(@ValidatorItem(value=NOT_BLANK) String id)
@PostMapping(value="log_list_data.json", produces="application/json") @Feature(cls=SSH_TERMINAL_LOG, method=LIST) public String logListData()
Copyright © 2017–2022. All rights reserved.