Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNyIsImVtYWlsIjoiZW1haWwtNzFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyN30.aQGKkaSLw-D-b3RRJZsmuqgjxFmyyWFihwh6jJ5za5I
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwNyIsImVtYWlsIjoiZW1haWwtNzFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MTM3NDYyN30.aQGKkaSLw-D-b3RRJZsmuqgjxFmyyWFihwh6jJ5za5I" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "a8c8ef7c-0528-400e-8c24-07d7e035c67f",
    "url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f",
    "created_at": "2016-04-16T01:23:47Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-227",
    "organization_guid": "3704b695-ccc9-4187-ba43-3ea17af5910f",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/3704b695-ccc9-4187-ba43-3ea17af5910f",
    "developers_url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f/developers",
    "managers_url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f/managers",
    "auditors_url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f/auditors",
    "apps_url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f/apps",
    "routes_url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f/routes",
    "domains_url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f/domains",
    "service_instances_url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f/service_instances",
    "app_events_url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f/app_events",
    "events_url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f/events",
    "security_groups_url": "/v2/spaces/a8c8ef7c-0528-400e-8c24-07d7e035c67f/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8aca25f2-19ad-4e61-8562-a2effa1bf56c
Content-Length: 1277
X-Content-Type-Options: nosniff