Managing multiple formats
You can set the format by configuring the config.yaml file or by adding the parameter in model commands.
Overview
The multiple format options in HCL Workload Automation ensures that you have various data serialization formats to create/modify an item or to display an item. When you run a command, the default value specified for format in the config.yaml file or at gateway server is considered. You can change this value either by updating the value in config.yaml file or by providing the format option in Orchestration CLI commands.
Syntax and command line options
ocli model [-format [JSON | YAML | schedlang]]
[model command] [filename | scheduling items]
- -format
- You can specify any one of the following formats:
- JSON
- schedlang
- YAML
- Model commands
- You can specify the command to create/modify an item or to display
results in required format. Specify any one of the following command to create or modify an existing item in the format of your choice:
- filename | scheduling items
- You need to specify the filename or scheduling items according to the model command that you want to run.
ocli model -format json display JS @#@
If you do not specify the format option in the command, the format specified in the config.yaml is taken. By default, the value for format in the config.yaml is YAML, and you can change it to JSON or schedlang. You can change the value manually by editing the config.yaml.
If you do not specify any value in model command or config.yaml file, the default value (YAML) in the gateway server is considered. In such cases, you must make all the updates in YAML format or else an error message is displayed. The value in the gateway server cannot be modified.