Update a Service Broker
PUT /v2/service_brokers/:guid
Request
Route
PUT /v2/service_brokers/213bd221-66c2-44f5-9d7d-2fefc0b63e3c
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/213bd221-66c2-44f5-9d7d-2fefc0b63e3c" -d '{
"auth_username": "admin-user",
"auth_password": "some-secret",
"broker_url": "https://mybroker.example.com"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4IiwiZW1haWwiOiJlbWFpbC0xOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgyfQ.3mEfTSJhWWrWIBOp-lvmOmDXRk8GKdwvMCQYKFrW76I" \
-H "Host: example.org" \
-H "Content-Type: application/json" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"metadata": {
"guid": "213bd221-66c2-44f5-9d7d-2fefc0b63e3c",
"created_at": "2016-06-08T16:41:22Z",
"updated_at": "2016-06-08T16:41:22Z",
"url": "/v2/service_brokers/213bd221-66c2-44f5-9d7d-2fefc0b63e3c"
},
"entity": {
"name": "name-91",
"broker_url": "https://mybroker.example.com",
"auth_username": "admin-user",
"space_guid": "1f94d6c3-e154-4edf-b280-bc95091070a1"
}
}
Headers