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.eyJ1c2VyX2lkIjoidWFhLWlkLTM1IiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUxfQ.OQMw9UcHiCJbxYijcdCweYcfF6mA_03EXRtem2icpaQ
Host: example.org
Cookie: 

Route

GET /v2/domains/0903ca27-a425-4f79-b138-7ac85526f78b

cURL

curl "https://api.[your-domain.com]/v2/domains/0903ca27-a425-4f79-b138-7ac85526f78b" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1IiwiZW1haWwiOiJlbWFpbC0yOEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE3NDYyMzUxfQ.OQMw9UcHiCJbxYijcdCweYcfF6mA_03EXRtem2icpaQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2b50981d-fd74-42e9-8b5b-c6f1825054db
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 262
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "0903ca27-a425-4f79-b138-7ac85526f78b",
    "url": "/v2/domains/0903ca27-a425-4f79-b138-7ac85526f78b",
    "created_at": "2014-11-24T19:32:31+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "domain-3.example.com"
  }
}