Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/fa7db166-0f2f-4129-9e28-97d54c09a4be

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NCIsImVtYWlsIjoiZW1haWwtMjg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NzB9.0NxY1fYHnrNX5ceWl_20rdYPHtWdvKf5KhN3rsJLeng
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/fa7db166-0f2f-4129-9e28-97d54c09a4be" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM4NCIsImVtYWlsIjoiZW1haWwtMjg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NzB9.0NxY1fYHnrNX5ceWl_20rdYPHtWdvKf5KhN3rsJLeng" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "fa7db166-0f2f-4129-9e28-97d54c09a4be",
    "url": "/v2/routes/fa7db166-0f2f-4129-9e28-97d54c09a4be",
    "created_at": "2015-03-20T18:27:50Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-20",
    "domain_guid": "ce13675e-2e40-4eee-9d0c-bbf57be7026c",
    "space_guid": "9a83693c-9bb5-46ac-a9fd-e07319d62744",
    "domain_url": "/v2/domains/ce13675e-2e40-4eee-9d0c-bbf57be7026c",
    "space_url": "/v2/spaces/9a83693c-9bb5-46ac-a9fd-e07319d62744",
    "apps_url": "/v2/routes/fa7db166-0f2f-4129-9e28-97d54c09a4be/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 29cf8786-a2c6-46e7-b610-258f5ea6d613
Content-Length: 570
X-Content-Type-Options: nosniff