Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/b693965b-fdbb-4d8a-89fe-95e746c652a5

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC04NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODUwfQ.vCul1G6fyGcKemYg_ibPJhL3q4MdtdUqGSmvu17q25c
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/b693965b-fdbb-4d8a-89fe-95e746c652a5" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg3IiwiZW1haWwiOiJlbWFpbC04NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODUwfQ.vCul1G6fyGcKemYg_ibPJhL3q4MdtdUqGSmvu17q25c" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "b693965b-fdbb-4d8a-89fe-95e746c652a5",
    "url": "/v2/routes/b693965b-fdbb-4d8a-89fe-95e746c652a5",
    "created_at": "2015-06-16T23:40:50Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-18",
    "path": "",
    "domain_guid": "9c292c62-0cfa-436a-8454-110495946069",
    "space_guid": "f264b0c4-0b6f-47d2-b0ad-594f310039ef",
    "domain_url": "/v2/domains/9c292c62-0cfa-436a-8454-110495946069",
    "space_url": "/v2/spaces/f264b0c4-0b6f-47d2-b0ad-594f310039ef",
    "apps_url": "/v2/routes/b693965b-fdbb-4d8a-89fe-95e746c652a5/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0ad7c349-5c04-4c4d-9152-e6a3ea16b7d3
Content-Length: 586
X-Content-Type-Options: nosniff