Home
Version 3
Service Brokers API

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOSIsImVtYWlsIjoiZW1haWwtNzRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0ODAzODk0OX0.PUUgK9uiMXLqGCgNoafNf2siNlO-UFfxmbkJECgIejE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/service_brokers" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwOSIsImVtYWlsIjoiZW1haWwtNzRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0ODAzODk0OX0.PUUgK9uiMXLqGCgNoafNf2siNlO-UFfxmbkJECgIejE" \
	-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": "d9b00a4f-fab5-42d4-9e01-94eb9383a6cd",
        "url": "/v2/service_brokers/d9b00a4f-fab5-42d4-9e01-94eb9383a6cd",
        "created_at": "2015-11-13T17:02:29Z",
        "updated_at": "2015-11-13T17:02:29Z"
      },
      "entity": {
        "name": "name-274",
        "broker_url": "https://foo.com/url-22",
        "auth_username": "auth_username-19",
        "space_guid": "f86086c6-690f-48d2-871e-4dfeadf40286"
      }
    },
    {
      "metadata": {
        "guid": "a12104dd-3d7c-4b89-809d-371c24122ef5",
        "url": "/v2/service_brokers/a12104dd-3d7c-4b89-809d-371c24122ef5",
        "created_at": "2015-11-13T17:02:29Z",
        "updated_at": null
      },
      "entity": {
        "name": "name-275",
        "broker_url": "https://foo.com/url-23",
        "auth_username": "auth_username-20",
        "space_guid": null
      }
    },
    {
      "metadata": {
        "guid": "7763c93b-bbee-4598-b1e1-ea48c863fd7d",
        "url": "/v2/service_brokers/7763c93b-bbee-4598-b1e1-ea48c863fd7d",
        "created_at": "2015-11-13T17:02:29Z",
        "updated_at": null
      },
      "entity": {
        "name": "name-276",
        "broker_url": "https://foo.com/url-24",
        "auth_username": "auth_username-21",
        "space_guid": null
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1417
X-Content-Type-Options: nosniff