GET /v2/spaces/4e4f358c-c60a-44d2-bd54-e6ef9c28a654/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NSIsImVtYWlsIjoiZW1haWwtMjk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzUwMDB9.cjUrXXrWcy44pFJ8AxjktIPUQHAIi_111AH_tnFEr6Q Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/spaces/4e4f358c-c60a-44d2-bd54-e6ef9c28a654/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NSIsImVtYWlsIjoiZW1haWwtMjk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzUwMDB9.cjUrXXrWcy44pFJ8AxjktIPUQHAIi_111AH_tnFEr6Q" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "9e60f0d8-81ab-49ce-8c54-da2b30570ddb", "url": "/v2/routes/9e60f0d8-81ab-49ce-8c54-da2b30570ddb", "created_at": "2015-05-21T01:03:20Z", "updated_at": null }, "entity": { "host": "host-25", "path": "", "domain_guid": "66a569c5-d88a-4af5-840f-d79152b450ce", "space_guid": "4e4f358c-c60a-44d2-bd54-e6ef9c28a654", "domain_url": "/v2/domains/66a569c5-d88a-4af5-840f-d79152b450ce", "space_url": "/v2/spaces/4e4f358c-c60a-44d2-bd54-e6ef9c28a654", "apps_url": "/v2/routes/9e60f0d8-81ab-49ce-8c54-da2b30570ddb/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 51adf7ba-4597-4f16-9942-88b65729eec7 Content-Length: 761 X-Content-Type-Options: nosniff