GET /v2/spaces/023cb821-8891-45df-a54f-19051b2d9159/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MSIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTd9.6D2VmjU8B2q_2ghqTW6Kwk9Jb3gNXeHEqSFBrmf4R14 Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/023cb821-8891-45df-a54f-19051b2d9159/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MSIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTd9.6D2VmjU8B2q_2ghqTW6Kwk9Jb3gNXeHEqSFBrmf4R14" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "e522e2a7-4371-413c-b596-2b72602b14ac", "url": "/v2/routes/e522e2a7-4371-413c-b596-2b72602b14ac", "created_at": "2016-05-12T00:45:17Z", "updated_at": null }, "entity": { "host": "host-17", "path": "", "domain_guid": "00f61bf3-ead2-473f-8297-4bdcf9dcee12", "space_guid": "023cb821-8891-45df-a54f-19051b2d9159", "service_instance_guid": null, "port": null, "domain_url": "/v2/domains/00f61bf3-ead2-473f-8297-4bdcf9dcee12", "space_url": "/v2/spaces/023cb821-8891-45df-a54f-19051b2d9159", "apps_url": "/v2/routes/e522e2a7-4371-413c-b596-2b72602b14ac/apps", "route_mappings_url": "/v2/routes/e522e2a7-4371-413c-b596-2b72602b14ac/route_mappings" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 019cb39b-ec49-453e-a88c-93e64e49417b Content-Length: 918 X-Content-Type-Options: nosniff