Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Route

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNiIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzR9.o4NLJiXcnxBQw5p94shLgB75buiPD-KvxrXzVdHm6Rw
Host: example.org
Cookie: 

Route

GET /v2/routes/0b94bf37-605c-451d-a388-36eecd244eeb

cURL

curl "https://api.[your-domain.com]/v2/routes/0b94bf37-605c-451d-a388-36eecd244eeb" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNiIsImVtYWlsIjoiZW1haWwtMTU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzR9.o4NLJiXcnxBQw5p94shLgB75buiPD-KvxrXzVdHm6Rw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 69c88deb-4406-4737-90df-d391cd610095
Content-Length: 575
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "0b94bf37-605c-451d-a388-36eecd244eeb",
    "url": "/v2/routes/0b94bf37-605c-451d-a388-36eecd244eeb",
    "created_at": "2014-12-24T01:39:34+00:00",
    "updated_at": null
  },
  "entity": {
    "host": "host-13",
    "domain_guid": "fb837f67-16df-464d-b641-a7384fdfed3a",
    "space_guid": "5ae22f5b-2270-490a-ad8c-f6d8b3747f4f",
    "domain_url": "/v2/domains/fb837f67-16df-464d-b641-a7384fdfed3a",
    "space_url": "/v2/spaces/5ae22f5b-2270-490a-ad8c-f6d8b3747f4f",
    "apps_url": "/v2/routes/0b94bf37-605c-451d-a388-36eecd244eeb/apps"
  }
}