Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/03dc825a-6a6c-4bd3-b21d-a7b10c9b2b67

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUiLCJlbWFpbCI6ImVtYWlsLTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk1NX0.FsCWCYB15MWPsrY4S_uyl37kI8ZIL2fmKocFBAJ8s7A
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/03dc825a-6a6c-4bd3-b21d-a7b10c9b2b67" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUiLCJlbWFpbCI6ImVtYWlsLTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk1NX0.FsCWCYB15MWPsrY4S_uyl37kI8ZIL2fmKocFBAJ8s7A" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "03dc825a-6a6c-4bd3-b21d-a7b10c9b2b67",
    "url": "/v2/routes/03dc825a-6a6c-4bd3-b21d-a7b10c9b2b67",
    "created_at": "2015-03-18T22:52:35Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-4",
    "domain_guid": "b0c3676a-85b8-4fdc-83d0-0f8d3e479d29",
    "space_guid": "5f0e270b-3794-4396-8ba3-3b24b2de4ecf",
    "domain_url": "/v2/domains/b0c3676a-85b8-4fdc-83d0-0f8d3e479d29",
    "space_url": "/v2/spaces/5f0e270b-3794-4396-8ba3-3b24b2de4ecf",
    "apps_url": "/v2/routes/03dc825a-6a6c-4bd3-b21d-a7b10c9b2b67/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a3809d8e-e06d-4fb5-8c70-528b8172b468
Content-Length: 569
X-Content-Type-Options: nosniff