Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Space

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg4fQ.iuLWjdp_uS5WGOMLJqS3NLsS241IaAMttrPXOCgUG18
Host: example.org
Cookie: 

Route

GET /v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354

cURL

curl "https://api.[your-domain.com]/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI0NDcxNjg4fQ.iuLWjdp_uS5WGOMLJqS3NLsS241IaAMttrPXOCgUG18" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a56b84e4-264d-47de-9765-5d56082fdc46
Content-Length: 1254
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "20fb55c0-e399-4171-b109-1e6b02e69354",
    "url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354",
    "created_at": "2015-02-13T22:34:48Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-217",
    "organization_guid": "f327d908-3695-4c40-8ca9-cbf4b44fba63",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/f327d908-3695-4c40-8ca9-cbf4b44fba63",
    "developers_url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354/developers",
    "managers_url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354/managers",
    "auditors_url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354/auditors",
    "apps_url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354/apps",
    "routes_url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354/routes",
    "domains_url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354/domains",
    "service_instances_url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354/service_instances",
    "app_events_url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354/app_events",
    "events_url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354/events",
    "security_groups_url": "/v2/spaces/20fb55c0-e399-4171-b109-1e6b02e69354/security_groups"
  }
}