Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/ff77449b-b4d7-4148-859b-3940d3db9faa

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMiIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDR9.ZLCNBM9XGjuAroO8sc798XvNkijK0yFGy4evns8GSIY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/ff77449b-b4d7-4148-859b-3940d3db9faa" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwMiIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDR9.ZLCNBM9XGjuAroO8sc798XvNkijK0yFGy4evns8GSIY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "ff77449b-b4d7-4148-859b-3940d3db9faa",
    "url": "/v2/routes/ff77449b-b4d7-4148-859b-3940d3db9faa",
    "created_at": "2015-10-07T00:35:44Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-26",
    "path": "",
    "domain_guid": "db3704a4-8014-47f0-a926-24a3cc3b6cc8",
    "space_guid": "b201a191-c602-4de3-a054-69f3fec52612",
    "service_instance_guid": "fe7fdc80-4278-4295-ae7f-674314890c7a",
    "domain_url": "/v2/domains/db3704a4-8014-47f0-a926-24a3cc3b6cc8",
    "space_url": "/v2/spaces/b201a191-c602-4de3-a054-69f3fec52612",
    "service_instance_url": "/v2/service_instances/fe7fdc80-4278-4295-ae7f-674314890c7a",
    "apps_url": "/v2/routes/ff77449b-b4d7-4148-859b-3940d3db9faa/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 25105061-ea92-4b59-bb57-e1c5417a49e2
Content-Length: 745
X-Content-Type-Options: nosniff