GET /v2/spaces/807eab3b-d574-41be-8aba-9d76959c0be9/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, 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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OCIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDV9.oRmi7V-DC1sr8L0EaRIzk1BvKis64MIIxSiD35QpJN0 Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/807eab3b-d574-41be-8aba-9d76959c0be9/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1OCIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDV9.oRmi7V-DC1sr8L0EaRIzk1BvKis64MIIxSiD35QpJN0" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "d7146136-f316-4549-8ce9-bfc5b910b08d", "url": "/v2/routes/d7146136-f316-4549-8ce9-bfc5b910b08d", "created_at": "2016-04-22T19:33:25Z", "updated_at": null }, "entity": { "host": "host-18", "path": "", "domain_guid": "4f7bb58c-bba5-45ab-b24e-7b8362bb299f", "space_guid": "807eab3b-d574-41be-8aba-9d76959c0be9", "service_instance_guid": null, "port": null, "domain_url": "/v2/domains/4f7bb58c-bba5-45ab-b24e-7b8362bb299f", "space_url": "/v2/spaces/807eab3b-d574-41be-8aba-9d76959c0be9", "apps_url": "/v2/routes/d7146136-f316-4549-8ce9-bfc5b910b08d/apps", "route_mappings_url": "/v2/routes/d7146136-f316-4549-8ce9-bfc5b910b08d/route_mappings" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 986ff386-96be-4e39-8382-6268fcb1df63 Content-Length: 918 X-Content-Type-Options: nosniff