Home
Version 3
Routes Mapping API

Routes Mapping API

Retrieve a Particular Route Mapping

GET /v2/route_mappings/:guid

Request

Route

GET /v2/route_mappings/5995e078-de69-476b-8e81-d8c315a9e784

Body

Name Description Default Valid Values Example Values
app_guid The guid of the bound application.
  • guid-77cfb0d2-bed5-436f-b9a7-a734da5cf571
route_guid The guid of the bound route.
  • guid-45b46c81-7f75-4b7f-b5f9-5fafcf46c0b2
app_port Port on which the application should listen, and to which requests for the mapped route will be routed. Must be among those already configured for the app. If a port is not specified when mapping the route, the first one in the list of those configured for the app will be chosen.

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgyIiwiZW1haWwiOiJlbWFpbC04MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI3fQ.KCDDB0pNQuW-TfMiZLRKtGHyqfXaj4rCn7N9s0pS9J4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/route_mappings/5995e078-de69-476b-8e81-d8c315a9e784" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgyIiwiZW1haWwiOiJlbWFpbC04MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI3fQ.KCDDB0pNQuW-TfMiZLRKtGHyqfXaj4rCn7N9s0pS9J4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "5995e078-de69-476b-8e81-d8c315a9e784",
    "url": "/v2/route_mappings/5995e078-de69-476b-8e81-d8c315a9e784",
    "created_at": "2016-02-19T02:03:47Z",
    "updated_at": null
  },
  "entity": {
    "app_port": 8888,
    "app_guid": "bf8613b3-bc7e-47e9-96fa-92b770c0b296",
    "route_guid": "d96b57d5-ec4b-41e4-b46a-384b48b1b6fa",
    "app_url": "/v2/apps/bf8613b3-bc7e-47e9-96fa-92b770c0b296",
    "route_url": "/v2/routes/d96b57d5-ec4b-41e4-b46a-384b48b1b6fa"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 496
X-Content-Type-Options: nosniff