Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY3NX0.QbhcKBsafmunoxpPWOs0EyM90D48y4D84quLDltxRWI
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY3NX0.QbhcKBsafmunoxpPWOs0EyM90D48y4D84quLDltxRWI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "9cd657bb-426a-4523-a201-ab57231f9bf4",
    "url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4",
    "created_at": "2015-12-22T18:27:55Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1",
    "organization_guid": "af523705-f3b3-462a-8f82-e5bbefbda3bb",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/af523705-f3b3-462a-8f82-e5bbefbda3bb",
    "developers_url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4/developers",
    "managers_url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4/managers",
    "auditors_url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4/auditors",
    "apps_url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4/apps",
    "routes_url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4/routes",
    "domains_url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4/domains",
    "service_instances_url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4/service_instances",
    "app_events_url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4/app_events",
    "events_url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4/events",
    "security_groups_url": "/v2/spaces/9cd657bb-426a-4523-a201-ab57231f9bf4/security_groups"
  }
}

Headers

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