Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/e47189a8-be4d-4691-aa7f-af57dfc4cb7d

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNiIsImVtYWlsIjoiZW1haWwtMzA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTd9.0D4AsSk3LOjq5fIxaH1xhII-pYgCNl34oTm5MBrU3Rs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/e47189a8-be4d-4691-aa7f-af57dfc4cb7d" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNiIsImVtYWlsIjoiZW1haWwtMzA2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTd9.0D4AsSk3LOjq5fIxaH1xhII-pYgCNl34oTm5MBrU3Rs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "e47189a8-be4d-4691-aa7f-af57dfc4cb7d",
    "url": "/v2/routes/e47189a8-be4d-4691-aa7f-af57dfc4cb7d",
    "created_at": "2015-08-06T00:36:57Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-19",
    "path": "",
    "domain_guid": "f2691328-363d-4a0d-9688-e4e47cf6b3d0",
    "space_guid": "2b27b4df-20da-448b-95c9-03d984ab8627",
    "domain_url": "/v2/domains/f2691328-363d-4a0d-9688-e4e47cf6b3d0",
    "space_url": "/v2/spaces/2b27b4df-20da-448b-95c9-03d984ab8627",
    "apps_url": "/v2/routes/e47189a8-be4d-4691-aa7f-af57dfc4cb7d/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f9cdd47b-4ddc-4f92-9cf6-fa509e662769
Content-Length: 586
X-Content-Type-Options: nosniff