Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/c0634750-47e0-4f9b-aab1-0ee58bd9b4af

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OSIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDJ9.zqvNtBQfeRGq9ShXeTdtpL_Jg0eFia1MqObFvBAZr_U
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/c0634750-47e0-4f9b-aab1-0ee58bd9b4af" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OSIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTY0NTIyNDJ9.zqvNtBQfeRGq9ShXeTdtpL_Jg0eFia1MqObFvBAZr_U" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "c0634750-47e0-4f9b-aab1-0ee58bd9b4af",
    "url": "/v2/routes/c0634750-47e0-4f9b-aab1-0ee58bd9b4af",
    "created_at": "2016-02-19T02:04:02Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-23",
    "path": "",
    "domain_guid": "aa90c718-1a44-407a-afad-b3c96f8fbcc2",
    "space_guid": "1bd55a2b-1cb7-4a02-ba06-ddf66e2d12dd",
    "service_instance_guid": "384d8306-9176-457e-bbd7-596f8c2059e7",
    "port": 0,
    "domain_url": "/v2/domains/aa90c718-1a44-407a-afad-b3c96f8fbcc2",
    "space_url": "/v2/spaces/1bd55a2b-1cb7-4a02-ba06-ddf66e2d12dd",
    "service_instance_url": "/v2/service_instances/384d8306-9176-457e-bbd7-596f8c2059e7",
    "apps_url": "/v2/routes/c0634750-47e0-4f9b-aab1-0ee58bd9b4af/apps"
  }
}

Headers

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