Name | Description | Default | Valid Values | Example Values |
---|
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 |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzR9.Ybgmt6zFLmib4BmaMND4gzEKXeYnfmjaR4VchTIV6CM Host: example.org Cookie:
GET /v2/service_brokers
curl "https://api.[your-domain.com]/v2/service_brokers" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNCIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNzR9.Ybgmt6zFLmib4BmaMND4gzEKXeYnfmjaR4VchTIV6CM" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 48c1d314-73ed-4446-bf1a-073a3b70f90b Content-Length: 1284 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 3, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "16adfdba-5ad0-4963-bd3e-e124c526d2bd", "url": "/v2/service_brokers/16adfdba-5ad0-4963-bd3e-e124c526d2bd", "created_at": "2015-02-10T01:42:54Z", "updated_at": null }, "entity": { "name": "name-1519", "broker_url": "https://foo.com/url-64", "auth_username": "auth_username-31" } }, { "metadata": { "guid": "b3a9bf55-4f35-4d8e-9eab-a0dcdd210b70", "url": "/v2/service_brokers/b3a9bf55-4f35-4d8e-9eab-a0dcdd210b70", "created_at": "2015-02-10T01:42:54Z", "updated_at": null }, "entity": { "name": "name-1520", "broker_url": "https://foo.com/url-65", "auth_username": "auth_username-32" } }, { "metadata": { "guid": "24508202-3b7f-44be-a13e-e6b8378f9baf", "url": "/v2/service_brokers/24508202-3b7f-44be-a13e-e6b8378f9baf", "created_at": "2015-02-10T01:42:54Z", "updated_at": null }, "entity": { "name": "name-1521", "broker_url": "https://foo.com/url-66", "auth_username": "auth_username-33" } } ] }