Hi All ,

I am unable to send the PUT request using the CURL command for storing the
secret .


root@barbican:~# curl -X POST -H 'content-type:application/json' -H
'X-Project-Id: 12345' -d '{"secret": {"name": "secretname", "algorithm":
"aes", "bit_length"                                  : 256, "mode":
"cbc"}}' http://localhost:9311/v1/secrets
{"secret_ref": "
http://localhost:9311/v1/secrets/84aaac35-daa9-4ffb-b03e-18596729705d"}

curl -X PUT -H 'content-type:application/json' -H 'X-Project-Id: 12345' -d
'{"secret": {"payload": "secretput", "payload_content_type": "text/plain"
}}' http://localhost:9311/v1/secrets
*{"code": 405, "description": "", "title": "Method Not Allowed"}*

It would be great if some one could help me .
Thanks in advance.

-- 
*Thanks and Regards,*
*Asha Seshagiri*
__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to