Update a Service Broker
PUT /v2/service_brokers/:guid
Request
Route
PUT /v2/service_brokers/8d10b974-5be2-4c72-9f6e-ec316e085adb
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the Service Broker
|
|
|
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.
|
|
|
|
{
"auth_username": "admin-user",
"auth_password": "some-secret",
"broker_url": "https://mybroker.example.com"
}
Headers
cURL
curl "https://api.[your-domain.com]/v2/service_brokers/8d10b974-5be2-4c72-9f6e-ec316e085adb" -d '{
"auth_username": "admin-user",
"auth_password": "some-secret",
"broker_url": "https://mybroker.example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMSIsImVtYWlsIjoiZW1haWwtODBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MDUwNjY0MX0.GcOGhBp87rCkuI6Ccvckt5s8Fl4YTPWiJXOQ6ca_h2o" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "8d10b974-5be2-4c72-9f6e-ec316e085adb",
"created_at": "2016-04-06T00:17:21Z",
"updated_at": "2016-04-06T00:17:21Z",
"url": "/v2/service_brokers/8d10b974-5be2-4c72-9f6e-ec316e085adb"
},
"entity": {
"name": "name-284",
"broker_url": "https://mybroker.example.com",
"auth_username": "admin-user",
"space_guid": "d456ad6d-20a9-4cac-8718-18d0cffa0695"
}
}
Headers