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": "ba41419a-6f38-4347-866a-535c16848428",
"name": "name-628"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_keys" -d '{
"service_instance_guid": "ba41419a-6f38-4347-866a-535c16848428",
"name": "name-628"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NiIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2MzN9.yS3k-B2t2f4V40fs4g2i8PHxCc3BqioUfAJEaVzyLGU" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "be172236-199d-42f3-9310-0cec39f74c7b",
"url": "/v2/service_keys/be172236-199d-42f3-9310-0cec39f74c7b",
"created_at": "2016-04-16T01:23:53Z",
"updated_at": null
},
"entity": {
"name": "name-628",
"service_instance_guid": "ba41419a-6f38-4347-866a-535c16848428",
"credentials": {
"creds-key-16": "creds-val-16"
},
"service_instance_url": "/v2/service_instances/ba41419a-6f38-4347-866a-535c16848428"
}
}
Headers