mantl / consul-cli

Command line interface to Consul HTTP API
Apache License 2.0
251 stars 67 forks source link

Specify ACL token on create #40

Closed mschirrmeister closed 7 years ago

mschirrmeister commented 7 years ago

When you create Consul ACL via the API you can provide an ID. If ID field is provided, it uses this value as the uuid.

Example:

curl -X PUT -H "X-Consul-Token: d5144785-65ab-4d91-8521-a660d7b07fcc" -d '{ "Name": "marco", "Type": "management", "ID": "5a27872c-0396-4327-919b-ea8343f330a7" }' https://n1.node.consul.mydomain.com:8501/v1/acl/create

Any plans to introduce an option in consul-cli acl create to provide the id/uuid?

Thanks Marco