Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/da1d4689-bb40-4337-823b-bcb8c014be7b

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MiIsImVtYWlsIjoiZW1haWwtMTQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDh9.DB5tijSQ0RsbC-RUP7zkuXa2Wn6TxPlRA4a_GZsS6M0
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/da1d4689-bb40-4337-823b-bcb8c014be7b" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MiIsImVtYWlsIjoiZW1haWwtMTQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDh9.DB5tijSQ0RsbC-RUP7zkuXa2Wn6TxPlRA4a_GZsS6M0" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "da1d4689-bb40-4337-823b-bcb8c014be7b",
    "url": "/v2/routes/da1d4689-bb40-4337-823b-bcb8c014be7b",
    "created_at": "2015-10-15T23:52:27Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-8",
    "path": "",
    "domain_guid": "0e5ef354-05fe-4131-9c03-f8942c27d524",
    "space_guid": "1ffa58a7-cb7d-4b9a-bf72-85048aa9500f",
    "service_instance_guid": "7fc24162-0df2-4623-a6c5-5fb414ef8e16",
    "port": 0,
    "domain_url": "/v2/domains/0e5ef354-05fe-4131-9c03-f8942c27d524",
    "space_url": "/v2/spaces/1ffa58a7-cb7d-4b9a-bf72-85048aa9500f",
    "service_instance_url": "/v2/service_instances/7fc24162-0df2-4623-a6c5-5fb414ef8e16",
    "apps_url": "/v2/routes/da1d4689-bb40-4337-823b-bcb8c014be7b/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 167f13cc-d63b-428e-81a6-cdcb6033059f
Content-Length: 759
X-Content-Type-Options: nosniff