Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/3915b202-c481-4115-8021-16375d50d2dd

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OCIsImVtYWlsIjoiZW1haWwtMjgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTl9.ckqYjpv_zfBnKOIAiN3ZGHUZS1LfFcLlEFJ9tHgxsOY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/3915b202-c481-4115-8021-16375d50d2dd" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3OCIsImVtYWlsIjoiZW1haWwtMjgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTl9.ckqYjpv_zfBnKOIAiN3ZGHUZS1LfFcLlEFJ9tHgxsOY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "3915b202-c481-4115-8021-16375d50d2dd",
    "url": "/v2/routes/3915b202-c481-4115-8021-16375d50d2dd",
    "created_at": "2015-10-13T17:31:59Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-19",
    "path": "",
    "domain_guid": "01798478-9e69-4782-beb0-b9d4d26637ac",
    "space_guid": "45b5f438-d098-4eef-a8f1-3ff09732dcb3",
    "service_instance_guid": "c42f703d-1e55-4758-9731-9d88fd2834a3",
    "port": 0,
    "domain_url": "/v2/domains/01798478-9e69-4782-beb0-b9d4d26637ac",
    "space_url": "/v2/spaces/45b5f438-d098-4eef-a8f1-3ff09732dcb3",
    "service_instance_url": "/v2/service_instances/c42f703d-1e55-4758-9731-9d88fd2834a3",
    "apps_url": "/v2/routes/3915b202-c481-4115-8021-16375d50d2dd/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3847827b-fd36-42f6-b848-990553c7e2db
Content-Length: 760
X-Content-Type-Options: nosniff