Undeploy

You can undeploy application archives that are running on an engine by REST method by submitting a cURL expression to the Silver Fabric Broker. You must know the Engine-Id, Engine-Instance, and the full application ArchiveName.

curl -u UserName:Password
     -X POST 
     -H "Accept:application/json" 
     -H "Content-type: multipart/form-data" \ 
     -v "http://<YourSFBroker.com>:<port>/livecluster/rest/v1/sf/engines/{engine-id}/{engine-instance}/archives/{appname}/undeploy"

Refer to the Start method for a description on how to obtain the values of {engine-id}, {engine-instance}, and {appname}.

DeleteApp - (optional - use with undeploy only) The default value is false and it can be omitted. When the DeleteApp parameter is false, an undeploy archive action leaves the application configurations of global variables and bindings so that they can be used again. The archive and the application are only undeployed and not deleted.

Setting DeleteApp to true deletes the application and the associated variable settings from the runtime engine after the archive is undeployed.

The following is an cURL example of an undeploy call

curl -u admin:admin
     -X POST
     -H "Accept:application/json"
     -H "Content-Type:multipart/form-data" 
     -v "http://lin64vm205.qa.da
tasynapse.com:8080/livecluster/rest/v1/sf/engines/5103224222683646
426/3/archives/tibco.bw.sample.binding.soap.http.BookStore.applica
tion/undeploy"

Here the application name is used and there is no need for archiveid.

Tip: For more information on REST methods, including parameters and return responses, see the online REST help in the Silver Fabric Administration Tool. For information on using REST services, see the Silver Fabric Developer’s Guide.