2017-10-13 20:45:10 +00:00
|
|
|
---
|
2020-02-06 23:45:31 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: 'Commands: acl token self'
|
|
|
|
sidebar_title: token self
|
2017-10-13 20:45:10 +00:00
|
|
|
description: >
|
|
|
|
The token self command is used to fetch information about the currently set
|
|
|
|
ACL token.
|
|
|
|
---
|
|
|
|
|
|
|
|
# Command: acl token self
|
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
The `acl token self` command is used to fetch information about the currently
|
|
|
|
set ACL token.
|
2017-10-13 20:45:10 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2019-10-22 13:44:00 +00:00
|
|
|
```plaintext
|
2017-10-13 20:45:10 +00:00
|
|
|
nomad acl token self
|
|
|
|
```
|
|
|
|
|
|
|
|
## General Options
|
|
|
|
|
2020-11-19 18:02:48 +00:00
|
|
|
@include 'general_options_no_namespace.mdx'
|
2017-10-13 20:45:10 +00:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Fetch information about an existing ACL token:
|
|
|
|
|
2020-05-18 20:53:06 +00:00
|
|
|
```shell-session
|
|
|
|
$ export NOMAD_TOKEN=85310d07-9afa-ef53-0933-0c043cd673c7
|
2017-10-13 20:45:10 +00:00
|
|
|
|
2019-04-12 15:48:36 +00:00
|
|
|
$ nomad acl token self
|
2017-10-13 20:45:10 +00:00
|
|
|
Accessor ID = d532c40a-30f1-695c-19e5-c35b882b0efd
|
|
|
|
Secret ID = 85310d07-9afa-ef53-0933-0c043cd673c7
|
|
|
|
Name = my token
|
|
|
|
Type = client
|
|
|
|
Global = false
|
|
|
|
Policies = [foo bar]
|
|
|
|
Create Time = 2017-09-15 05:04:41.814954949 +0000 UTC
|
|
|
|
Create Index = 8
|
|
|
|
Modify Index = 8
|
|
|
|
```
|