GET /v2/service_instances/6b3ac846-280f-48fe-b335-acc052367e8e/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NSIsImVtYWlsIjoiZW1haWwtMjk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMjB9.Wmjf3zVMrt5KgNj-vU6oULfOdozJsV5yFZnLmkqPjNg Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_instances/6b3ac846-280f-48fe-b335-acc052367e8e/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NSIsImVtYWlsIjoiZW1haWwtMjk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMjB9.Wmjf3zVMrt5KgNj-vU6oULfOdozJsV5yFZnLmkqPjNg" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "afcb678b-ae03-4423-8afb-a32847d5e43e", "url": "/v2/routes/afcb678b-ae03-4423-8afb-a32847d5e43e", "created_at": "2015-10-13T17:32:00Z", "updated_at": null }, "entity": { "host": "host-23", "path": "", "domain_guid": "daec226b-accb-4bfe-a1f5-12fa96eefc0a", "space_guid": "4dff5cf0-0011-4d74-bb53-2d666518117b", "service_instance_guid": "6b3ac846-280f-48fe-b335-acc052367e8e", "port": 0, "domain_url": "/v2/domains/daec226b-accb-4bfe-a1f5-12fa96eefc0a", "space_url": "/v2/spaces/4dff5cf0-0011-4d74-bb53-2d666518117b", "service_instance_url": "/v2/service_instances/6b3ac846-280f-48fe-b335-acc052367e8e", "apps_url": "/v2/routes/afcb678b-ae03-4423-8afb-a32847d5e43e/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 5b7237de-b1df-43cf-a20a-5ab07fd4c25b Content-Length: 947 X-Content-Type-Options: nosniff