Home
Version 3
Domains (deprecated) API

Domains (deprecated) API

Retrieve a Particular Domain (deprecated)

GET /v2/domains/:guid

Request

Route

GET /v2/domains/9a9173a1-c539-45c2-ac33-d64334baff5d

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.eyJ1c2VyX2lkIjoidWFhLWlkLTc1IiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5NjY0MTM1fQ.SUJhdwR66KI3Lo7OjlyEVU4BUZ4DpeP8FVYAsGMyQUM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/domains/9a9173a1-c539-45c2-ac33-d64334baff5d" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTc1IiwiZW1haWwiOiJlbWFpbC00NkBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5NjY0MTM1fQ.SUJhdwR66KI3Lo7OjlyEVU4BUZ4DpeP8FVYAsGMyQUM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "9a9173a1-c539-45c2-ac33-d64334baff5d",
    "url": "/v2/domains/9a9173a1-c539-45c2-ac33-d64334baff5d",
    "created_at": "2015-04-15T00:55:35Z",
    "updated_at": null
  },
  "entity": {
    "name": "domain-2.example.com"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 73279fac-0bd3-40f8-84fc-07f1fa66f8d1
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 257
X-Content-Type-Options: nosniff