This endpoint returns a status code of 204 if the route exists, and 404 if it does not.
GET /v2/routes/reserved/domain/5e40d918-6193-425c-8868-f9f8a89ac093/host/host-8?path=/apps/v1/path
Name | Description | Valid Values | Example Values |
---|---|---|---|
domain_guid | The guid of a domain |
|
|
host | The host portion of the route. Required for shared-domains. |
|
|
path | The path for a route as raw text. 1) Paths must be between 2 and 128 characters 2) Paths must start with a forward slash "/" 3) Paths must not contain a "?" |
|
|
path: /apps/v1/path
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MiIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDF9.mo5ZUH9VmWt4HiyS4J0QJjrWe7F84x0kmTqdsojoRds Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/routes/reserved/domain/5e40d918-6193-425c-8868-f9f8a89ac093/host/host-8?path=/apps/v1/path" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE2MiIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDF9.mo5ZUH9VmWt4HiyS4J0QJjrWe7F84x0kmTqdsojoRds" \ -H "Host: example.org" \ -H "Cookie: "
204 No Content
X-VCAP-Request-ID: 0d5dcad2-ed0d-4766-8391-4aa59e46e1b5 X-Content-Type-Options: nosniff