sagcc get templates composite export
Exports the composite template available under the specified alias into a zip archive or a yaml file.
Syntax
Command Central syntax:
To export a template into a zip archive:
sagcc get templates composite export templateAlias {--output | -o} filename.zip
[{--output-format | -f} application/vnd.sagcc.asset+zip] [options]
To export a template into a yaml file:
sagcc get templates composite export templateAlias {--output | -o} filename.yaml
{--output-format | -f} application/yaml [options]
Not supported on
Platform Manager.
Arguments and Options
Argument or Option | Description |
templateAlias | Required. The alias of the template to export. You can determine the template alias using the sagcc list templates composite command. |
{--output | -o} filename.zip | Required. The name of the output zip file to which to export the template. For more information about the {--output | -o} option, see
output. |
{--output | -o} filename.yaml | Required when exporting into a yaml file. The name of the output yaml file to which to export the template. For more information about the {--output | -o} option, see
output. |
[{--output-format / -f} application/vnd.sagcc.asset+zip] | Optional. Use when exporting templates into composite assets. Indicates that the output file is a composite asset zip file, which contains an acdl file for the template and the template yaml file in a zip archive. |
{--output-format / -f} application/yaml | Required when exporting into a yaml file. Indicates that the output file is a YAML template file. |
[options] | The command allows all options supported by the Command Line Interface. For a description of the options, see
Common Options. |
Usage Notes
When you include the
-f vnd.sagcc.asset+zip option, the command exports the template as a
Command Central composite asset zip file. You can add this zip archive to a local Software AG Common Landscape Asset Registry (LAR) and then deploy the template to a target on-premise installation. You must first unzip the asset zip file created with this command and then add the ACDL file and the template zip file into LAR. For more information about LAR, see
Software AG Infrastructure Administrator's Guide. For more information about deploying assets, see
webMethods Deployer User’s Guide.
The templates that you can export as composite assets are either templates created with the
sagcc exec templates composite generate command, or any user-defined templates imported into
Command Central.
Examples When Executing on Command Central
To export a template, under the alias “myAlias”, from the Command Central server with host name “rubicon” and port “8090”:
sagcc get templates composite export myAlias
--server http://rubicon:8090/cce -p mypassword
--output template-output-file.zip
To export a template, under the alias "is-config" into a zip file, named "is-config.zip", which contains an asset zip file and an acdl file for the template:
sagcc get templates composite export is-config -o is-config.zip
-f application/vnd.sagcc.asset+zip
To export a template, under the alias "is-config" into a yaml file, named "is-config.yaml":
sagcc get templates composite export is-config -o is-config.yaml -f application/yaml