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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNiIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMjZ9.X3RL1dGasNvImXkRi_94-fCmL-nDzEwO7JtbjC2QliI
Host: example.org
Cookie: 

Route

GET /v2/routes/92f0b7d5-024d-4d04-a707-84e61e17d7fc

cURL

curl "https://api.[your-domain.com]/v2/routes/92f0b7d5-024d-4d04-a707-84e61e17d7fc" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNiIsImVtYWlsIjoiZW1haWwtMTA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxMjZ9.X3RL1dGasNvImXkRi_94-fCmL-nDzEwO7JtbjC2QliI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b73a93b3-1f32-43d0-92d8-eac2a2be14dc
Content-Length: 570
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "92f0b7d5-024d-4d04-a707-84e61e17d7fc",
    "url": "/v2/routes/92f0b7d5-024d-4d04-a707-84e61e17d7fc",
    "created_at": "2015-02-12T01:42:06Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-10",
    "domain_guid": "c4e02277-c42c-4add-a11f-2238e657582d",
    "space_guid": "78d4b5f1-6028-4710-bb96-c52b84042584",
    "domain_url": "/v2/domains/c4e02277-c42c-4add-a11f-2238e657582d",
    "space_url": "/v2/spaces/78d4b5f1-6028-4710-bb96-c52b84042584",
    "apps_url": "/v2/routes/92f0b7d5-024d-4d04-a707-84e61e17d7fc/apps"
  }
}