Start

Using REST you can also start application archives that are deployed but not started. You must know the Engine-Id, Engine-Instance, and the full application ArchiveName.

The following is a generic cURL example that starts an Archive.

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/e
ngines/{engine-id}/{engine-instance}/archives/{appname}/start"
[-F "Version={VersionNumber}"]	 #supported only for 6.x component

Expressions in this generic form cURL expression example were separated by line breaks to help with readability, but normally an unbroken string is submitted when executed.

The value of {engine-instance} can be obtained from the response to the successful cURL deployment REST execution or the TIBCO Silver Fabric Administrator > Engines page > expanding the row to see Engine details.

The Start and Stop both have an optional option to specify the version number. 
If the version number is not specified, an attempt to complete the action is made on the deployed application with the same name.

There are also Silver Fabric REST methods to GET the engine-id and engine-instance for all instances running on a daemon. Refer to TIBCO Silver Fabric REST Services documented in the TIBCO Silver Fabric Administration Tool at Admin > REST Services.

Version - (optional) The version form-data field (-F) lets you specify the version to be started or stopped. If not specified, the version number is obtained from the deployed application that has the same application name.

Another cURL example that starts an archive

curl -u admin:admin
     -X POST
     -H "Accept:application/json"
     -H "Content-Type:multipart/form-data" http://lin64vm205.qa.datasynapse.com:8080/livecluster/rest/v1/sf/engines/5103224222683646426/3/archives/tibco.bw.sample.binding.soap.http.BookStore.application/start
     -F "Version=1.0"

The value of {appname} is usually the application name or the full application archive name.

Tip: When the {appname} is used, it is URL-encoded in a cURL statement so that spaces are converted to "%20" and forward slashes (/) are represented by "%2F". Likewise, other special characters must be encoded appropriately.

A cURL example (URL encoded) that starts an archive.

The full archive name shown had to be URL encoded:

/Silver Fabric/SFBW 22E5/DomainMachineName/processOrder/Orders/MyProcOrder/Process_Archive.par

...to be passed in the cURL statement shown here:

curl -u admin:admin -X POST -H "Accept:application/json" -H "Content-Type:multipart/form-data" -v "http://192.168.72.189:8080/livecluster/rest/v1/sf/engines/8735490097077982598/1/archives/tibco.bw.sample.palette.http.PersistentConnection.application/start" -F "Version=1.0"
curl -u admin:admin -X POST -H "Accept:application/json" -H "Content-Type: multipart/form-data" -v "http://lin64vm121.qa.datasynapse.com:8080/livecluster/rest/v1/sf/engines/4649861604167227205/1/archives/%2FSilver%20Fabric%2FSFBW%2022E5%2FDomainMachineName%2FprocessOrder%2FOrders%2FMyProcOrder/Process_Archive.par/start"