Here is How To Get Auth Token in HP Cloud OpenStack Swift, Which is Possibly Most Frequently Asked Question. It Will Also Work For CyberDuck. OpenStack or OpenStack Swift is Free Software but in real life we actually can not use one providers method on another provider, due to difference in installation. Otherwise tools used for Rackspace Cloud Files would fully worked. Honestly, you need a minimum knowledge of using Command Line Interface. In example we are using a Mac, you might use Mac or GNU/Linux.
How To Get Auth Token in HP Cloud OpenStack Swift?
Setting up your
.bashrc file with
openstackrc data : you can follow this guide for adding OpenStack RC data to zshrc file. In short, (copy paste the urls to a text editor if you need), if you visit this URL :
API Access tab, you will get that
Download OpenStack RC file option. Add it on your whatever profile file. These are honestly not for Microsoft Windows – yes, with Cygwin we can make Windows like POSIX complaint OS but that is too complicated.
Now the format of the command, run this command after copy pasting to your text editor and changing the values to real :
curl -i https://region-a.geo-1.identity.hpcloudsvc.com:35357/auth/v1.0/ -X GET -H 'x-auth-user: OS_TENANT_ID:OS_USERNAME' -H 'x-auth-key: OS_PASSWORD' | grep X-Auth-Token
Here is a screenshot :
We have used unix pipe to filter the whole big output and grep only the X-Auth-Token value. We are forced to use blur for the real values on the screenshot.
Follow the Author of this article :