template
Command
The template
command is used to access the search template library.
Command | Description |
---|---|
template | Display template(s) |
template add | Add template |
template update | Update template |
template delete | Delete template |
template test | Test template |
Usage
templates <template_name>
Parameters
Parameter | Description | Required? | Default Value |
---|---|---|---|
template_name | Template name; returns all templates if not specified | ❌ |
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