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": "eb832769-b6c8-4e19-87cb-180cff776b3b",
"name": "name-1932"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "eb832769-b6c8-4e19-87cb-180cff776b3b",
"name": "name-1932"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMiIsImVtYWlsIjoiZW1haWwtMjM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2NDN9.CevztgmHQHOb0tr9ObyTp7uFXq9ISmCzRlahmM8IkYs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "dc5a27a1-d400-4743-bf24-9ee2d4819103",
"url": "/v2/service_keys/dc5a27a1-d400-4743-bf24-9ee2d4819103",
"created_at": "2015-05-07T23:37:23Z",
"updated_at": null
},
"entity": {
"name": "name-1932",
"service_instance_guid": "eb832769-b6c8-4e19-87cb-180cff776b3b",
"credentials": {
"creds-key-528": "creds-val-528"
},
"service_instance_url": "/v2/service_instances/eb832769-b6c8-4e19-87cb-180cff776b3b"
}
}
Headers