mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 13:55:55 +00:00
incorrect examples for 'consul acl policy' commands (#5303)
This commit is contained in:
parent
82e741f36f
commit
5165874318
@ -41,7 +41,7 @@ Usage: consul acl <subcommand> [options] [args]
|
||||
|
||||
Create a new ACL Policy:
|
||||
|
||||
$ consul acl policy create "new-policy" \
|
||||
$ consul acl policy create -name "new-policy" \
|
||||
-description "This is an example policy" \
|
||||
-datacenter "dc1" \
|
||||
-datacenter "dc2" \
|
||||
|
@ -33,7 +33,7 @@ Usage: consul acl policy <subcommand> [options] [args]
|
||||
|
||||
Create a new ACL Policy:
|
||||
|
||||
$ consul acl policy create "new-policy" \
|
||||
$ consul acl policy create -name "new-policy" \
|
||||
-description "This is an example policy" \
|
||||
-datacenter "dc1" \
|
||||
-datacenter "dc2" \
|
||||
@ -44,15 +44,15 @@ Usage: consul acl policy <subcommand> [options] [args]
|
||||
|
||||
Update a policy:
|
||||
|
||||
$ consul acl policy update "other-policy" -datacenter "dc1"
|
||||
$ consul acl policy update -name "other-policy" -datacenter "dc1"
|
||||
|
||||
Read a policy:
|
||||
|
||||
$ consul acl policy read 0479e93e-091c-4475-9b06-79a004765c24
|
||||
$ consul acl policy read -id 0479e93e-091c-4475-9b06-79a004765c24
|
||||
|
||||
Delete a policy
|
||||
|
||||
$ consul acl policy delete "my-policy"
|
||||
$ consul acl policy delete -name "my-policy"
|
||||
|
||||
For more examples, ask for subcommand help or view the documentation.
|
||||
`
|
||||
|
@ -81,7 +81,7 @@ Usage: consul acl <subcommand> [options] [args]
|
||||
|
||||
Create a new ACL Policy:
|
||||
|
||||
$ consul acl policy create "new-policy" \
|
||||
$ consul acl policy create -name "new-policy" \
|
||||
-description "This is an example policy" \
|
||||
-datacenter "dc1" \
|
||||
-datacenter "dc2" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user