GET /v2/service_instances/fcfdbc7c-b0c3-45ec-9ecc-7168ae99cd2e/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 |
|
|
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 |
---|---|---|---|---|
guid | The guid of the Service Instance. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODI2fQ.JbaDrbyCjHh4m1bjPIGJ0gsFIVwdcNGSPPPB24_aTL8 Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_instances/fcfdbc7c-b0c3-45ec-9ecc-7168ae99cd2e/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxIiwiZW1haWwiOiJlbWFpbC0yMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODI2fQ.JbaDrbyCjHh4m1bjPIGJ0gsFIVwdcNGSPPPB24_aTL8" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "9cb39b43-e467-486d-9cc1-21653e0e7700", "url": "/v2/routes/9cb39b43-e467-486d-9cc1-21653e0e7700", "created_at": "2015-11-03T00:53:46Z", "updated_at": null }, "entity": { "host": "host-5", "path": "", "domain_guid": "481607bf-fe7e-4581-9db3-585497cb4fc1", "space_guid": "8a098583-ce84-4b97-b83a-c770ceac13e7", "service_instance_guid": "fcfdbc7c-b0c3-45ec-9ecc-7168ae99cd2e", "port": 0, "domain_url": "/v2/domains/481607bf-fe7e-4581-9db3-585497cb4fc1", "space_url": "/v2/spaces/8a098583-ce84-4b97-b83a-c770ceac13e7", "service_instance_url": "/v2/service_instances/fcfdbc7c-b0c3-45ec-9ecc-7168ae99cd2e", "apps_url": "/v2/routes/9cb39b43-e467-486d-9cc1-21653e0e7700/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 0faaa255-e65f-4a47-98ff-0c0a05e55a4d Content-Length: 946 X-Content-Type-Options: nosniff