Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/f96674f0-b4cb-41b0-9afa-72606aa03bab

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC02OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMzfQ.Lgcv13kNndjoQjPxhKJpGiAZn-xxQbzXqCbEQSsG2aw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/f96674f0-b4cb-41b0-9afa-72606aa03bab" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcxIiwiZW1haWwiOiJlbWFpbC02OUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMzfQ.Lgcv13kNndjoQjPxhKJpGiAZn-xxQbzXqCbEQSsG2aw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "f96674f0-b4cb-41b0-9afa-72606aa03bab",
    "url": "/v2/routes/f96674f0-b4cb-41b0-9afa-72606aa03bab",
    "created_at": "2015-11-03T00:53:53Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-17",
    "path": "",
    "domain_guid": "424cbb55-c437-4ae2-a03d-f3bb39507e8b",
    "space_guid": "d89577fe-066a-4825-9002-69f23a2f31f7",
    "service_instance_guid": "b8520918-f40c-426d-b009-c7eb15b05124",
    "port": 0,
    "domain_url": "/v2/domains/424cbb55-c437-4ae2-a03d-f3bb39507e8b",
    "space_url": "/v2/spaces/d89577fe-066a-4825-9002-69f23a2f31f7",
    "service_instance_url": "/v2/service_instances/b8520918-f40c-426d-b009-c7eb15b05124",
    "apps_url": "/v2/routes/f96674f0-b4cb-41b0-9afa-72606aa03bab/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: eac2c31a-538d-469a-8599-be68aea3e8e6
Content-Length: 760
X-Content-Type-Options: nosniff