Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg5IiwiZW1haWwiOiJlbWFpbC01OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTM0fQ.RAcubFEix3uzE_GTvG4yfEapEAQq3ljZ6R_DM5fALpM
Host: example.org
Cookie: 

Route

GET /v2/routes/09d79aad-2050-4f06-82fc-1bc30b7f9f2e

cURL

curl "https://api.[your-domain.com]/v2/routes/09d79aad-2050-4f06-82fc-1bc30b7f9f2e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg5IiwiZW1haWwiOiJlbWFpbC01OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDIyMzIzNTM0fQ.RAcubFEix3uzE_GTvG4yfEapEAQq3ljZ6R_DM5fALpM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 799d31f9-9419-4642-8f78-c95d22298b43
Content-Length: 574
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "09d79aad-2050-4f06-82fc-1bc30b7f9f2e",
    "url": "/v2/routes/09d79aad-2050-4f06-82fc-1bc30b7f9f2e",
    "created_at": "2015-01-20T01:52:14+00:00",
    "updated_at": null
  },
  "entity": {
    "host": "host-5",
    "domain_guid": "195cfc1f-a3e3-4d78-bcb1-03d7985296b6",
    "space_guid": "f2beb98d-c1c4-4433-80bf-5b8046c55613",
    "domain_url": "/v2/domains/195cfc1f-a3e3-4d78-bcb1-03d7985296b6",
    "space_url": "/v2/spaces/f2beb98d-c1c4-4433-80bf-5b8046c55613",
    "apps_url": "/v2/routes/09d79aad-2050-4f06-82fc-1bc30b7f9f2e/apps"
  }
}