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": "bd50dfe6-d86e-4cde-9e57-1c68ca2209d4",
"name": "name-2248"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "bd50dfe6-d86e-4cde-9e57-1c68ca2209d4",
"name": "name-2248"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0NyIsImVtYWlsIjoiZW1haWwtMjUxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyODB9.VBtBRQEl-QmGglHREpMPC8nsXuOm5Izzt2jDNVyMqAg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "ba4a8d70-2035-45b0-bf60-9a0420a94815",
"url": "/v2/service_keys/ba4a8d70-2035-45b0-bf60-9a0420a94815",
"created_at": "2016-01-19T19:41:20Z",
"updated_at": null
},
"entity": {
"name": "name-2248",
"service_instance_guid": "bd50dfe6-d86e-4cde-9e57-1c68ca2209d4",
"credentials": {
"creds-key-58": "creds-val-58"
},
"service_instance_url": "/v2/service_instances/bd50dfe6-d86e-4cde-9e57-1c68ca2209d4"
}
}
Headers