Home
Version 3
Service Brokers API

Service Brokers API

Update a Service Broker

PUT /v2/service_brokers/:guid

Request

Route

PUT /v2/service_brokers/36ded763-750d-4fa6-bbcd-4f111da18a79

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.
  • service-broker-name
broker_url The URL of the service broker.
  • https://broker.example.com
auth_username The username with which to authenticate against the service broker.
  • admin
auth_password The password with which to authenticate against the service broker.
  • secretpassw0rd
{
  "auth_username": "admin-user",
  "auth_password": "some-secret",
  "broker_url": "https://mybroker.example.com"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU2IiwiZW1haWwiOiJlbWFpbC0yN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1NTU3OTI5fQ.arbcL7p9zP-JPpM9RNbq7SN9wh0DcVhPoE7moQsn4n8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_brokers/36ded763-750d-4fa6-bbcd-4f111da18a79" -d '{
  "auth_username": "admin-user",
  "auth_password": "some-secret",
  "broker_url": "https://mybroker.example.com"
}' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTU2IiwiZW1haWwiOiJlbWFpbC0yN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ1NTU3OTI5fQ.arbcL7p9zP-JPpM9RNbq7SN9wh0DcVhPoE7moQsn4n8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "36ded763-750d-4fa6-bbcd-4f111da18a79",
    "created_at": "2015-10-15T23:52:09Z",
    "updated_at": "2015-10-15T23:52:09Z",
    "url": "/v2/service_brokers/36ded763-750d-4fa6-bbcd-4f111da18a79"
  },
  "entity": {
    "name": "name-173",
    "broker_url": "https://mybroker.example.com",
    "auth_username": "admin-user",
    "space_guid": "a852b538-9d82-4d37-8ff9-429166c2d368"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2e3b8163-bad7-418b-ac65-0264c09ea141
Content-Length: 414
X-Content-Type-Options: nosniff
X-Cf-Warnings: Warning%3A+Warning+message+may+go+here.