Home
Version 3
Domains (deprecated) API

Domains (deprecated) API

Retrieve a Particular Domain (deprecated)

GET /v2/domains/:guid

Fields

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.

Parameters

Name Description Valid Values Example Values
guid The guid of the Domain

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOCIsImVtYWlsIjoiZW1haWwtMTc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDh9.RSqQUfjE42IZUTWhb9-RzQizz04ztWpWL2iGNZGiAJw
Host: example.org
Cookie: 

Route

GET /v2/domains/171f1c17-e386-4adc-9fd8-10d2d4c2fd88

cURL

curl "https://api.[your-domain.com]/v2/domains/171f1c17-e386-4adc-9fd8-10d2d4c2fd88" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzOCIsImVtYWlsIjoiZW1haWwtMTc4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDh9.RSqQUfjE42IZUTWhb9-RzQizz04ztWpWL2iGNZGiAJw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 830c6437-7ff0-4af3-be9b-19bc6ae20ff3
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 263
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "171f1c17-e386-4adc-9fd8-10d2d4c2fd88",
    "url": "/v2/domains/171f1c17-e386-4adc-9fd8-10d2d4c2fd88",
    "created_at": "2015-01-20T01:52:28+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "domain-36.example.com"
  }
}