Update a Service Broker
PUT /v2/service_brokers/:guid
Request
Route
PUT /v2/service_brokers/f833a162-b948-46a8-8d65-c35f3e7d248c
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/f833a162-b948-46a8-8d65-c35f3e7d248c" -d '{
"auth_username": "admin-user",
"auth_password": "some-secret",
"broker_url": "https://mybroker.example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NyIsImVtYWlsIjoiZW1haWwtMTgzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MDh9.pEuQYB6sWpffWSHLBqkUHUIpv2QqdRKDd_b0WbKzu_E" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "f833a162-b948-46a8-8d65-c35f3e7d248c",
"created_at": "2015-08-31T21:50:07Z",
"updated_at": "2015-08-31T21:50:08Z",
"url": "/v2/service_brokers/f833a162-b948-46a8-8d65-c35f3e7d248c"
},
"entity": {
"name": "name-963",
"broker_url": "https://mybroker.example.com",
"auth_username": "admin-user",
"space_guid": "fd107ffb-6023-4592-b3a8-435d7dcafa40"
}
}
Headers