2019-05-01 21:11:23 +00:00
|
|
|
---
|
2020-04-07 18:55:19 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: 'Commands: ACL Token Clone'
|
2020-04-13 18:40:26 +00:00
|
|
|
sidebar_title: clone
|
2019-05-01 21:11:23 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Consul ACL Token Clone
|
|
|
|
|
|
|
|
Command: `consul acl token clone`
|
|
|
|
|
|
|
|
The `acl token clone` command clones an existing token.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Usage: `consul acl token clone [options]`
|
|
|
|
|
|
|
|
#### API Options
|
|
|
|
|
2020-04-07 18:55:19 +00:00
|
|
|
@include 'http_api_options_client.mdx'
|
2020-04-07 23:56:08 +00:00
|
|
|
|
2020-04-07 18:55:19 +00:00
|
|
|
@include 'http_api_options_server.mdx'
|
2019-05-01 21:11:23 +00:00
|
|
|
|
|
|
|
#### Command Options
|
|
|
|
|
2020-04-07 18:55:19 +00:00
|
|
|
- `-description=<string>` - A description of the new cloned token.
|
2019-05-01 21:11:23 +00:00
|
|
|
|
2020-04-07 18:55:19 +00:00
|
|
|
- `-id=<string>` - The Accessor ID of the token to clone. It may be specified
|
|
|
|
as a unique ID prefix but will error if the prefix matches multiple token
|
|
|
|
Accessor IDs. The special value of 'anonymous' may be provided instead of
|
|
|
|
the anonymous tokens accessor ID
|
2019-05-01 21:11:23 +00:00
|
|
|
|
2020-04-07 18:55:19 +00:00
|
|
|
- `-format={pretty|json}` - Command output format. The default value is `pretty`.
|
2020-03-26 16:03:22 +00:00
|
|
|
|
2019-12-06 16:14:56 +00:00
|
|
|
#### Enterprise Options
|
|
|
|
|
2020-04-07 18:55:19 +00:00
|
|
|
@include 'http_api_namespace_options.mdx'
|
2019-12-06 16:14:56 +00:00
|
|
|
|
2019-05-01 21:11:23 +00:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Clone a token:
|
|
|
|
|
2020-05-19 18:32:38 +00:00
|
|
|
```shell-session
|
2019-05-01 21:11:23 +00:00
|
|
|
$ consul acl token clone -id 59f8 -description "Clone of Super User"
|
|
|
|
Token cloned successfully.
|
|
|
|
AccessorID: dcfa52ed-9288-b3ff-056d-255ef69d2d88
|
|
|
|
SecretID: 0005d17e-5bb2-7e8b-7bfa-15f2eee9ad14
|
|
|
|
Description: Clone of Super User
|
|
|
|
Local: false
|
|
|
|
Create Time: 2018-10-22 16:26:02.909096 -0400 EDT
|
|
|
|
Policies:
|
|
|
|
00000000-0000-0000-0000-000000000001 - global-management
|
|
|
|
```
|