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.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MyIsImVtYWlsIjoiZW1haWwtMjgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NTB9.RPyicwPKXRrYcRoRO2Peiyzvlv0R4q3HDGO8UM-N9gY Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_brokers" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4MyIsImVtYWlsIjoiZW1haWwtMjgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NTB9.RPyicwPKXRrYcRoRO2Peiyzvlv0R4q3HDGO8UM-N9gY" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "da0db97c-c6ad-4a3e-8791-1c379b36adc4", "url": "/v2/service_brokers/da0db97c-c6ad-4a3e-8791-1c379b36adc4", "created_at": "2016-03-14T22:30:50Z", "updated_at": "2016-03-14T22:30:50Z" }, "entity": { "name": "name-2366", "broker_url": "https://foo.com/url-94", "auth_username": "auth_username-69", "space_guid": "9586ebce-7fa8-47f8-9955-4c3a837915ae" } }, { "metadata": { "guid": "800b9353-1702-479d-a319-c52e7b708b87", "url": "/v2/service_brokers/800b9353-1702-479d-a319-c52e7b708b87", "created_at": "2016-03-14T22:30:50Z", "updated_at": null }, "entity": { "name": "name-2367", "broker_url": "https://foo.com/url-95", "auth_username": "auth_username-70", "space_guid": null } }, { "metadata": { "guid": "7e1d0e48-3ba4-4782-ab26-ae39ade1f12d", "url": "/v2/service_brokers/7e1d0e48-3ba4-4782-ab26-ae39ade1f12d", "created_at": "2016-03-14T22:30:50Z", "updated_at": null }, "entity": { "name": "name-2368", "broker_url": "https://foo.com/url-96", "auth_username": "auth_username-71", "space_guid": null } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 1420 X-Content-Type-Options: nosniff