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.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYxfQ.dLro-4BXNkoTPH40Gb397OyiuivXVmEKbEMb9_igGzE
Host: example.org
Cookie: 

Route

GET /v2/domains/1f72012a-af71-499c-99e8-db417cf4c183

cURL

curl "https://api.[your-domain.com]/v2/domains/1f72012a-af71-499c-99e8-db417cf4c183" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYxfQ.dLro-4BXNkoTPH40Gb397OyiuivXVmEKbEMb9_igGzE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 1c0b868b-0dba-40d3-9d18-585a7bbad8ee
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 263
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "1f72012a-af71-499c-99e8-db417cf4c183",
    "url": "/v2/domains/1f72012a-af71-499c-99e8-db417cf4c183",
    "created_at": "2014-12-24T01:39:21+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "domain-20.example.com"
  }
}