Home
Version 3
Domains (deprecated) API

Domains (deprecated) API

Retrieve a Particular Domain (deprecated)

GET /v2/domains/:guid

Request

Route

GET /v2/domains/a2fd4b37-6723-4dc2-9502-0caca2d53015

Body

Name Description Default Valid Values Example Values
guid The guid of the domain.
name The name of the domain.
  • example.com
  • foo.example.com
wildcard Allow routes with non-empty hosts
  • true
  • false
owning_organization_guid The organization that owns the domain. If not specified, the domain is shared.

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNSIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTZ9._GcrXwX1rrPkr3_xrCz244DQFQrGikURo_a9fVi9zpM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/domains/a2fd4b37-6723-4dc2-9502-0caca2d53015" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNSIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMTZ9._GcrXwX1rrPkr3_xrCz244DQFQrGikURo_a9fVi9zpM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "a2fd4b37-6723-4dc2-9502-0caca2d53015",
    "url": "/v2/domains/a2fd4b37-6723-4dc2-9502-0caca2d53015",
    "created_at": "2015-08-06T00:36:56Z",
    "updated_at": null
  },
  "entity": {
    "name": "domain-56.example.com"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 14eb2323-d7fc-4327-ad51-73a8655f6a7e
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 258
X-Content-Type-Options: nosniff