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": "2cdbda05-44a0-4fb8-a1b9-cda98e008098",
"name": "name-125"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "2cdbda05-44a0-4fb8-a1b9-cda98e008098",
"name": "name-125"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY0IiwiZW1haWwiOiJlbWFpbC0zMkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQyNjAxNTI3fQ.q1Wi1pTm_27iy5uXq6yQVLwq31TgwU_Nncq78subPKE" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "63f63c25-f23e-431c-bd74-c9bc1676230e",
"url": "/v2/service_keys/63f63c25-f23e-431c-bd74-c9bc1676230e",
"created_at": "2015-09-11T18:38:47Z",
"updated_at": null
},
"entity": {
"name": "name-125",
"service_instance_guid": "2cdbda05-44a0-4fb8-a1b9-cda98e008098",
"credentials": {
"creds-key-68": "creds-val-68"
},
"service_instance_url": "/v2/service_instances/2cdbda05-44a0-4fb8-a1b9-cda98e008098"
}
}
Headers