Start

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

Here 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/engines/{engine-id}/{engine-instance}/archives/{full_archive-name}/start"

Expressions in the generic form cURL expression above were separated by line breaks to help with readability, but normally an unbroken string is submitted in the execution as in the example shown in the tip below.

The values of {engine-id} and {engine-instance} may 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.

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.

{full_archive-name} :

The {full_archive-name} is the full name of the application including the parent directories in the TIBCO Administrator UI.

Tip: The {full_archive-name} must be 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 in appropriately.

A cURL example that starts an Archive.

The full archive name shown below had to be URL encoded:

/Silver Fabric/SFFL 22E5/DomainMachineName/processOrder/Orders/MyProcOrder

...to be passed in the cURL statement below:

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%2FSFFL%2022E5%2FDomainMachineName%2FprocessOrder%2FOrders%2FMyProcOrder/start"