create_template
Create a new template in Automation Studio for text processing, configuration generation, and data parsing. Set name, type, group, and optional command, text, or sample data.
Instructions
Create a new template in Automation Studio.
Creates a new template with the specified name, type, group, and optional content including command, template text, and sample data. Templates are used for text processing, configuration generation, and data parsing within automation workflows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Sample data used to test the template | |
| name | Yes | The name of the template to create | |
| group | Yes | The gorup this template belongs to | |
| command | No | The CLI command to be run on the target device | |
| project | No | The name of the project where this template should be created. The available projects can be found using get_projects | |
| template | No | The template text uesd to generate the output | |
| template_type | Yes | Type of template to create |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Sample data used to test the template | |
| name | Yes | Template name | |
| type | Yes | Template type (textfsm or jinja2) | |
| group | Yes | The group the template is currently part of | |
| command | Yes | The command send to the device to generate the source text | |
| template | Yes | The template used to generate the final output | |
| description | No | Template description |