Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/b924c965-c31a-4f98-83e1-14e16eccf26a

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MSIsImVtYWlsIjoiZW1haWwtMTM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDJ9.fqM9u3gfIBTCzaAjTpp2mQ_nxRAMWPEIkyP-_oRxNmM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/b924c965-c31a-4f98-83e1-14e16eccf26a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3MSIsImVtYWlsIjoiZW1haWwtMTM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDJ9.fqM9u3gfIBTCzaAjTpp2mQ_nxRAMWPEIkyP-_oRxNmM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "b924c965-c31a-4f98-83e1-14e16eccf26a",
    "url": "/v2/routes/b924c965-c31a-4f98-83e1-14e16eccf26a",
    "created_at": "2016-04-22T19:33:22Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-16",
    "path": "",
    "domain_guid": "9d6638f2-5c1e-4a05-9407-9da8b8ff059c",
    "space_guid": "c99c99a3-0d8f-4c6e-a805-e3e7860ceef4",
    "service_instance_guid": "61878322-5bc2-44c2-aba5-0a7827bb7267",
    "port": null,
    "domain_url": "/v2/domains/9d6638f2-5c1e-4a05-9407-9da8b8ff059c",
    "space_url": "/v2/spaces/c99c99a3-0d8f-4c6e-a805-e3e7860ceef4",
    "service_instance_url": "/v2/service_instances/61878322-5bc2-44c2-aba5-0a7827bb7267",
    "apps_url": "/v2/routes/b924c965-c31a-4f98-83e1-14e16eccf26a/apps",
    "route_mappings_url": "/v2/routes/b924c965-c31a-4f98-83e1-14e16eccf26a/route_mappings"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8109b16a-bc3a-4e8c-b0f7-5121e479d669
Content-Length: 855
X-Content-Type-Options: nosniff