The consul_acl_auth_method
data source returns the information related to a
Consul Auth Method.
data "consul_acl_auth_method" "test" {
name = "minikube"
}
output "consul_acl_auth_method" {
value = data.consul_acl_auth_method.test.config
}
The following arguments are supported:
name
- (Required) The name of the ACL Auth Method.namespace
- (Optional, Enterprise Only) The namespace to lookup the auth method.partition
- (Optional, Enterprise Only) The partition to lookup the auth method.The following attributes are exported:
description
- The description of the ACL Auth Method.type
- The type of the ACL Auth Method.config_json
- The configuration options of the ACL Auth Method.config
- The configuration options of the ACL Auth Method. This attribute is
deprecated and will be removed in a future version. If the configuration is
too complex to be represented as a map of strings, it will be blank.
config_json
should be used instead.display_name
- An optional name to use instead of the name attribute when
displaying information about this auth method.max_token_ttl
- The maximum life of any token created by this auth method.token_locality
- The kind of token that this auth method produces. This can
be either 'local' or 'global'.namespace_rule
- (Enterprise Only) A set of rules that control which
namespace tokens created via this auth method will be created within