@RestController @RequestMapping(value="node/ssh") @Feature(cls=SSH) public class SshInstallAgentController extends BaseServerController
NODE_ID| Constructor and Description |
|---|
SshInstallAgentController(SshService sshService,
NodeService nodeService) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAgent() |
String |
installAgentSubmit(String id,
String nodeData,
String path) |
String |
uploadAgent() |
checkCron, getNode, getUser, getUserByThreadLocal, getUserModel, removeAll, removeEmpty, resetInfo, resetInfo, tryGetNodecheckPathSafe, pathSafeclearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFilegetApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributespublic SshInstallAgentController(SshService sshService, NodeService nodeService)
@GetMapping(value="get_agent.json",
produces="application/json")
@SystemPermission
public String getAgent()
throws IOException
IOException@RequestMapping(value="upload_agent.json",
method=POST,
produces="application/json")
@Feature(method=EXECUTE)
@SystemPermission
public String uploadAgent()
throws Exception
Exception@RequestMapping(value="installAgentSubmit.json",
method=POST,
produces="application/json")
@Feature(method=EXECUTE)
@SystemPermission
public String installAgentSubmit(@ValidatorItem(value=NOT_BLANK)
String id,
@ValidatorItem(value=NOT_BLANK,msg="\u8282\u70b9\u6570\u636e")
String nodeData,
@ValidatorItem(value=NOT_BLANK,msg="\u5b89\u88c5\u8def\u5f84")
String path)
throws Exception
ExceptionCopyright © 2017–2022. All rights reserved.