can 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 the broker is scoped to. Space developers are able to create service brokers scoped to a space.
|
|
|
|
{
"name": "service-broker-name",
"broker_url": "https://broker.example.com",
"auth_username": "admin",
"auth_password": "secretpassw0rd",
"space_guid": "dd2cc86f-5796-4727-9585-f461dcce9be1"
}
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": "dd2cc86f-5796-4727-9585-f461dcce9be1"
}' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1MyIsImVtYWlsIjoiZW1haWwtMzIxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDh9.bb6JQr8gn_oxdPCmnrtKI4zXBY4b4k8ZXMjj7agW0EI" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "e250479e-17cf-4ca2-9d57-c5b047b21a4d",
"created_at": "2015-10-07T00:35:47Z",
"updated_at": null,
"url": "/v2/service_brokers/e250479e-17cf-4ca2-9d57-c5b047b21a4d"
},
"entity": {
"name": "service-broker-name",
"broker_url": "https://broker.example.com",
"auth_username": "admin",
"space_guid": "dd2cc86f-5796-4727-9585-f461dcce9be1"
}
}
Headers