GET /v2/spaces/374904f3-2959-47fd-b66a-f686dcd04043/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 |
|
|
Name | Description | Default | Valid Values | Example Values |
---|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNyIsImVtYWlsIjoiZW1haWwtMTI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTR9.WXWCgex1JSKxggjH-OENb4dQWRuyFr6ONKv1P_xtW4g Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/374904f3-2959-47fd-b66a-f686dcd04043/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNyIsImVtYWlsIjoiZW1haWwtMTI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTR9.WXWCgex1JSKxggjH-OENb4dQWRuyFr6ONKv1P_xtW4g" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "6743fc32-b937-4ab4-a53f-187b8ed1def8", "url": "/v2/routes/6743fc32-b937-4ab4-a53f-187b8ed1def8", "created_at": "2015-05-15T16:53:34Z", "updated_at": null }, "entity": { "host": "host-19", "path": "", "domain_guid": "708f6a91-6f76-408e-b4dd-d9314b1855e5", "space_guid": "374904f3-2959-47fd-b66a-f686dcd04043", "domain_url": "/v2/domains/708f6a91-6f76-408e-b4dd-d9314b1855e5", "space_url": "/v2/spaces/374904f3-2959-47fd-b66a-f686dcd04043", "apps_url": "/v2/routes/6743fc32-b937-4ab4-a53f-187b8ed1def8/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 8b54ce5e-2cea-483a-a7f0-c9d11d8f2eb8 Content-Length: 761 X-Content-Type-Options: nosniff