Skip to main content

templates Command

The templates command is used to access the search template library.

CommandDescription
templatesDisplay template(s)
templates addAdd template
templates updateUpdate template
templates deleteDelete template
templates testTest template

Usage

templates <template_name>

Parameters

ParameterDescriptionRequired?Default Value
template_nameTemplate name; returns all templates if not specifiedN/A

Examples

List all templates
> templates
filter_kind: is({{kind}})
Display the filter_kind template
> templates filter_kind
is({{kind}})
Use the filter_kind template
> query expand(filter_kind, kind=volume) and name=~dkl
kind=aws_ec2_volume, id=vol-1, name=dkl-3, age=2mo2d, cloud=aws, account=eng, region=us-west-2

Further Reading