POST cluster

The web method POST cluster can send a shutdown command to all FTL servers in the cluster.

Input Data

Supply the command in JSON format.

Commands

The only command available is shutdown.

Syntax Description
{"cmd":"shutdown"} Shut down the FTL server cluster.

Example Requests

Simple shutdown:

curl -X POST http://host:port/api/v1/cluster/ -d '{"cmd":"shutdown"}'

Save persistence state to disk, then shut down:

curl -X POST http://host:port/api/v1/cluster/ -d '{"cmd":"shutdown", "args":[{"savestate": true}]}'

You can also shut down all FTL servers with the POST ftlservers method.