Updated Create Secret request and response

Removed tenant ID
Added x-project-id header

Change-Id: I0d95fa88d0e323fe88f042a0e6ea5c15562d8915
This commit is contained in:
Sheena Gregson 2014-08-27 18:41:10 -05:00
parent 898e44c8c2
commit 622926b5a1
2 changed files with 11 additions and 13 deletions

View File

@ -1,12 +1,10 @@
curl -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -d\ curl http://endpointURL/v1/secrets -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'X-Project-Id: 12345' -d \
'{ '{
"name": "AES key", "name": "key",
"expiration": "2014-02-28T19:14:44.180394", "expiration": "2014-09-01T19:14:44.180394",
"algorithm": "aes", "algorithm": "aes",
"bit_length": 256, "bit_length": 256,
"mode": "cbc", "mode": "cbc",
"payload": "gF6+lLoF3ohA9aPRpt+6bQ==", "payload": "secretsecretsecret",
"payload_content_type": "application/octet-stream", "payload_content_type": "text/plain"
"payload_content_encoding": "base64" }'
}'
https://endpointURL/v1/12345/secrets

View File

@ -1,3 +1,3 @@
{ {
"secret_ref": "https://endpointURL/v1/12345/secrets/513ed616-2686-4ce5-a96c-fea785fe527b" "secret_ref": "http://endpointURL/v1/secrets/94dc45d8-5232-4be7-8263-9ceeda7410a0"
} }