Skip to content

Commit

Permalink
docs: Add -node-identity option to token and role command (#8671)
Browse files Browse the repository at this point in the history
Document `-node-identity` option which was added in #7970 for
`acl token <create|update>` and `acl role <create|update>` commands.
  • Loading branch information
blake authored and hashicorp-ci committed Sep 15, 2020
1 parent eb710f4 commit ed39172
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/pages/commands/acl/role/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ Usage: `consul acl role create [options] [args]`

- `-name=<string>` - The new role's name. This flag is required.

- `-node-identity=<value>` - Name of a node identity to use for this role. May
be specified multiple times. Format is `NODENAME:DATACENTER`. Added in Consul
1.8.1.

- `-policy-id=<value>` - ID of a policy to use for this role. May be specified
multiple times

Expand Down
4 changes: 4 additions & 0 deletions website/pages/commands/acl/role/update.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Usage: `consul acl role update [options] [args]`

- `-name=<string>` - The role name.

- `-node-identity=<value>` - Name of a node identity to use for this role. May
be specified multiple times. Format is `NODENAME:DATACENTER`. Added in Consul
1.8.1.

- `-no-merge` - Do not merge the current role information with what is provided
to the command. Instead overwrite all fields with the exception of the role
ID which is immutable.
Expand Down
4 changes: 4 additions & 0 deletions website/pages/commands/acl/token/create.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Usage: `consul acl token create [options] [args]`
- `-meta` - Indicates that token metadata such as the content hash and raft indices should be shown
for each entry.

- `-node-identity=<value>` - Name of a node identity to use for this role. May
be specified multiple times. Format is `NODENAME:DATACENTER`. Added in Consul
1.8.1.

- `-policy-id=<value>` - ID of a policy to use for this token. May be specified multiple times.

- `-policy-name=<value>` - Name of a policy to use for this token. May be specified multiple times.
Expand Down
7 changes: 7 additions & 0 deletions website/pages/commands/acl/token/update.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ Usage: `consul acl token update [options]`
- `-id=<string>` - The Accessor ID of the token to read. It may be specified as a
unique ID prefix but will error if the prefix matches multiple token Accessor IDs

- `merge-node-identities` - Merge the new node identities with the existing node
identities.

- `-merge-policies` - Merge the new policies with the existing policies.

- `-merge-roles` - Merge the new roles with the existing roles.
Expand All @@ -37,6 +40,10 @@ Usage: `consul acl token update [options]`
- `-meta` - Indicates that token metadata such as the content hash and Raft indices should be
shown for each entry.

- `-node-identity=<value>` - Name of a node identity to use for this role. May
be specified multiple times. Format is `NODENAME:DATACENTER`. Added in Consul
1.8.1.

- `-policy-id=<value>` - ID of a policy to use for this token. May be specified multiple times.

- `-policy-name=<value>` - Name of a policy to use for this token. May be specified multiple times.
Expand Down

0 comments on commit ed39172

Please sign in to comment.