Command
Send a command to a process
curl http://127.0.0.1:8080/api/v3/process/test \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-X PUT \
-d '{
"command": "stop"
}'from core_client import Client
client = Client(
base_url="http://127.0.0.1:8080"
)
client.login()
client.v3_process_put_command(
id="test",
command="stop"
)import (
"github.com/datarhei/core-client-go/v16"
)
client, _ := coreclient.New(coreclient.Config{
Address: "https://127.0.0.1:8080",
})
err := client.ProcessCommand("test", "stop")
if err != nil {
...
}Issue a command to a process: start, stop, reload, restart
Authorizations
AuthorizationstringRequired
Path parameters
idstringRequired
Process ID
Body
commandstring · enumRequiredPossible values:
Responses
200
OK
application/json
Responsestring
400
Bad Request
application/json
404
Not Found
application/json
put
/api/v3/process/{id}/commandLast updated
Was this helpful?
