Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/8e7bb651-6c50-43af-8d94-f4a534093b31

Parameters

Name Description Valid Values Example Values
guid The guid of the Route

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMSIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzJ9.WVSCqfFD3o4VkjCkekv3gx1JUwmOpiQSCS2SxbJSedI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/8e7bb651-6c50-43af-8d94-f4a534093b31" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMSIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzJ9.WVSCqfFD3o4VkjCkekv3gx1JUwmOpiQSCS2SxbJSedI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "8e7bb651-6c50-43af-8d94-f4a534093b31",
    "url": "/v2/routes/8e7bb651-6c50-43af-8d94-f4a534093b31",
    "created_at": "2015-03-03T00:51:12Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-9",
    "domain_guid": "5cba01e3-2a7b-469d-a37c-99e89a2a081a",
    "space_guid": "a302ae11-f557-4f26-bd97-25290cc21071",
    "domain_url": "/v2/domains/5cba01e3-2a7b-469d-a37c-99e89a2a081a",
    "space_url": "/v2/spaces/a302ae11-f557-4f26-bd97-25290cc21071",
    "apps_url": "/v2/routes/8e7bb651-6c50-43af-8d94-f4a534093b31/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c6dd6a79-cecc-463d-bbba-68711ab1130a
Content-Length: 569
X-Content-Type-Options: nosniff