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": "d3f402e1-26c4-4a0e-9756-cf0f4b3aa120",
"name": "name-2232"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "d3f402e1-26c4-4a0e-9756-cf0f4b3aa120",
"name": "name-2232"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMCIsImVtYWlsIjoiZW1haWwtMjIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDk1MzE1MzF9.Fprc6W_RDbLi3-oyXPkZOsDJpuTfsyQiBQiNQQxXyb0" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "85692552-2f02-4b13-a858-0105d7d75bb4",
"url": "/v2/service_keys/85692552-2f02-4b13-a858-0105d7d75bb4",
"created_at": "2015-11-30T23:38:51Z",
"updated_at": null
},
"entity": {
"name": "name-2232",
"service_instance_guid": "d3f402e1-26c4-4a0e-9756-cf0f4b3aa120",
"credentials": {
"creds-key-489": "creds-val-489"
},
"service_instance_url": "/v2/service_instances/d3f402e1-26c4-4a0e-9756-cf0f4b3aa120"
}
}
Headers