Create Command Template
create_command_templateCreate command templates in Itential Platform to define reusable network commands with validation rules, optionally scoped to a project.
Instructions
Create a new command template in Itential Platform.
Creates a new command template with the specified name, commands, and validation rules. Templates can be created in the global space or within a specific project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | Operating system type (default: empty string) | |
| name | Yes | Name for the command template | |
| project | No | Project name to create the template in (None for global templates) | |
| commands | Yes | List of commands with their validation rules | |
| pass_rule | No | Pass rule configuration (True=all must pass, False=one must pass) | |
| description | No | Optional description for the template | |
| ignore_warnings | No | Whether to ignore warnings during execution |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | List of created template operations | |
| result | Yes | Operation result with success status | |
| insertedIds | Yes | Mapping of inserted template IDs | |
| insertedCount | Yes | Number of templates inserted |