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, port |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NiIsImVtYWlsIjoiZW1haWwtMjU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDJ9.ZYtliqqVHld3-IDEw6XFn7WpclfuI1cvUGvKmJAsJDM Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NiIsImVtYWlsIjoiZW1haWwtMjU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDJ9.ZYtliqqVHld3-IDEw6XFn7WpclfuI1cvUGvKmJAsJDM" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "7615d7f7-31b7-4b53-80ef-141d6f2d11a7", "url": "/v2/routes/7615d7f7-31b7-4b53-80ef-141d6f2d11a7", "created_at": "2016-04-16T01:24:02Z", "updated_at": null }, "entity": { "host": "host-28", "path": "", "domain_guid": "993b89ba-3e89-44c4-9acb-b713be889e86", "space_guid": "b5489fef-7b1a-4ce1-aa7d-35b06d0b0148", "service_instance_guid": "c2d8ec02-4949-4691-a209-fb5666b06ed0", "port": null, "domain_url": "/v2/domains/993b89ba-3e89-44c4-9acb-b713be889e86", "space_url": "/v2/spaces/b5489fef-7b1a-4ce1-aa7d-35b06d0b0148", "service_instance_url": "/v2/service_instances/c2d8ec02-4949-4691-a209-fb5666b06ed0", "apps_url": "/v2/routes/7615d7f7-31b7-4b53-80ef-141d6f2d11a7/apps", "route_mappings_url": "/v2/routes/7615d7f7-31b7-4b53-80ef-141d6f2d11a7/route_mappings" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: ecced092-484d-4685-8411-3174ff9b5b73 Content-Length: 1046 X-Content-Type-Options: nosniff