open-nomad/website/content/docs/commands/acl/token/update.mdx

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.5 KiB
Plaintext
Raw Normal View History

2017-09-15 23:54:41 +00:00
---
2020-02-06 23:45:31 +00:00
layout: docs
page_title: 'Commands: acl token update'
description: |
2017-09-25 19:40:11 +00:00
The token update command is used to update existing ACL tokens.
2017-09-15 23:54:41 +00:00
---
# Command: acl token update
The `acl token update` command is used to update existing ACL tokens.
## Usage
```plaintext
2017-09-15 23:54:41 +00:00
nomad acl token update [options] <token_accessor_id>
```
The `acl token update` command requires an existing token's accessor ID.
## General Options
@include 'general_options_no_namespace.mdx'
2017-09-15 23:54:41 +00:00
## Create Options
- `-name`: Sets the human readable name for the ACL token.
2017-09-15 23:54:41 +00:00
- `-type`: Sets the type of token. Must be one of "client" (default), or
"management".
2017-09-15 23:54:41 +00:00
- `-global`: Toggles the global mode of the token. Global tokens are replicated
to all regions. Defaults false.
2017-09-15 23:54:41 +00:00
- `-policy`: Specifies a policy to associate with the token. Can be specified
multiple times, but only with client type tokens.
2017-09-15 23:54:41 +00:00
## Examples
Update an existing ACL token:
2020-05-18 20:53:06 +00:00
```shell-session
$ nomad acl token update -name="example-acl-token-updated" ef851ca0-b331-da5d-bbeb-7ede8f7c9151
Accessor ID = ef851ca0-b331-da5d-bbeb-7ede8f7c9151
Secret ID = 11d5348a-8768-5baa-6185-c154980e1488
Name = example-acl-token-updated
2017-09-15 23:54:41 +00:00
Type = client
Global = false
Create Time = 2022-08-23 12:16:09.680699039 +0000 UTC
Expiry Time = <never>
Create Index = 140
Modify Index = 151
Policies = [example-acl-policy]
Roles
ID Name
2fe0c403-4502-e99d-4c79-a2821355e66d example-acl-role-updated
2017-09-15 23:54:41 +00:00
```