GET /v2/service_instances/2036a8e5-0391-49d6-8387-d43b79f5bb18/routes
Name | Description | Valid Values | Example Values |
---|---|---|---|
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, 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.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC03MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI2fQ.oA6GnPgEVZIuG9WpR64EFlHljiPhjeEecxPyAhsweP8 Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_instances/2036a8e5-0391-49d6-8387-d43b79f5bb18/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC03MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI2fQ.oA6GnPgEVZIuG9WpR64EFlHljiPhjeEecxPyAhsweP8" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "3a3550c3-be53-4514-97ec-16af7ca08255", "url": "/v2/routes/3a3550c3-be53-4514-97ec-16af7ca08255", "created_at": "2016-02-19T02:03:46Z", "updated_at": null }, "entity": { "host": "host-9", "path": "", "domain_guid": "cfbf95f8-533d-4757-ad24-9f0e76bcb6cc", "space_guid": "45735324-791d-44e2-bc65-254b50766959", "service_instance_guid": "2036a8e5-0391-49d6-8387-d43b79f5bb18", "port": 0, "domain_url": "/v2/domains/cfbf95f8-533d-4757-ad24-9f0e76bcb6cc", "space_url": "/v2/spaces/45735324-791d-44e2-bc65-254b50766959", "service_instance_url": "/v2/service_instances/2036a8e5-0391-49d6-8387-d43b79f5bb18", "apps_url": "/v2/routes/3a3550c3-be53-4514-97ec-16af7ca08255/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 946 X-Content-Type-Options: nosniff