首页 > Windows开发 > 详细

openstack api users list get token get servers

时间:2016-01-05 18:46:57      阅读:242      评论:0      收藏:0      [点我收藏+]

curl -i \
  -H "Content-Type: application/json" \
  -d ‘
{ "auth": {
    "identity": {
      "methods": ["password"],
      "password": {
        "user": {
          "name": "demo",
          "domain": { "id": "default" },
          "password": "123456"
        }
      }
    }
  }
}‘ \
  http://192.168.3.181:5000/v3/auth/tokens ; echo

curl -s -H "X-Auth-Token: 9853c8676b41450bb9a79fbdbcf240e1" http://192.168.3.181:35357/v3/users | python -m json.tool

curl -s -H "X-Auth-Token: ed3c98a7610d473bb2a3ceb9d62e3edd" http://192.168.3.181:8774/v2/be9bae3f0e15476f8044e9887e43decf/servers | python -m json.tool

openstack api users list get token get servers

原文:http://www.cnblogs.com/ruiy/p/5103297.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!