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": "2bad63d5-82d9-4844-b6e2-d01a36f9dd62",
"name": "name-447"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "2bad63d5-82d9-4844-b6e2-d01a36f9dd62",
"name": "name-447"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMyIsImVtYWlsIjoiZW1haWwtOTBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MzMxMDk3Nn0.PQQsuaNGldVCW7wmHTn0JGMr_k--KLL3FcgptURAM4U" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "06626ba8-e6ec-4a3f-8233-fe22e8834115",
"url": "/v2/service_keys/06626ba8-e6ec-4a3f-8233-fe22e8834115",
"created_at": "2016-01-13T17:29:36Z",
"updated_at": null
},
"entity": {
"name": "name-447",
"service_instance_guid": "2bad63d5-82d9-4844-b6e2-d01a36f9dd62",
"credentials": {
"creds-key-35": "creds-val-35"
},
"service_instance_url": "/v2/service_instances/2bad63d5-82d9-4844-b6e2-d01a36f9dd62"
}
}
Headers