Consul ACL Templated Policies
Command: consul acl templated-policy
Use the acl templated-policy
command to manage templated ACL policies.
It exposes commands for reading, previewing, and listing templated policies.
You can also manage ACL templated policies using the /templated-policies
HTTP API endpoint.
All of the example subcommands require a valid Consul token with the appropriate permissions. Either set the CONSUL_HTTP_TOKEN
environment variable to the token's secret ID or pass the
secret ID as the value of the -token
parameter.
Usage
Usage: consul acl templated-policy <subcommand>
For the exact documentation for your Consul version, run consul acl templated-policy -h
to view the complete list of subcommands.
For more information, examples, and usage about a subcommand, click on the name of the subcommand in the sidebar.
Basic examples
Read a ACl templated policy:
List all templated policies:
Preview a templated policy: