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:
{"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 (https://github.com/openstack/identity...) ) 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.