Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5IiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.1NZjVaczXNgufTR6GsNrrqio-_rVR1nx2K2u89Vcy1o
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE5IiwiZW1haWwiOiJlbWFpbC0xOUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ0NzgyOTIwfQ.1NZjVaczXNgufTR6GsNrrqio-_rVR1nx2K2u89Vcy1o" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "01c6c5d9-52a3-4937-ac7e-9561759af1ea",
    "url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea",
    "created_at": "2015-10-07T00:35:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-76",
    "organization_guid": "b35e1b19-8031-4278-86af-45dd74c58271",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/b35e1b19-8031-4278-86af-45dd74c58271",
    "developers_url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea/developers",
    "managers_url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea/managers",
    "auditors_url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea/auditors",
    "apps_url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea/apps",
    "routes_url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea/routes",
    "domains_url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea/domains",
    "service_instances_url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea/service_instances",
    "app_events_url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea/app_events",
    "events_url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea/events",
    "security_groups_url": "/v2/spaces/01c6c5d9-52a3-4937-ac7e-9561759af1ea/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8ba2a56f-3203-4ce5-bdea-d9c2be722537
Content-Length: 1276
X-Content-Type-Options: nosniff