Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/d9272d1d-6d3c-4f8e-9381-6f42c9b29ebd

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyIiwiZW1haWwiOiJlbWFpbC00MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4Njk5fQ.5XNky1sRF8OR4nhmxBOR3v02ef_LEDoPW8peCJGafc8
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/d9272d1d-6d3c-4f8e-9381-6f42c9b29ebd" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQyIiwiZW1haWwiOiJlbWFpbC00MkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4Njk5fQ.5XNky1sRF8OR4nhmxBOR3v02ef_LEDoPW8peCJGafc8" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "d9272d1d-6d3c-4f8e-9381-6f42c9b29ebd",
    "url": "/v2/routes/d9272d1d-6d3c-4f8e-9381-6f42c9b29ebd",
    "created_at": "2015-04-07T19:11:39Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-8",
    "domain_guid": "79a3e4fb-75b3-4801-9236-1b751ec752c3",
    "space_guid": "075b4bce-4013-454b-bedc-407740d658ea",
    "domain_url": "/v2/domains/79a3e4fb-75b3-4801-9236-1b751ec752c3",
    "space_url": "/v2/spaces/075b4bce-4013-454b-bedc-407740d658ea",
    "apps_url": "/v2/routes/d9272d1d-6d3c-4f8e-9381-6f42c9b29ebd/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f58bd7d8-1f00-422b-8f0f-ec9111f51cd7
Content-Length: 569
X-Content-Type-Options: nosniff