Home
Version 3
Domains (deprecated) API

Domains (deprecated) API

Retrieve a Particular Domain (deprecated)

GET /v2/domains/:guid

Request

Route

GET /v2/domains/4e12fd2c-0139-4fc1-bdd9-b2ef1ad9f616

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MyIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTV9.DmRPxWPfVOFpM70dmmHF04Tu8IyafVCM0zB85VQjvG4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/domains/4e12fd2c-0139-4fc1-bdd9-b2ef1ad9f616" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MyIsImVtYWlsIjoiZW1haWwtMTg3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjYwMDg4OTV9.DmRPxWPfVOFpM70dmmHF04Tu8IyafVCM0zB85VQjvG4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "4e12fd2c-0139-4fc1-bdd9-b2ef1ad9f616",
    "url": "/v2/shared_domains/4e12fd2c-0139-4fc1-bdd9-b2ef1ad9f616",
    "created_at": "2016-06-08T16:41:35Z",
    "updated_at": null
  },
  "entity": {
    "name": "domain-35.example.com",
    "router_group_guid": null,
    "router_group_type": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4ec6e4fa-d89c-4c81-9a4e-821291d6b543
X-Cf-Warnings: Endpoint+deprecated
Content-Length: 327
X-Content-Type-Options: nosniff