3.6. Stopping and removing a service in Decision Server
If you have started Red Hat Decision Manager services from a Maven or Java project outside of Business Central, you use a Decision Server REST API call to stop and remove the KIE container (deployment unit) containing the services. You can use the Decision Server REST API to stop services regardless of your deployment type, including deployment from Business Central, but services from Business Central can also be stopped within the Business Central interface.
Prerequisites
-
Decision Server is installed and
kie-serveruser access is configured. For installation options, see Planning a Red Hat Decision Manager installation.
Procedure
In your command terminal, run the following API request to stop and remove a KIE container with services on Decision Server:
$ curl --user "<username>:<password>" -X DELETE http://<serverhost>:<serverport>/kie-server/services/rest/server/containers/<containerID>
Replace the following values:
-
<username>, <password>: The user name and password of a user with the
kie-serverrole. - <containerID>: The identifier for the KIE container (deployment unit). You can use any random identifier but it must be the same in both places in the command (the URL and the data).
-
<serverhost>: The host name for the Decision Server, or
localhostif you are running the command on the same host as the Decision Server. - <serverport>: The port number for the Decision Server.
Example:
curl --user "rhdmAdmin:password@1" -X DELETE http://localhost:39043/kie-server/services/rest/server/containers/kie1