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/8c47878e-1650-47a0-99ab-f5790a45c8c2

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NSIsImVtYWlsIjoiZW1haWwtMjAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODF9.hgk5SW9qTT-2N3Ad9NJqaJbfsD2jQ2AJxP3wX9AX4Mc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/route_mappings/8c47878e-1650-47a0-99ab-f5790a45c8c2" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NSIsImVtYWlsIjoiZW1haWwtMjAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2ODF9.hgk5SW9qTT-2N3Ad9NJqaJbfsD2jQ2AJxP3wX9AX4Mc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "8c47878e-1650-47a0-99ab-f5790a45c8c2",
    "url": "/v2/route_mappings/8c47878e-1650-47a0-99ab-f5790a45c8c2",
    "created_at": "2016-03-17T21:41:21Z",
    "updated_at": null
  },
  "entity": {
    "app_port": 8888,
    "app_guid": "2b49eaef-c217-4745-a47e-17156f3af122",
    "route_guid": "838d5dad-4d1b-455a-9a9b-7616207f14e2",
    "app_url": "/v2/apps/2b49eaef-c217-4745-a47e-17156f3af122",
    "route_url": "/v2/routes/838d5dad-4d1b-455a-9a9b-7616207f14e2"
  }
}

Headers

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