Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/40421420-ef13-4c7a-86cc-de08bc3743d7

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNCIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc5MX0.TcjOsIoG4b2SyCaEvCZBhPsFNY56H3nIh5XTuR1bDXw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/40421420-ef13-4c7a-86cc-de08bc3743d7" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNCIsImVtYWlsIjoiZW1haWwtNzlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzODY0MTc5MX0.TcjOsIoG4b2SyCaEvCZBhPsFNY56H3nIh5XTuR1bDXw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "40421420-ef13-4c7a-86cc-de08bc3743d7",
    "url": "/v2/routes/40421420-ef13-4c7a-86cc-de08bc3743d7",
    "created_at": "2015-07-27T22:43:11Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-5",
    "path": "",
    "domain_guid": "0321ceec-13e7-462a-a177-45ae869f2334",
    "space_guid": "50c4924a-7110-4d10-994c-a4175e9fa87b",
    "domain_url": "/v2/domains/0321ceec-13e7-462a-a177-45ae869f2334",
    "space_url": "/v2/spaces/50c4924a-7110-4d10-994c-a4175e9fa87b",
    "apps_url": "/v2/routes/40421420-ef13-4c7a-86cc-de08bc3743d7/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8b9f76af-3311-43f6-b4f5-827617008cfd
Content-Length: 585
X-Content-Type-Options: nosniff