本文地址:http://blog.csdn.net/spch2008/article/details/9379763
之前在网上看到一张keystone工作流程图,如下:
credentials实际就是用户名,密码之类的东西。通过用户名与密码向keystone进行注册,取得一个token。
curl -d '{"auth": {"tenantName": "$YOUR_TENANT_NAME", "passwordCredentials":{"username": "$YOUR_USER_NAME", "password": "$YOUR_PASSWORD"
例如:
curl -d '{"auth": {"tenantName": "admin", "passwordCredentials":{"username": "admin", "password": "admin"}}}' -H "Content-type: application/json" http://172.16.4.1:35357/v2.0/tokens
输出: