Operating a REST server
Use scripts to operate a REST server.
Invoke a script by issuing a command of the form:
docker exec containername /opt/ibm/dbrest/scripts/scriptname
where:containername
represents the name of the container.scriptname
represents one of the following scripts:Script Description db2rest-start.sh Starts the server and changes its status to ACTIVE. If the server was already running, its status remains ACTIVE. db2rest-stop.sh Stops the server, changes its status to INACTIVE, and invalidates any authentication tokens that were issued when the server was running. db2rest-restart.sh Stops and restarts the server. db2rest-version.sh Returns the version information of a running server. db2rest-status.sh Checks the status (ACTIVE, INACTIVE, or ERROR) of the server.