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, path |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMyIsImVtYWlsIjoiZW1haWwtMjcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDR9.BCYQrQppDq7IkvSa739LQ1unPSgIBgHEKwzeaLRWPxI Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMyIsImVtYWlsIjoiZW1haWwtMjcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDR9.BCYQrQppDq7IkvSa739LQ1unPSgIBgHEKwzeaLRWPxI" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "0529d483-8914-4b2f-9c16-9d70f5d44d15", "url": "/v2/routes/0529d483-8914-4b2f-9c16-9d70f5d44d15", "created_at": "2015-10-07T00:35:44Z", "updated_at": null }, "entity": { "host": "host-27", "path": "", "domain_guid": "36967d0e-f0c9-4558-8c35-3125126cd209", "space_guid": "d0f5a318-da58-47fa-a3a0-c5004b541924", "service_instance_guid": "c08967ca-109b-46ec-9bb8-fcb39d321b1b", "domain_url": "/v2/domains/36967d0e-f0c9-4558-8c35-3125126cd209", "space_url": "/v2/spaces/d0f5a318-da58-47fa-a3a0-c5004b541924", "service_instance_url": "/v2/service_instances/c08967ca-109b-46ec-9bb8-fcb39d321b1b", "apps_url": "/v2/routes/0529d483-8914-4b2f-9c16-9d70f5d44d15/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: ca834d23-9d0c-409d-8b8f-73a643872940 Content-Length: 928 X-Content-Type-Options: nosniff