GET /v2/service_brokers
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 |
|
|
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 |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzR9.dJTx7jwzdbpit4K8EZCt14k_DjuS-cWRtwiyUnE4DTk Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_brokers" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MCIsImVtYWlsIjoiZW1haWwtMTc2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzR9.dJTx7jwzdbpit4K8EZCt14k_DjuS-cWRtwiyUnE4DTk" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "20805374-3049-4466-b3e2-02d488845eab", "url": "/v2/service_brokers/20805374-3049-4466-b3e2-02d488845eab", "created_at": "2016-01-19T19:41:14Z", "updated_at": "2016-01-19T19:41:14Z" }, "entity": { "name": "name-1876", "broker_url": "https://foo.com/url-55", "auth_username": "auth_username-45", "space_guid": "8a0f7b55-589c-4833-8f21-79b00a25b415" } }, { "metadata": { "guid": "5e7fac1d-6327-49e2-b300-b531edf7626b", "url": "/v2/service_brokers/5e7fac1d-6327-49e2-b300-b531edf7626b", "created_at": "2016-01-19T19:41:14Z", "updated_at": null }, "entity": { "name": "name-1877", "broker_url": "https://foo.com/url-56", "auth_username": "auth_username-46", "space_guid": null } }, { "metadata": { "guid": "b1e37e60-c1a7-439e-a0ac-72143761c883", "url": "/v2/service_brokers/b1e37e60-c1a7-439e-a0ac-72143761c883", "created_at": "2016-01-19T19:41:14Z", "updated_at": null }, "entity": { "name": "name-1878", "broker_url": "https://foo.com/url-57", "auth_username": "auth_username-47", "space_guid": null } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 1420 X-Content-Type-Options: nosniff