Home
Version 3
Domains (deprecated) API

Domains (deprecated) API

Retrieve a Particular Domain (deprecated)

GET /v2/domains/:guid

Request

Route

GET /v2/domains/82eb3fa1-3077-445c-93f7-237bcde8e1e9

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.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MTV9.lzEqI4vMH_egazg2xg8G9lQUSAIsUaYA0Zi86oQxBP8
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/domains/82eb3fa1-3077-445c-93f7-237bcde8e1e9" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtMTA1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MTV9.lzEqI4vMH_egazg2xg8G9lQUSAIsUaYA0Zi86oQxBP8" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "82eb3fa1-3077-445c-93f7-237bcde8e1e9",
    "url": "/v2/domains/82eb3fa1-3077-445c-93f7-237bcde8e1e9",
    "created_at": "2016-01-26T22:20:15Z",
    "updated_at": null
  },
  "entity": {
    "name": "domain-13.example.com",
    "router_group_guid": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 289
X-Content-Type-Options: nosniff