##################################################################
For USER KEY verification
# heketi-cli --server <RESTurl> --user user --secret MyOwnSecret volume list
Without user and secret authentication will fail. This user can access only volume API so only volume commands.
You can also set the username and key in environmental variable just like RESTurl
//Server
export HEKETI_CLI_SERVER=http://path
//User
export HEKETI_CLI_USER=user
//secret
export HEKETI_CLI_KEY=MyOwnSecret
# heketi-cli volume list
This will internally use the environmental variables.
##################################################################
> 2) User - can access only volume API's
However, this doesn't work as the User cannot access even the volume API's as mentioned. So the USER KEY verification fails.
######
# heketi-cli --user user --secret MyOwnSecret volume list
Error: Administrator access required
# heketi-cli --server http://heketi-storage-project.cloudapps.mystorage.com --user user --secret MyOwnSecret volume list
Error: Administrator access required
######
Confirmed that this is still a problem with heketi-6.0.
There is no high priority use-case depending on this, moving out for reconsideration with cns-3.11.