Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/0b9e4882-17a2-4147-9166-c6c55a78a413

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxOCIsImVtYWlsIjoiZW1haWwtMjgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3Mjh9.rQ0sbUpXQa7ANy3hZIe43dwr5ZuyHbo7cQ6P6rMjVZQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/0b9e4882-17a2-4147-9166-c6c55a78a413" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxOCIsImVtYWlsIjoiZW1haWwtMjgwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3Mjh9.rQ0sbUpXQa7ANy3hZIe43dwr5ZuyHbo7cQ6P6rMjVZQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "0b9e4882-17a2-4147-9166-c6c55a78a413",
    "url": "/v2/routes/0b9e4882-17a2-4147-9166-c6c55a78a413",
    "created_at": "2016-05-12T00:45:28Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-30",
    "path": "",
    "domain_guid": "a350a044-80a4-4474-a2ad-f02f7bf79189",
    "space_guid": "044cd6de-8eb7-4607-b379-c2a223af11bf",
    "service_instance_guid": "f9ae78c8-9dc8-46de-91f8-759015d013a3",
    "port": null,
    "domain_url": "/v2/domains/a350a044-80a4-4474-a2ad-f02f7bf79189",
    "space_url": "/v2/spaces/044cd6de-8eb7-4607-b379-c2a223af11bf",
    "service_instance_url": "/v2/service_instances/f9ae78c8-9dc8-46de-91f8-759015d013a3",
    "apps_url": "/v2/routes/0b9e4882-17a2-4147-9166-c6c55a78a413/apps",
    "route_mappings_url": "/v2/routes/0b9e4882-17a2-4147-9166-c6c55a78a413/route_mappings"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9519c8b0-9de1-4bf1-b7ed-267d77c160ec
Content-Length: 855
X-Content-Type-Options: nosniff