Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Need clarification on creation of V3 credentials

While I was trying to create V3 credentials below was the issue faced

curl -i -X POST http://10.4.230.133:35357/v3/credentials -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "X-Auth-Token: <token-omitted>" -d'{"credential": {"user_id": "64d29e5d86f84440bdd8948ce81a5ae7", "blob": {"access": "bdd3ed90edee4cbf91d1ecdfc46", "secret": "47154b6378eb4b8685f75e4936e22"}, "project_id": "f06ea93f31be40f991154a63dedbf300", "type": "ec2"}}' HTTP/1.1 400 Bad Request Vary: X-Auth-Token Content-Type: application/json Content-Length: 89 Date: Wed, 28 Aug 2013 11:26:57 GMT

{"error": {"message": "Invalid blob in credential", "code": 400, "title": "Bad Request"}}

Request body I used to create is as below

body = {"credential": {"user_id": "64d29e5d86f84440bdd8948ce81a5ae7", "blob": {"access": "bdd3ed90edee4cbf91d1ecdfc46", "secret": "47154b6378eb4b8685f75e4936e22"}, "project_id": "f06ea93f31be40f991154a63dedbf300", "type": "ec2"}}

But this reference Doc (https://github.com/openstack/identity-api/blob/master/openstack-identity-api/v3/src/markdown/identity-api-v3.md) says request to like this

Request: { "credential": { "blob": "--JSON serialized object containing 'access' and 'secret'--", "project_id": "--optional--", "type": "ec2", "user_id": "--user--id--" } }

Can anyone please correct me if I am wrong. ASAP.

Thanks in Advance, Harika.