Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/4d4734f9-68eb-4232-b063-47e6c1300953

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMSIsImVtYWlsIjoiZW1haWwtNzBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMX0.DPMrG-DOWlnKzsM-SEd9yN6nQZhgalqX5Zw05ymfpLo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/4d4734f9-68eb-4232-b063-47e6c1300953" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMSIsImVtYWlsIjoiZW1haWwtNzBAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMX0.DPMrG-DOWlnKzsM-SEd9yN6nQZhgalqX5Zw05ymfpLo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "4d4734f9-68eb-4232-b063-47e6c1300953",
    "url": "/v2/routes/4d4734f9-68eb-4232-b063-47e6c1300953",
    "created_at": "2015-05-07T23:37:11Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-5",
    "domain_guid": "ff1ccb9d-67f4-4ee4-ac78-4bb010ba8387",
    "space_guid": "aa18426c-9199-4afe-b0ea-c87315360ef9",
    "path": "",
    "domain_url": "/v2/domains/ff1ccb9d-67f4-4ee4-ac78-4bb010ba8387",
    "space_url": "/v2/spaces/aa18426c-9199-4afe-b0ea-c87315360ef9",
    "apps_url": "/v2/routes/4d4734f9-68eb-4232-b063-47e6c1300953/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b7d41a26-a381-47bf-a614-ec6dfe38a451
Content-Length: 585
X-Content-Type-Options: nosniff