Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/c107c177-e913-4d83-b8f4-e997dffe78f8

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkxIiwiZW1haWwiOiJlbWFpbC01NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ4MDM4OTQ2fQ.rr5SfDsBh_XQ0XgYfN7k3-r22_5MVinPaRC1Uxz1At8
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/c107c177-e913-4d83-b8f4-e997dffe78f8" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkxIiwiZW1haWwiOiJlbWFpbC01NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ4MDM4OTQ2fQ.rr5SfDsBh_XQ0XgYfN7k3-r22_5MVinPaRC1Uxz1At8" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "c107c177-e913-4d83-b8f4-e997dffe78f8",
    "url": "/v2/routes/c107c177-e913-4d83-b8f4-e997dffe78f8",
    "created_at": "2015-11-13T17:02:26Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-3",
    "path": "",
    "domain_guid": "d7115b88-aba8-40cf-94c4-0aa4f11d3bc8",
    "space_guid": "697a2439-fca0-4b2d-a8a9-e6572022b12a",
    "service_instance_guid": "1c5fad43-b259-4a34-b458-87cc98f85818",
    "port": 0,
    "domain_url": "/v2/domains/d7115b88-aba8-40cf-94c4-0aa4f11d3bc8",
    "space_url": "/v2/spaces/697a2439-fca0-4b2d-a8a9-e6572022b12a",
    "service_instance_url": "/v2/service_instances/1c5fad43-b259-4a34-b458-87cc98f85818",
    "apps_url": "/v2/routes/c107c177-e913-4d83-b8f4-e997dffe78f8/apps"
  }
}

Headers

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