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/{appname}/start"

Expressions in the generic form cURL expression shown in the previous syntax 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 on {appname}.

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

Silver Fabric REST methods to GET the engine-id and engine-instance exist 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.

If the component is configured to use Full Archive Name, and the {appname} does not have a .par, or .bar extension then the {appname} can be copied from the TIBCO Silver Fabric Administrator > Dashboard > Scaled Archives page.

Tip: The {appname} 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 appropriately.

A cURL example that starts an Archive.

The full archive name shown as follows had to be URL encoded:

/Silver Fabric/SFBE 22E5/DomainMachineName/processOrder/Orders/MyProcOrder/Process_Archive.bar

It can now be passed in the cURL statement as follows:

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