Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/75e3454b-5015-4fb5-8d32-f71eeb8a4474

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNCIsImVtYWlsIjoiZW1haWwtOTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMX0.VOmRlDh0BR_OfwhQTZG2A44XHhs0XWLrDJYqcG6TSM0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/75e3454b-5015-4fb5-8d32-f71eeb8a4474" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNCIsImVtYWlsIjoiZW1haWwtOTVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMX0.VOmRlDh0BR_OfwhQTZG2A44XHhs0XWLrDJYqcG6TSM0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "75e3454b-5015-4fb5-8d32-f71eeb8a4474",
    "url": "/v2/routes/75e3454b-5015-4fb5-8d32-f71eeb8a4474",
    "created_at": "2016-03-14T22:30:31Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-15",
    "path": "",
    "domain_guid": "9b0b6999-d477-4748-99db-59f3fcfdd5bf",
    "space_guid": "7bb7d5ba-0027-43ee-8e52-e320442adf2e",
    "service_instance_guid": "d6b4fdfa-0068-46e6-96ec-872d496a3a65",
    "port": 0,
    "domain_url": "/v2/domains/9b0b6999-d477-4748-99db-59f3fcfdd5bf",
    "space_url": "/v2/spaces/7bb7d5ba-0027-43ee-8e52-e320442adf2e",
    "service_instance_url": "/v2/service_instances/d6b4fdfa-0068-46e6-96ec-872d496a3a65",
    "apps_url": "/v2/routes/75e3454b-5015-4fb5-8d32-f71eeb8a4474/apps",
    "route_mappings_url": "/v2/routes/75e3454b-5015-4fb5-8d32-f71eeb8a4474/route_mappings"
  }
}

Headers

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