Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/7f2ef5a4-51f2-4668-af4d-d485177d2d81

Parameters

Name Description Valid Values Example Values
guid The guid of the Route

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MyIsImVtYWlsIjoiZW1haWwtMTQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDd9.AfvlhtWHdpdWU5ZxWzZ4cq9FIcYba7QKSbjCUwmiO7A
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/7f2ef5a4-51f2-4668-af4d-d485177d2d81" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5MyIsImVtYWlsIjoiZW1haWwtMTQ1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDd9.AfvlhtWHdpdWU5ZxWzZ4cq9FIcYba7QKSbjCUwmiO7A" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "7f2ef5a4-51f2-4668-af4d-d485177d2d81",
    "url": "/v2/routes/7f2ef5a4-51f2-4668-af4d-d485177d2d81",
    "created_at": "2015-03-05T19:15:47Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-7",
    "domain_guid": "fa462c96-afe4-48f7-aedd-a577861e7fa2",
    "space_guid": "66542575-5817-401b-af11-a0d045a63515",
    "domain_url": "/v2/domains/fa462c96-afe4-48f7-aedd-a577861e7fa2",
    "space_url": "/v2/spaces/66542575-5817-401b-af11-a0d045a63515",
    "apps_url": "/v2/routes/7f2ef5a4-51f2-4668-af4d-d485177d2d81/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c36db9c9-8544-47e8-a4b0-094f01c139cc
Content-Length: 569
X-Content-Type-Options: nosniff