GET /v2/routes
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: host, domain_guid, organization_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 |
|
|
Name | Description | Default | Valid Values | Example Values |
---|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMiIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzJ9.QE0qngkr9SBZvuggjgjZgAcfRcR1nfXkK0GTfwRUztY Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMiIsImVtYWlsIjoiZW1haWwtMjE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzJ9.QE0qngkr9SBZvuggjgjZgAcfRcR1nfXkK0GTfwRUztY" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "c67534d6-597f-40f2-9a39-cad438674326", "url": "/v2/routes/c67534d6-597f-40f2-9a39-cad438674326", "created_at": "2015-03-03T00:51:12Z", "updated_at": null }, "entity": { "host": "host-10", "domain_guid": "8d88e012-3a75-4fef-a28b-a02444386ecf", "space_guid": "33356e55-cf88-4335-a575-9f7d50ae97da", "domain_url": "/v2/domains/8d88e012-3a75-4fef-a28b-a02444386ecf", "space_url": "/v2/spaces/33356e55-cf88-4335-a575-9f7d50ae97da", "apps_url": "/v2/routes/c67534d6-597f-40f2-9a39-cad438674326/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: f3f35492-100d-400c-8061-e5d1afc00999 Content-Length: 741 X-Content-Type-Options: nosniff