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.eyJ1c2VyX2lkIjoidWFhLWlkLTMzOSIsImVtYWlsIjoiZW1haWwtMjYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODR9.epwlSwz0z8OeZ6zFZW5HCRPf24Qb1PL7g0Ep4hjYxdU
Host: example.org
Cookie: 

Route

GET /v2/domains/5b694841-7e1a-4576-a233-02d68e24fdc5

cURL

curl "https://api.[your-domain.com]/v2/domains/5b694841-7e1a-4576-a233-02d68e24fdc5" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzOSIsImVtYWlsIjoiZW1haWwtMjYwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODR9.epwlSwz0z8OeZ6zFZW5HCRPf24Qb1PL7g0Ep4hjYxdU" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 2f5f0cf3-13bc-476d-9b15-1b35f17cf82f
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 258
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "5b694841-7e1a-4576-a233-02d68e24fdc5",
    "url": "/v2/domains/5b694841-7e1a-4576-a233-02d68e24fdc5",
    "created_at": "2015-01-27T19:14:44Z",
    "updated_at": null
  },
  "entity": {
    "name": "domain-55.example.com"
  }
}