Home
Version 3
Domains (deprecated) API

Domains (deprecated) API

Retrieve a Particular Domain (deprecated)

GET /v2/domains/:guid

Request

Route

GET /v2/domains/cbfd26fb-50f1-4a9b-89b3-e086a2ca7c69

Parameters

Name Description Valid Values Example Values
guid The guid of the Domain

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.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtODVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNjE4Nzc0Mn0.g3KwrFAStBPASZnc9JTa-mO3bo7h9W74pQaoL6z2uXo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/domains/cbfd26fb-50f1-4a9b-89b3-e086a2ca7c69" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExNCIsImVtYWlsIjoiZW1haWwtODVAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNjE4Nzc0Mn0.g3KwrFAStBPASZnc9JTa-mO3bo7h9W74pQaoL6z2uXo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "cbfd26fb-50f1-4a9b-89b3-e086a2ca7c69",
    "url": "/v2/domains/cbfd26fb-50f1-4a9b-89b3-e086a2ca7c69",
    "created_at": "2015-03-05T19:15:42Z",
    "updated_at": null
  },
  "entity": {
    "name": "domain-25.example.com"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bbef6f76-b1d2-429a-b241-e87796c71b79
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 258
X-Content-Type-Options: nosniff