Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0IiwiZW1haWwiOiJlbWFpbC0yNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg4fQ.3ppG53lpiFgsm0tq3v0kuWjXamsE6xvcTmgg18W1G-E
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ0IiwiZW1haWwiOiJlbWFpbC0yNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM4NjQxNzg4fQ.3ppG53lpiFgsm0tq3v0kuWjXamsE6xvcTmgg18W1G-E" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "0f102457-c1fc-42e5-9c81-c7be2bc65dcd",
    "url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd",
    "created_at": "2015-07-27T22:43:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-108",
    "organization_guid": "525a31fb-bc2b-4f7f-865e-1c93b42a6762",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/525a31fb-bc2b-4f7f-865e-1c93b42a6762",
    "developers_url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd/developers",
    "managers_url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd/managers",
    "auditors_url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd/auditors",
    "apps_url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd/apps",
    "routes_url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd/routes",
    "domains_url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd/domains",
    "service_instances_url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd/service_instances",
    "app_events_url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd/app_events",
    "events_url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd/events",
    "security_groups_url": "/v2/spaces/0f102457-c1fc-42e5-9c81-c7be2bc65dcd/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 48019dd0-536a-41ef-ab6b-2e6d3f5f4097
Content-Length: 1277
X-Content-Type-Options: nosniff