Viewing Template Source Using curl Command and REST API

Use the curl command to view a template from the command line by means of the REST API. In the following example, the Automation Console is running on the local host on port 8888.

$ curl -X GET -H "Accept: application/json" -H "Content-type: application/json" 
  -u domain:bruin http://localhost:8888/api/1/templates/Single%20Host
{"version":5,"name":"Single Host","summary":"This template starts one Storage 
Manager and one Transaction Engine on a host that you specify. These processes 
will be fixed to that host and will not be moved if that host goes offline.",