User
Execute a command as the specified user
Changed onExecutes a command on the system as the specified user (private API)
post/api/user/run_command
Request
- The document declares no server URL.
- AuthsocaAuth (a scheme the document does not define) and socaToken (a scheme the document does not define)
Headers
X-EDH-USERstring required
SOCA username to execute command as
Request body application/x-www-form-urlencoded
Example request
{
"command": "ls -la /home"
}Response
Command executed successfully
Example response
{
"success": true,
"message": "total 4 drwxr-xr-x 3 root root 4096 Jan 1 12:00 user.name"
}Changes
- info
the endpoint scheme security
socaAuth AND socaTokenwas added to the API - info
the endpoint scheme security
edhAuth AND edhTokenwas removed from the API
- info
- info
the endpoint scheme security
edhAuth AND edhTokenwas added to the API - info
the endpoint scheme security
socaAuth AND socaTokenwas removed from the API
- info