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": "15cafb3b-237b-4d34-bd62-1c477e4431bb",
"name": "name-2471"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "15cafb3b-237b-4d34-bd62-1c477e4431bb",
"name": "name-2471"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MCIsImVtYWlsIjoiZW1haWwtMzI4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NjR9.7wf9T3dkPvdcEKrAAvKAj8PkMjeix0v7VaMyyOIgYrk" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "e20f2fb4-fd02-423f-a31a-31ef1f1e229f",
"url": "/v2/service_keys/e20f2fb4-fd02-423f-a31a-31ef1f1e229f",
"created_at": "2015-09-30T23:31:04Z",
"updated_at": null
},
"entity": {
"name": "name-2471",
"service_instance_guid": "15cafb3b-237b-4d34-bd62-1c477e4431bb",
"credentials": {
"creds-key-724": "creds-val-724"
},
"service_instance_url": "/v2/service_instances/15cafb3b-237b-4d34-bd62-1c477e4431bb"
}
}
Headers