consul_acl_token (Data Source)

The consul_acl_token data source returns the information related to the consul_acl_token resource with the exception of its secret ID.

If you want to get the secret ID associated with a token, use the consul_acl_token_secret_id data source.

Example Usage

data "consul_acl_token" "test" {
  accessor_id = "00000000-0000-0000-0000-000000000002"
}

output "consul_acl_policies" {
  value = data.consul_acl_token.test.policies
}

Schema

Required

Optional

Read-Only

Nested Schema for node_identities

Read-Only:

Nested Schema for policies

Read-Only:

Nested Schema for roles

Read-Only:

Nested Schema for service_identities

Read-Only:

Nested Schema for templated_policies

Read-Only:

Nested Schema for templated_policies.template_variables

Read-Only: