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.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMyIsImVtYWlsIjoiZW1haWwtMzA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTd9._TCsw5d35enX44TOZqDD-sAHifLRfudsSEw3xIFze_g Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_brokers" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMyIsImVtYWlsIjoiZW1haWwtMzA5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NTd9._TCsw5d35enX44TOZqDD-sAHifLRfudsSEw3xIFze_g" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "6932f06e-305e-4aac-905d-7cf219cefb55", "url": "/v2/service_brokers/6932f06e-305e-4aac-905d-7cf219cefb55", "created_at": "2015-11-03T00:54:17Z", "updated_at": "2015-11-03T00:54:17Z" }, "entity": { "name": "name-2391", "broker_url": "https://foo.com/url-115", "auth_username": "auth_username-90", "space_guid": "26799f3f-3666-4a42-ac73-d81cf8a7a992" } }, { "metadata": { "guid": "dc34962b-669a-4634-8e20-de8bf36f19c1", "url": "/v2/service_brokers/dc34962b-669a-4634-8e20-de8bf36f19c1", "created_at": "2015-11-03T00:54:17Z", "updated_at": null }, "entity": { "name": "name-2392", "broker_url": "https://foo.com/url-116", "auth_username": "auth_username-91", "space_guid": null } }, { "metadata": { "guid": "3961e64b-2099-4708-bda6-6fee759a3145", "url": "/v2/service_brokers/3961e64b-2099-4708-bda6-6fee759a3145", "created_at": "2015-11-03T00:54:17Z", "updated_at": null }, "entity": { "name": "name-2393", "broker_url": "https://foo.com/url-117", "auth_username": "auth_username-92", "space_guid": null } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: a837b457-81b6-4ed4-89e1-79138f85e7b9 Content-Length: 1423 X-Content-Type-Options: nosniff