consul.api.acl.templated_policy module¶
- class consul.api.acl.templated_policy.TemplatedPolicy(agent)[source]¶
Bases:
object- list(token=None)[source]¶
Lists all the templated policies. :param token: token with acl:read capability :return: A dictionary of templated policies
- Parameters:
token (str | None)
- read(name, token=None)[source]¶
Reads a templated policy with the given name. :param name: The name of the templated policy to read :param token: token with acl:read capability :return: The templated policy information