分享

请问关于rest api认证的问题,一直是404错误

marine 发表于 2016-12-13 13:40:21 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 14223
curl -s -X POST  http://controller:35357/v3/tokens -d '{"auth":{"passwordCredentials":{"username":"admin","password":"123456"},"tenantName":"admin"}}' -H 'Content-type:application/json' | python -m json.tool

这是按照官网的获取token的方式,但是一直出现错误
{"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

请各位大神帮我看看,谢谢

已有(2)人评论

跳转到指定楼层
langke93 发表于 2016-12-13 16:25:25
请求的资源不存在,如果用户名密码没有问题,请求的是什么。看着好像只执行一个脚本
回复

使用道具 举报

arsenduan 发表于 2016-12-13 16:27:49
似乎格式有问题,建议参考这个

Openstack rest API 操作实例
http://www.aboutyun.com/forum.php?mod=viewthread&tid=10327

更多
使用Rest工具向OpenStack消息发送指导
http://www.aboutyun.com/forum.php?mod=viewthread&tid=8526


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条