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": "29136d95-409b-467d-941f-06575abb6ee9",
"name": "name-1985"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "29136d95-409b-467d-941f-06575abb6ee9",
"name": "name-1985"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMCIsImVtYWlsIjoiZW1haWwtMjQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjR9.vrUyenDgmvBAEyeL95p7gQoKEAmeCkM_gFgS5fU9Pv0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "590ae152-8606-4a5c-b6cb-fcb383f2d053",
"url": "/v2/service_keys/590ae152-8606-4a5c-b6cb-fcb383f2d053",
"created_at": "2015-05-15T16:53:44Z",
"updated_at": null
},
"entity": {
"name": "name-1985",
"service_instance_guid": "29136d95-409b-467d-941f-06575abb6ee9",
"credentials": {
"creds-key-559": "creds-val-559"
},
"service_instance_url": "/v2/service_instances/29136d95-409b-467d-941f-06575abb6ee9"
}
}
Headers