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.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NyIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjB9.ukaWjuLShrD6odEnXJkCtRTqvoTJ8fmsSDrqMjTCNos
Host: example.org
Cookie: 

Route

GET /v2/routes/be122039-efd5-48d5-ad30-5ce9b0488752

cURL

curl "https://api.[your-domain.com]/v2/routes/be122039-efd5-48d5-ad30-5ce9b0488752" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NyIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjB9.ukaWjuLShrD6odEnXJkCtRTqvoTJ8fmsSDrqMjTCNos" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 76fef509-30eb-41f8-9d10-d0ce583da153
Content-Length: 574
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "be122039-efd5-48d5-ad30-5ce9b0488752",
    "url": "/v2/routes/be122039-efd5-48d5-ad30-5ce9b0488752",
    "created_at": "2014-11-24T19:32:40+00:00",
    "updated_at": null
  },
  "entity": {
    "host": "host-7",
    "domain_guid": "cc0fce69-8c11-48ac-ae44-b9914e92176b",
    "space_guid": "425477a1-f77f-4495-8e1d-291e6ff358d3",
    "domain_url": "/v2/domains/cc0fce69-8c11-48ac-ae44-b9914e92176b",
    "space_url": "/v2/spaces/425477a1-f77f-4495-8e1d-291e6ff358d3",
    "apps_url": "/v2/routes/be122039-efd5-48d5-ad30-5ce9b0488752/apps"
  }
}