Create a Private Service Broker
POST /v2/service_brokers
Request
Route
POST /v2/service_brokers
Body
Name |
Description |
Default |
Valid Values |
Example Values |
name
|
The name of the service broker.
|
|
|
|
broker_url
|
The URL of the service broker.
|
|
|
- https://broker.example.com
|
auth_username
|
The username with which to authenticate against the service broker.
|
|
|
|
auth_password
|
The password with which to authenticate against the service broker.
|
|
|
|
space_guid
|
Guid of a space in which the broker will be private
|
|
|
|
{
"name": "service-broker-name",
"broker_url": "https://broker.example.com",
"auth_username": "admin",
"auth_password": "secretpassw0rd",
"space_guid": "f7526883-2030-44f9-90bc-a6c4405bf0c7"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_brokers" -d '{
"name": "service-broker-name",
"broker_url": "https://broker.example.com",
"auth_username": "admin",
"auth_password": "secretpassw0rd",
"space_guid": "f7526883-2030-44f9-90bc-a6c4405bf0c7"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MCIsImVtYWlsIjoiZW1haWwtMTc3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTB9.mL0G-0uBfzPrQP0droV3RjiCBi1Caway_w2hpLko8gQ" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "8b0678f2-9df0-4b65-a2aa-2ec5d4387669",
"created_at": "2015-07-06T23:23:10Z",
"updated_at": null,
"url": "/v2/service_brokers/8b0678f2-9df0-4b65-a2aa-2ec5d4387669"
},
"entity": {
"name": "service-broker-name",
"broker_url": "https://broker.example.com",
"auth_username": "admin",
"space_guid": "f7526883-2030-44f9-90bc-a6c4405bf0c7"
}
}
Headers