@RestController @NotLogin public class SshCommandTriggerApiController extends BaseJpomController
Constructor and Description |
---|
SshCommandTriggerApiController(CommandService commandService,
TriggerTokenLogServer triggerTokenLogServer) |
Modifier and Type | Method and Description |
---|---|
String |
trigger2(String id,
String token)
执行脚本
|
String |
triggerBatch()
构建触发器
|
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, resetInfo
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public SshCommandTriggerApiController(CommandService commandService, TriggerTokenLogServer triggerTokenLogServer)
@RequestMapping(value="/api//ssh_command/{id}/{token}", produces="application/json") public String trigger2(@PathVariable String id, @PathVariable String token)
id
- 构建IDtoken
- 构建的token@PostMapping(value="/api//ssh_command_batch", produces="application/json") public String triggerBatch()
参数 [
{
"id":"1",
"token":"a"
}
]
响应 [
{
"id":"1",
"token":"a",
"batchId":"1",
"msg":"没有对应数据",
}
]
Copyright © 2017–2022. All rights reserved.