Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/e6c3ae35-9083-4816-9432-ee8ad700fd03

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MiIsImVtYWlsIjoiZW1haWwtMTg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2Nzl9.NNZfT1QMN6T2hEGo47b8CVtoEWKWyaglF0lc2eZCceA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/e6c3ae35-9083-4816-9432-ee8ad700fd03" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MiIsImVtYWlsIjoiZW1haWwtMTg5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2Nzl9.NNZfT1QMN6T2hEGo47b8CVtoEWKWyaglF0lc2eZCceA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e6c3ae35-9083-4816-9432-ee8ad700fd03",
    "url": "/v2/routes/e6c3ae35-9083-4816-9432-ee8ad700fd03",
    "created_at": "2016-03-17T21:41:19Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-24",
    "path": "",
    "domain_guid": "f268feb8-2dec-4709-8b2d-db2e6c764093",
    "space_guid": "dd4e9e11-1b61-44a9-a4c5-6a5eb393c2a0",
    "service_instance_guid": "492eb6e7-820e-40dc-847c-6b30a6fc7b64",
    "port": 0,
    "domain_url": "/v2/domains/f268feb8-2dec-4709-8b2d-db2e6c764093",
    "space_url": "/v2/spaces/dd4e9e11-1b61-44a9-a4c5-6a5eb393c2a0",
    "service_instance_url": "/v2/service_instances/492eb6e7-820e-40dc-847c-6b30a6fc7b64",
    "apps_url": "/v2/routes/e6c3ae35-9083-4816-9432-ee8ad700fd03/apps",
    "route_mappings_url": "/v2/routes/e6c3ae35-9083-4816-9432-ee8ad700fd03/route_mappings"
  }
}

Headers

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