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": "7b1337c7-d69d-4656-b2cc-1b4a77b3442a",
"name": "name-1477"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "7b1337c7-d69d-4656-b2cc-1b4a77b3442a",
"name": "name-1477"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyMSIsImVtYWlsIjoiZW1haWwtMTI1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDR9.eU0rsaYm8dd56MgVTzotLurWVAe-rxeP-WLcOtSDJBo" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "578f8bae-5fd1-4c54-8b87-8c7e955fd46b",
"url": "/v2/service_keys/578f8bae-5fd1-4c54-8b87-8c7e955fd46b",
"created_at": "2015-10-15T23:52:24Z",
"updated_at": null
},
"entity": {
"name": "name-1477",
"service_instance_guid": "7b1337c7-d69d-4656-b2cc-1b4a77b3442a",
"credentials": {
"creds-key-269": "creds-val-269"
},
"service_instance_url": "/v2/service_instances/7b1337c7-d69d-4656-b2cc-1b4a77b3442a"
}
}
Headers