This endpoint returns a status code of 204 if the route exists, and 404 if it does not.
GET /v2/routes/reserved/domain/6c7f1695-1d2e-4720-a35e-334c3dd1ea55/host/host-18?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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMX0.KsBhx1eUeoN4ZxgAf-sTHaI-PhUnFu9bLlGROULPAcE Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/routes/reserved/domain/6c7f1695-1d2e-4720-a35e-334c3dd1ea55/host/host-18?path=/apps/v1/path" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1ODU5OTQzMX0.KsBhx1eUeoN4ZxgAf-sTHaI-PhUnFu9bLlGROULPAcE" \ -H "Host: example.org" \ -H "Cookie: "
204 No Content
X-VCAP-Request-ID: X-Content-Type-Options: nosniff