GET /v2/routes/65a828dd-3e5b-42fa-afc4-28ad9575458e/route_mappings
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: app_guid, route_guid (Note that filtering on route_guid will return an empty list if you specify anything other than the guid included in the 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 route. |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOCIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMn0.AZQ4gHVNkFrV2sdgzu0UhBm4RMxKEZ2X32GYz8y1ehI Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/routes/65a828dd-3e5b-42fa-afc4-28ad9575458e/route_mappings" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOCIsImVtYWlsIjoiZW1haWwtOTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMn0.AZQ4gHVNkFrV2sdgzu0UhBm4RMxKEZ2X32GYz8y1ehI" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "de548370-cb5b-4f64-9ba4-f3ff79540bf6", "url": "/v2/route_mappings/de548370-cb5b-4f64-9ba4-f3ff79540bf6", "created_at": "2016-03-14T22:30:31Z", "updated_at": null }, "entity": { "app_port": 8080, "app_guid": "3bd2a54b-6027-4811-87d0-54f260bb93ae", "route_guid": "65a828dd-3e5b-42fa-afc4-28ad9575458e", "app_url": "/v2/apps/3bd2a54b-6027-4811-87d0-54f260bb93ae", "route_url": "/v2/routes/65a828dd-3e5b-42fa-afc4-28ad9575458e" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: Content-Length: 663 X-Content-Type-Options: nosniff