Service Brokers API

List all Service Brokers

GET /v2/service_brokers

Request

Route

GET /v2/service_brokers

Parameters

Name Description Valid Values Example Values
q Parameters used to filter the result set.
Format queries as <filter><op><value>
Valid ops: : >= <= < > IN
Valid filters: name, space_guid
  • q=filter:value
  • q=filter>value
  • q=filter IN a,b,c
page Page of results to fetch
results-per-page Number of results per page
order-direction Order of the results: asc (default) or desc
inline-relations-depth 0 - don't inline any relations and return URLs. Otherwise, inline to depth N.
orphan-relations 0 - de-duplicate object entries in response
exclude-relations comma-delimited list of relations to drop from response
include-relations comma-delimited list of the only relations to include in response

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3IiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgyfQ.5R44mouHQAoZfcsrf7fKreSVEEOw9CVSzLeZx3-GFKY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_brokers" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3IiwiZW1haWwiOiJlbWFpbC0xN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDY2MDA4ODgyfQ.5R44mouHQAoZfcsrf7fKreSVEEOw9CVSzLeZx3-GFKY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "total_results": 3,
  "total_pages": 1,
  "prev_url": null,
  "next_url": null,
  "resources": [
    {
      "metadata": {
        "guid": "90a413fd-a636-4133-8bfb-a94b07839e96",
        "url": "/v2/service_brokers/90a413fd-a636-4133-8bfb-a94b07839e96",
        "created_at": "2016-06-08T16:41:22Z",
        "updated_at": "2016-06-08T16:41:22Z"
      },
      "entity": {
        "name": "name-85",
        "broker_url": "https://foo.com/url-2",
        "auth_username": "auth_username-2",
        "space_guid": "1d43e64d-ed64-43dd-9046-11f422bd407b"
      }
    },
    {
      "metadata": {
        "guid": "a3419c34-477f-4279-9ccc-4e4ac4b3dfac",
        "url": "/v2/service_brokers/a3419c34-477f-4279-9ccc-4e4ac4b3dfac",
        "created_at": "2016-06-08T16:41:22Z",
        "updated_at": "2016-06-08T16:41:26Z"
      },
      "entity": {
        "name": "name-86",
        "broker_url": "https://foo.com/url-3",
        "auth_username": "auth_username-3",
        "space_guid": null
      }
    },
    {
      "metadata": {
        "guid": "96736210-67dc-47bf-9dad-718847dd3f50",
        "url": "/v2/service_brokers/96736210-67dc-47bf-9dad-718847dd3f50",
        "created_at": "2016-06-08T16:41:22Z",
        "updated_at": "2016-06-08T16:41:26Z"
      },
      "entity": {
        "name": "name-87",
        "broker_url": "https://foo.com/url-4",
        "auth_username": "auth_username-4",
        "space_guid": null
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7bbcd975-7a2b-4b3d-aa1f-dbbd2b5af6e3
Content-Length: 1408
X-Content-Type-Options: nosniff