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": "eed9ee40-fea1-4aaf-bf45-c793ab75ce04",
"name": "name-906"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "eed9ee40-fea1-4aaf-bf45-c793ab75ce04",
"name": "name-906"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NiIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTB9.zDqaH9PI0sbVr9DyT0mvwJ4oBLxw8Ckqc8sntam9uaU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "dae25399-18bf-4f55-9196-a33ac9e798e0",
"url": "/v2/service_keys/dae25399-18bf-4f55-9196-a33ac9e798e0",
"created_at": "2015-12-22T18:28:10Z",
"updated_at": null
},
"entity": {
"name": "name-906",
"service_instance_guid": "eed9ee40-fea1-4aaf-bf45-c793ab75ce04",
"credentials": {
"creds-key-413": "creds-val-413"
},
"service_instance_url": "/v2/service_instances/eed9ee40-fea1-4aaf-bf45-c793ab75ce04"
}
}
Headers