sagcc exec templates composite generate
Generates the configurations for a specified run-time component instance as a template using input parameters, provided in the command.
Syntax
Not supported on
Platform Manager.
Arguments and Option
Argument or Option | Description |
alias=templateAlias | Required. Specifies the alias name of the template to be generated. |
nodeAlias=nodeAlias | Required. Specifies the node alias from which to export data. |
runtimeComponentId= runtimeComponentId | Required. Specifies the run-time component, from which to export data. |
[parameterize={true | false}] | Optional. Specifies whether to parameterize the exported configurations. Currently, this feature is experimental. Valid values: true - parameterize the configurations false - (default) do not parameterize the configurations |
[paramPrefix] | Optional. Use only when parameterize=true. Specifies a prefix to be added to the exported parameter names. |
[overwrite={true | false}] | Required when you execute the command to update a template. Specifies whether to overwrite an existing template with the same alias name. Valid values: true - overwrite the template false - (default) do not overwrite the template |
[options] | Optional. The command allows all options supported by the Command Line Interface. For a description of the options, see
Common Options. |
Usage Notes
This command exports all configurations for the specified run-time component, including configurations for its child run-time components, if any. To select specific configurations and export configurations for child components of the run-time component, use the
sagcc exec templates composite generate input command.
Templates that are generated with this command are automatically imported in
Command Central.
Example When Executing on Command Central
To extract all configurations for the "OSGI-IS_default" run-time component, installed in the "local" installation, to a template with alias "is-config" and use the "is" prefix for the parameters in the generated template. If a template with the specified alias exists, the generated template will overwrite it.
sagcc exec templates composite generate alias=is-config nodeAlias=local parameterize=true
paramPrefix=is options=CONFIGURATION runtimeComponentId=OSGI-IS_default overwrite=true