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}| Parameter | Type | Required | Description |
|---|---|---|---|
| componentTemplate | string | true | Name or ID of the component template |
| Parameter | Type | Required | Description |
|---|---|---|---|
| Accept |
|
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.ymlRelated CLI command: exportComponentTemplate.