Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMCIsImVtYWlsIjoiZW1haWwtNzJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk2MH0.nFjkfuxbJ8Ros6HVSpzya_q-XKANQxT6TE2XU3npvgc
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMCIsImVtYWlsIjoiZW1haWwtNzJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk2MH0.nFjkfuxbJ8Ros6HVSpzya_q-XKANQxT6TE2XU3npvgc" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "c2cf86ec-5324-41ff-94f9-ded67cd4ace9",
    "url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9",
    "created_at": "2015-03-18T22:52:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-278",
    "organization_guid": "e6855cbf-eb4d-4c1c-895c-6650ff82e470",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/e6855cbf-eb4d-4c1c-895c-6650ff82e470",
    "developers_url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9/developers",
    "managers_url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9/managers",
    "auditors_url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9/auditors",
    "apps_url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9/apps",
    "routes_url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9/routes",
    "domains_url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9/domains",
    "service_instances_url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9/service_instances",
    "app_events_url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9/app_events",
    "events_url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9/events",
    "security_groups_url": "/v2/spaces/c2cf86ec-5324-41ff-94f9-ded67cd4ace9/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9582ca47-c7ac-4ff5-8623-34a4499ff623
Content-Length: 1254
X-Content-Type-Options: nosniff