Create a Service Key
POST /v2/service_keys
Request
Route
POST /v2/service_keys
Body
Name |
Description |
Default |
Valid Values |
Example Values |
service_instance_guid
|
The guid of the service instance for which to create service key
|
|
|
|
name
|
The name of the service key
|
|
|
|
parameters
|
Arbitrary parameters to pass along to the service broker. Must be a JSON object
|
|
|
|
{
"service_instance_guid": "03a104f7-08eb-493a-b76f-0759e5431906",
"name": "name-573"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "03a104f7-08eb-493a-b76f-0759e5431906",
"name": "name-573"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYxIiwiZW1haWwiOiJlbWFpbC01OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMyfQ.8aO2w1vA4QIypF866OyNWLffLQLSi-wZeR610e88tx8" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "dd3d3278-0905-4e10-b547-776fc636ecc6",
"url": "/v2/service_keys/dd3d3278-0905-4e10-b547-776fc636ecc6",
"created_at": "2015-11-03T00:53:52Z",
"updated_at": null
},
"entity": {
"name": "name-573",
"service_instance_guid": "03a104f7-08eb-493a-b76f-0759e5431906",
"credentials": {
"creds-key-156": "creds-val-156"
},
"service_instance_url": "/v2/service_instances/03a104f7-08eb-493a-b76f-0759e5431906"
}
}
Headers