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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNiIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY5MX0.LCgrvNSzas8T9_HmRMlj2cKdESkjtXMGhsBFD1XbX_U
Host: example.org
Cookie: 

Route

GET /v2/domains/b8e5c451-dd39-468d-b756-c8bfa204c15f

cURL

curl "https://api.[your-domain.com]/v2/domains/b8e5c451-dd39-468d-b756-c8bfa204c15f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNiIsImVtYWlsIjoiZW1haWwtOThAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNDQ3MTY5MX0.LCgrvNSzas8T9_HmRMlj2cKdESkjtXMGhsBFD1XbX_U" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 75f85221-f9fe-44b8-8414-673ca0b89797
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 258
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "b8e5c451-dd39-468d-b756-c8bfa204c15f",
    "url": "/v2/domains/b8e5c451-dd39-468d-b756-c8bfa204c15f",
    "created_at": "2015-02-13T22:34:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "domain-21.example.com"
  }
}