Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgzIiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0MjYwNjM5fQ.1H5lsYIpDEkFLLr7OqWmR6e41UoKtLgUV9NOiUPt1ns
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTgzIiwiZW1haWwiOiJlbWFpbC00OEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0MjYwNjM5fQ.1H5lsYIpDEkFLLr7OqWmR6e41UoKtLgUV9NOiUPt1ns" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "f79c20d9-d712-49ec-9b96-48e532bffde8",
    "url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8",
    "created_at": "2015-09-30T23:30:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1123",
    "organization_guid": "08a6805a-b279-4d13-942f-653b70028411",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/08a6805a-b279-4d13-942f-653b70028411",
    "developers_url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8/developers",
    "managers_url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8/managers",
    "auditors_url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8/auditors",
    "apps_url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8/apps",
    "routes_url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8/routes",
    "domains_url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8/domains",
    "service_instances_url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8/service_instances",
    "app_events_url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8/app_events",
    "events_url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8/events",
    "security_groups_url": "/v2/spaces/f79c20d9-d712-49ec-9b96-48e532bffde8/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3251dfdc-9191-440f-aa47-6e7d3d78da8b
Content-Length: 1278
X-Content-Type-Options: nosniff