Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUwIiwiZW1haWwiOiJlbWFpbC01MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4NzAwfQ.ODGaIDjcwIz0p68B6sJ9jgXIABSHRNM0_tnd63m61OY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTUwIiwiZW1haWwiOiJlbWFpbC01MEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI5MDM4NzAwfQ.ODGaIDjcwIz0p68B6sJ9jgXIABSHRNM0_tnd63m61OY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "7e93c058-1dbb-476c-ae8c-f7f453c4e1d9",
    "url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9",
    "created_at": "2015-04-07T19:11:40Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-200",
    "organization_guid": "48722ec9-11f9-46e7-912b-169d52ed3a59",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/48722ec9-11f9-46e7-912b-169d52ed3a59",
    "developers_url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9/developers",
    "managers_url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9/managers",
    "auditors_url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9/auditors",
    "apps_url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9/apps",
    "routes_url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9/routes",
    "domains_url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9/domains",
    "service_instances_url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9/service_instances",
    "app_events_url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9/app_events",
    "events_url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9/events",
    "security_groups_url": "/v2/spaces/7e93c058-1dbb-476c-ae8c-f7f453c4e1d9/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c8e4a664-1f77-4234-9d6f-32e765afd994
Content-Length: 1254
X-Content-Type-Options: nosniff