Export a component template to a file

This command exports a component template to a JSON or YAML file format.

Request

GET https://{hostname}:{port}
    /cli/componentTemplate/export?{parameters}
Accept: {contentType}
Table 1. Request parameters
Parameter Type Required Description
componentTemplate string true Name or ID of the component template
Table 2. Header parameters
Parameter Type Required Description
Accept
  • application/json
  • application/yaml
true

Command to export a component template to a JSON file

curl -k -u jsmith:passwd 
   
 -H "Accept: application/json" 
 -X GET "https://deployserver.example.com:8443/cli/componentTemplate/export
?componentTemplate=JPetStoreTemplate&componentProcess=Deploy JPetStore Comp"

Response

File written to: ./component-process-Deploy JPetStore Comp.yml

Related CLI command: exportComponentTemplate.