Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/301658cd-89dc-49bd-9991-dce140edf457

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzN9.B3cklsTw0s5qkTlQCpJxRswsxMs2DzpDXm7WvrikK7Q
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/301658cd-89dc-49bd-9991-dce140edf457" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzNSIsImVtYWlsIjoiZW1haWwtMTcxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzN9.B3cklsTw0s5qkTlQCpJxRswsxMs2DzpDXm7WvrikK7Q" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "301658cd-89dc-49bd-9991-dce140edf457",
    "url": "/v2/routes/301658cd-89dc-49bd-9991-dce140edf457",
    "created_at": "2016-01-19T19:41:13Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-16",
    "path": "",
    "domain_guid": "86d9266c-8393-456b-b592-16c82c9a62b9",
    "space_guid": "654b65b2-b15d-4509-8f5d-51a3a4d9afba",
    "service_instance_guid": "a807b514-d555-4c85-b719-97da7153c6c8",
    "port": 0,
    "domain_url": "/v2/domains/86d9266c-8393-456b-b592-16c82c9a62b9",
    "space_url": "/v2/spaces/654b65b2-b15d-4509-8f5d-51a3a4d9afba",
    "service_instance_url": "/v2/service_instances/a807b514-d555-4c85-b719-97da7153c6c8",
    "apps_url": "/v2/routes/301658cd-89dc-49bd-9991-dce140edf457/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 760
X-Content-Type-Options: nosniff