码迷,mamicode.com
首页 > Windows程序 > 详细

openstack api users list get token get servers

时间:2016-01-05 18:49:57      阅读:434      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!