Update a Service Broker
PUT /v2/service_brokers/:guid
Request
Route
PUT /v2/service_brokers/f9dd9f6a-62f2-41c3-92e6-ef03a0cb0cbd
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/f9dd9f6a-62f2-41c3-92e6-ef03a0cb0cbd" -d '{
"auth_username": "admin-user",
"auth_password": "some-secret",
"broker_url": "https://mybroker.example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0NiIsImVtYWlsIjoiZW1haWwtMzE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTV9.vPE93MNVVRaCPuFqILjznVe-C6WoVkCj9fImxw-qbi4" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "f9dd9f6a-62f2-41c3-92e6-ef03a0cb0cbd",
"created_at": "2016-01-13T17:29:55Z",
"updated_at": "2016-01-13T17:29:55Z",
"url": "/v2/service_brokers/f9dd9f6a-62f2-41c3-92e6-ef03a0cb0cbd"
},
"entity": {
"name": "name-2321",
"broker_url": "https://mybroker.example.com",
"auth_username": "admin-user",
"space_guid": "f5789aee-1d23-4ebc-81d4-56515a3aae1b"
}
}
Headers