Home
Version 3
Domains (deprecated) API

Domains (deprecated) API

Retrieve a Particular Domain (deprecated)

GET /v2/domains/:guid

Request

Route

GET /v2/domains/7cd249aa-197c-425c-8831-57cbc24e8e26

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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MSIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTN9.lj2f9mM8dDLk4dQEfyNjF4lZd4ybQpbYkJenMsVU6Fs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/domains/7cd249aa-197c-425c-8831-57cbc24e8e26" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MSIsImVtYWlsIjoiZW1haWwtMjgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTN9.lj2f9mM8dDLk4dQEfyNjF4lZd4ybQpbYkJenMsVU6Fs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "7cd249aa-197c-425c-8831-57cbc24e8e26",
    "url": "/v2/domains/7cd249aa-197c-425c-8831-57cbc24e8e26",
    "created_at": "2015-07-27T22:43:33Z",
    "updated_at": null
  },
  "entity": {
    "name": "domain-63.example.com"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e421965f-0170-43d3-bbb7-1111ac79f44f
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 258
X-Content-Type-Options: nosniff