Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/239154d0-ad42-405a-a2f9-1d9e610781ba

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MiIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MTd9.TYTj2X42i2_rSvhCPbQPqANViA5pkqmhHdy83468WOE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/239154d0-ad42-405a-a2f9-1d9e610781ba" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MiIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MTd9.TYTj2X42i2_rSvhCPbQPqANViA5pkqmhHdy83468WOE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "239154d0-ad42-405a-a2f9-1d9e610781ba",
    "url": "/v2/routes/239154d0-ad42-405a-a2f9-1d9e610781ba",
    "created_at": "2016-01-26T22:20:17Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-14",
    "path": "",
    "domain_guid": "64479b7b-3f07-4df0-ae9b-a856ad5c0fc9",
    "space_guid": "c583486c-d74e-4e24-95fc-7b95f0a623b3",
    "service_instance_guid": "d946ff2f-6f2b-44e6-9a51-4a2279fd9b1f",
    "port": 0,
    "domain_url": "/v2/domains/64479b7b-3f07-4df0-ae9b-a856ad5c0fc9",
    "space_url": "/v2/spaces/c583486c-d74e-4e24-95fc-7b95f0a623b3",
    "service_instance_url": "/v2/service_instances/d946ff2f-6f2b-44e6-9a51-4a2279fd9b1f",
    "apps_url": "/v2/routes/239154d0-ad42-405a-a2f9-1d9e610781ba/apps"
  }
}

Headers

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