Get a list of ACL tokens.
data "nomad_acl_tokens" "tokens" {
prefix = "a242"
}
The following arguments are supported:
prefix
: (string)
Optional prefix to filter the tokens.The following attributes are exported:
acl_tokens
: (list of objects)
The list of tokens found in the given prefix.The objects in the acl_tokens
list have the following attributes:
accessor_id
: (TypeString)
Non-sensitive identifier for the token.name
: (TypeString)
The name of the token.type
: (TypeString)
The type of the token.policies
: (list of strings)
The list of policies attached to the token.roles
(set: [])
- The list of roles attached to the token. Each entry has
name
and id
attributes.global
: (bool)
Whether the token is replicated to all regions.create_time
: (string)
Date and time the token was created at.expiration_time
(string)
- The timestamp after which the token is
considered expired and eligible for destruction.