我在firefox中,利用restclient去调用keystone的策略,具体调用方式及参数如下:
http://172.16.62.167:5000/v3/policies, the method is POST;
Headers 内容如下:
X-Auth-Token:ADMIN,Content-Type:application/json
body内容如下:
{
"blob": {
"open": [
{
"api": "/v1/services/instances/callback",
"method": "POST"
},
{
"api": "/v1/auth/tokens",
"method": "POST"
}
]
},
"project_id": "dev-team",
"type": "application/json",
"user_id": "d393c90daf6d41428eabbd843957421f"
}
response 内容:
<error message="create_policy() got an unexpected keyword argument 'type'" code="400" title="Bad Request"/>
|