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.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1MSIsImVtYWlsIjoiZW1haWwtMzE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDd9.m_dT0dHinRu1qeDwu5kPzVwoTP38EhFVy--Z0c9JR1I Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_brokers" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ1MSIsImVtYWlsIjoiZW1haWwtMzE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDd9.m_dT0dHinRu1qeDwu5kPzVwoTP38EhFVy--Z0c9JR1I" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "7120138a-0a92-4ded-87c5-65cb315531c9", "url": "/v2/service_brokers/7120138a-0a92-4ded-87c5-65cb315531c9", "created_at": "2015-10-07T00:35:47Z", "updated_at": "2015-10-07T00:35:47Z" }, "entity": { "name": "name-2430", "broker_url": "https://foo.com/url-104", "auth_username": "auth_username-88", "space_guid": "bcd18044-c72e-4af9-b101-8bc3692b4f73" } }, { "metadata": { "guid": "65c940d3-d319-46c8-b5e2-019700580364", "url": "/v2/service_brokers/65c940d3-d319-46c8-b5e2-019700580364", "created_at": "2015-10-07T00:35:47Z", "updated_at": null }, "entity": { "name": "name-2431", "broker_url": "https://foo.com/url-105", "auth_username": "auth_username-89", "space_guid": null } }, { "metadata": { "guid": "e9408352-6cd4-469f-a94a-1ecedafdbe6e", "url": "/v2/service_brokers/e9408352-6cd4-469f-a94a-1ecedafdbe6e", "created_at": "2015-10-07T00:35:47Z", "updated_at": null }, "entity": { "name": "name-2432", "broker_url": "https://foo.com/url-106", "auth_username": "auth_username-90", "space_guid": null } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 26a177b9-526d-441b-bc23-3bc9fbe85cc2 Content-Length: 1423 X-Content-Type-Options: nosniff