github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/website/pages/docs/commands/acl/token-update.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Commands: acl token update'
     4  sidebar_title: token update
     5  description: |
     6    The token update command is used to update existing ACL tokens.
     7  ---
     8  
     9  # Command: acl token update
    10  
    11  The `acl token update` command is used to update existing ACL tokens.
    12  
    13  ## Usage
    14  
    15  ```plaintext
    16  nomad acl token update [options] <token_accessor_id>
    17  ```
    18  
    19  The `acl token update` command requires an existing token's accessor ID.
    20  
    21  ## General Options
    22  
    23  @include 'general_options.mdx'
    24  
    25  ## Create Options
    26  
    27  - `-name`: Sets the human readable name for the ACL token.
    28  
    29  - `-type`: Sets the type of token. Must be one of "client" (default), or
    30    "management".
    31  
    32  - `-global`: Toggles the global mode of the token. Global tokens are replicated
    33    to all regions. Defaults false.
    34  
    35  - `-policy`: Specifies a policy to associate with the token. Can be specified
    36    multiple times, but only with client type tokens.
    37  
    38  ## Examples
    39  
    40  Update an existing ACL token:
    41  
    42  ```shell-sessionnomad acl token update -name="my updated token" -policy=foo -policy=bar d532c40a-30f1-695c-19e5-c35b882b0efd
    43  Accessor ID  = d532c40a-30f1-695c-19e5-c35b882b0efd
    44  Secret ID    = 85310d07-9afa-ef53-0933-0c043cd673c7
    45  Name         = my updated token
    46  Type         = client
    47  Global       = false
    48  Policies     = [foo bar]
    49  Create Time  = 2017-09-15 05:04:41.814954949 +0000 UTC
    50  Create Index = 8
    51  Modify Index = 8
    52  ```