Home
Version 3
Domains (deprecated) API

Domains (deprecated) API

Retrieve a Particular Domain (deprecated)

GET /v2/domains/:guid

Request

Route

GET /v2/domains/1d79aeee-5c06-4ce4-accf-18ef850495ae

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.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NSIsImVtYWlsIjoiZW1haWwtMTE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2MzB9.nOukowVffTqGoHgErxZnzEPH_I-s2Eyqosrvyg0rPPc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/domains/1d79aeee-5c06-4ce4-accf-18ef850495ae" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NSIsImVtYWlsIjoiZW1haWwtMTE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2MzB9.nOukowVffTqGoHgErxZnzEPH_I-s2Eyqosrvyg0rPPc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "1d79aeee-5c06-4ce4-accf-18ef850495ae",
    "url": "/v2/domains/1d79aeee-5c06-4ce4-accf-18ef850495ae",
    "created_at": "2016-04-16T01:23:50Z",
    "updated_at": null
  },
  "entity": {
    "name": "domain-34.example.com",
    "router_group_guid": null,
    "router_group_type": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2a10fa8c-e1a2-4520-88ec-74fea0d5788f
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 320
X-Content-Type-Options: nosniff