GET /v2/spaces/e6931871-d95f-4ce8-9164-8c816c6f549c/routes
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the Space |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTkzIiwiZW1haWwiOiJlbWFpbC01N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc3fQ._PlYJ7F0uS-1QB8OPzbDS2C7FRjIEhw0veFUXvGtXio Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/e6931871-d95f-4ce8-9164-8c816c6f549c/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkzIiwiZW1haWwiOiJlbWFpbC01N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc3fQ._PlYJ7F0uS-1QB8OPzbDS2C7FRjIEhw0veFUXvGtXio" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "41422867-51d8-47d5-af0e-cd36fd1c4dac", "url": "/v2/routes/41422867-51d8-47d5-af0e-cd36fd1c4dac", "created_at": "2015-07-06T23:22:57Z", "updated_at": null }, "entity": { "host": "host-3", "path": "", "domain_guid": "2fad13d6-5f9b-4281-91b0-f34e925981a6", "space_guid": "e6931871-d95f-4ce8-9164-8c816c6f549c", "domain_url": "/v2/domains/2fad13d6-5f9b-4281-91b0-f34e925981a6", "space_url": "/v2/spaces/e6931871-d95f-4ce8-9164-8c816c6f549c", "apps_url": "/v2/routes/41422867-51d8-47d5-af0e-cd36fd1c4dac/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 8188c132-ee10-4ebd-b274-bfa4091a6ba1 Content-Length: 760 X-Content-Type-Options: nosniff