API Method: StartActionByGetAndWait (deprecated)
|
Despite its name, this method no longer supports |
This method cannot send a justification. If the action requires one, the call is refused with invalid_argument, unless the action’s justification template fills it in. Use StartActionAndWait with a justification instead. See Upgrade Notes.
Migrating to StartActionAndWait
StartActionAndWait takes the same actionId field, and returns the same Log Entry, so you only need to change the method name. It also accepts arguments and a justification.
user@host: curl http://olivetin.example.com:1337/api/StartActionByGetAndWait --json '{"actionId": "pingGithub"}'
user@host: curl http://olivetin.example.com:1337/api/StartActionAndWait --json '{"actionId": "pingGithub"}'
{"logEntry":{"actionTitle":"Ping GitHub.com","output":"...","exitCode":0, ... }}