Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/cc6e601d-984d-4d8d-a299-03b406896a13

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NyIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDN9.S8SeCzHJk0KUrJM97IqVIFInRw0pJlhRkm2uzbWfVq0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/cc6e601d-984d-4d8d-a299-03b406896a13" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1NyIsImVtYWlsIjoiZW1haWwtMjU5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2NDN9.S8SeCzHJk0KUrJM97IqVIFInRw0pJlhRkm2uzbWfVq0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "cc6e601d-984d-4d8d-a299-03b406896a13",
    "url": "/v2/routes/cc6e601d-984d-4d8d-a299-03b406896a13",
    "created_at": "2016-04-16T01:24:02Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-29",
    "path": "",
    "domain_guid": "771768db-9641-4fe3-a99f-d5ecaa330db2",
    "space_guid": "d05b0370-7c70-4a0a-8a83-2b4b983f392b",
    "service_instance_guid": "4dff9d93-c538-4e2a-912f-31d9cf9dc2eb",
    "port": null,
    "domain_url": "/v2/domains/771768db-9641-4fe3-a99f-d5ecaa330db2",
    "space_url": "/v2/spaces/d05b0370-7c70-4a0a-8a83-2b4b983f392b",
    "service_instance_url": "/v2/service_instances/4dff9d93-c538-4e2a-912f-31d9cf9dc2eb",
    "apps_url": "/v2/routes/cc6e601d-984d-4d8d-a299-03b406896a13/apps",
    "route_mappings_url": "/v2/routes/cc6e601d-984d-4d8d-a299-03b406896a13/route_mappings"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 76ad5693-eed8-4ee8-bd7c-ab11b585ee76
Content-Length: 855
X-Content-Type-Options: nosniff