API v1
curl "https://exec.lulify.com/rssh-fanout" --data \
'{"nameIds": [ "***" ],"command": "ls","apiKey": "YOUR_APIKEY"}'
Note that "nameIds" with a triple asterisk ("***") means that all currently connected devices within your account will receive and execute the command.
{
"status": "OK",
"code": 0,
"executionId": "tAXs3OknY...",
"requests": [
{
"nameId": "r1000",
"command": "ls",
"status": 0
}
],
"responses": [
{
"command": "ls",
"id": "tAXs3OknY...",
"type": "command",
"stdout": "_MEITlrB3o\nsystemd-private-001335ceb453473eb01bda0de5b9981c-systemd-timesyncd.service-tkmU91\ntmp4taw3v87\ntmp6qz8wnt8\ntmpbdnukl1g\ntmplkxqe6w5\ntmpo618lfam\n",
"nameId": "r1000",
"code": 0
}
]
}
Just add your device's "nameId" to the "nameIds" arrays of the JSON request
curl "https://exec.lulify.com/rssh-fanout" --data \
'{"nameIds": [ "android07","server01","raspberri02" ],"command": "ls","apiKey": "YOUR_APIKEY"}'
Note that "nameIds" are an array of names that are equal to the "nameId" of your devices.
It is recommended to use only alphanumeric, hyphen and dot characters.
| HTTP Status Code | JSON Status Code | Meaning |
|---|---|---|
| 200 | 0 | No errors detected |
| 401 | 4 | Invalid API key |
| 400 | 2 | No one nameId matches a device in your account |
| 5 | Invalid JSON parameters (check case, misspelled or if missing any of the following properties: 'apiKey', 'nameIds', 'command') | |
| 6 | Invalid JSON | |
| 7 | Invalid HTTP method, only allowed POST |