Home
Version 3
Domains (deprecated) API

Domains (deprecated) API

Retrieve a Particular Domain (deprecated)

GET /v2/domains/:guid

Request

Route

GET /v2/domains/7e69a913-df78-4d97-8ad3-c63f87d7ca91

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.eyJ1c2VyX2lkIjoidWFhLWlkLTkiLCJlbWFpbCI6ImVtYWlsLTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MzYxODcwNH0.Na4qlKAbQvBo5dTrq3Sz16QAdoqpdvPa4cu9prHZkmM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/domains/7e69a913-df78-4d97-8ad3-c63f87d7ca91" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkiLCJlbWFpbCI6ImVtYWlsLTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MzYxODcwNH0.Na4qlKAbQvBo5dTrq3Sz16QAdoqpdvPa4cu9prHZkmM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "7e69a913-df78-4d97-8ad3-c63f87d7ca91",
    "url": "/v2/domains/7e69a913-df78-4d97-8ad3-c63f87d7ca91",
    "created_at": "2016-05-12T00:45:04Z",
    "updated_at": null
  },
  "entity": {
    "name": "domain-9.example.com",
    "router_group_guid": null,
    "router_group_type": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 82da3210-ed65-47a1-b6a9-45b35e19e07e
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 319
X-Content-Type-Options: nosniff