Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/bd6e8942-a370-408f-8abe-5ce7565ffe92

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MCIsImVtYWlsIjoiZW1haWwtMTk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTN9.rVk-V7gTE8wj9oHHR-Njr_7J0v9Cf2cXLSx3YFXYgSs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/bd6e8942-a370-408f-8abe-5ce7565ffe92" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MCIsImVtYWlsIjoiZW1haWwtMTk3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTN9.rVk-V7gTE8wj9oHHR-Njr_7J0v9Cf2cXLSx3YFXYgSs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "bd6e8942-a370-408f-8abe-5ce7565ffe92",
    "url": "/v2/routes/bd6e8942-a370-408f-8abe-5ce7565ffe92",
    "created_at": "2015-06-04T00:05:13Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-10",
    "path": "",
    "domain_guid": "b1bd95ad-119a-467a-a130-4dce8c1cfb6b",
    "space_guid": "580233b4-4f34-43f7-a6b6-abee31dc0635",
    "domain_url": "/v2/domains/b1bd95ad-119a-467a-a130-4dce8c1cfb6b",
    "space_url": "/v2/spaces/580233b4-4f34-43f7-a6b6-abee31dc0635",
    "apps_url": "/v2/routes/bd6e8942-a370-408f-8abe-5ce7565ffe92/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8229e82b-9fb1-4ec3-a139-287f770b9742
Content-Length: 586
X-Content-Type-Options: nosniff