Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1NDQ1MTYwNX0.Gw8aR3i5nQPFrVL2bvqLpgNMBDZiM-lOX99-vXni9Uk
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTYiLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1NDQ1MTYwNX0.Gw8aR3i5nQPFrVL2bvqLpgNMBDZiM-lOX99-vXni9Uk" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "251bb330-685e-4a71-bd95-9fe75095d0f6",
    "url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6",
    "created_at": "2016-01-26T22:20:05Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-47",
    "organization_guid": "522702d6-ad64-48a4-84b4-c0e2182b0103",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/522702d6-ad64-48a4-84b4-c0e2182b0103",
    "developers_url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6/developers",
    "managers_url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6/managers",
    "auditors_url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6/auditors",
    "apps_url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6/apps",
    "routes_url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6/routes",
    "domains_url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6/domains",
    "service_instances_url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6/service_instances",
    "app_events_url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6/app_events",
    "events_url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6/events",
    "security_groups_url": "/v2/spaces/251bb330-685e-4a71-bd95-9fe75095d0f6/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1276
X-Content-Type-Options: nosniff