github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/commands/acl/token/update.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: acl token update'
     4  description: |
     5    The token update command is used to update existing ACL tokens.
     6  ---
     7  
     8  # Command: acl token update
     9  
    10  The `acl token update` command is used to update existing ACL tokens.
    11  
    12  ## Usage
    13  
    14  ```plaintext
    15  nomad acl token update [options] <token_accessor_id>
    16  ```
    17  
    18  The `acl token update` command requires an existing token's accessor ID.
    19  
    20  ## General Options
    21  
    22  @include 'general_options_no_namespace.mdx'
    23  
    24  ## Create Options
    25  
    26  - `-name`: Sets the human readable name for the ACL token.
    27  
    28  - `-type`: Sets the type of token. Must be one of "client" (default), or
    29    "management".
    30  
    31  - `-global`: Toggles the global mode of the token. Global tokens are replicated
    32    to all regions. Defaults false.
    33  
    34  - `-policy`: Specifies a policy to associate with the token. Can be specified
    35    multiple times, but only with client type tokens.
    36  
    37  ## Examples
    38  
    39  Update an existing ACL token:
    40  
    41  ```shell-session
    42  $ nomad acl token update -name="example-acl-token-updated" ef851ca0-b331-da5d-bbeb-7ede8f7c9151
    43  Accessor ID  = ef851ca0-b331-da5d-bbeb-7ede8f7c9151
    44  Secret ID    = 11d5348a-8768-5baa-6185-c154980e1488
    45  Name         = example-acl-token-updated
    46  Type         = client
    47  Global       = false
    48  Create Time  = 2022-08-23 12:16:09.680699039 +0000 UTC
    49  Expiry Time  = <never>
    50  Create Index = 140
    51  Modify Index = 151
    52  Policies     = [example-acl-policy]
    53  
    54  Roles
    55  ID                                    Name
    56  2fe0c403-4502-e99d-4c79-a2821355e66d  example-acl-role-updated
    57  ```