GET /v2/service_instances/1b7cc136-d4a3-4411-bfb2-4b76339e247d/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NSIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NTZ9.u4npFr-94cdbZe5mvTzFS_vOEg_zCvQzp8krctDu8gc Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/service_instances/1b7cc136-d4a3-4411-bfb2-4b76339e247d/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NSIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NTZ9.u4npFr-94cdbZe5mvTzFS_vOEg_zCvQzp8krctDu8gc" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "8ae371e9-7c16-4c34-a77d-f4afc18520c0", "url": "/v2/routes/8ae371e9-7c16-4c34-a77d-f4afc18520c0", "created_at": "2015-10-15T23:52:36Z", "updated_at": null }, "entity": { "host": "host-16", "path": "", "domain_guid": "83ea1816-b6d8-4602-872a-a85b0e0712c5", "space_guid": "607258e9-5eec-4119-bbb9-bb55273dd944", "service_instance_guid": "1b7cc136-d4a3-4411-bfb2-4b76339e247d", "port": 0, "domain_url": "/v2/domains/83ea1816-b6d8-4602-872a-a85b0e0712c5", "space_url": "/v2/spaces/607258e9-5eec-4119-bbb9-bb55273dd944", "service_instance_url": "/v2/service_instances/1b7cc136-d4a3-4411-bfb2-4b76339e247d", "apps_url": "/v2/routes/8ae371e9-7c16-4c34-a77d-f4afc18520c0/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: ef043feb-049f-499f-b9e0-6f5e59a8f519 Content-Length: 947 X-Content-Type-Options: nosniff