Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQzfQ.vY3kG-2-BcA76jyBFREXKljbZf9jWlLr8cYdtGShlmA
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTczIiwiZW1haWwiOiJlbWFpbC01NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDI3NDgwODQzfQ.vY3kG-2-BcA76jyBFREXKljbZf9jWlLr8cYdtGShlmA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "f8244bfd-b782-4971-bc87-5a45079548b7",
    "url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7",
    "created_at": "2015-03-20T18:27:23Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-202",
    "organization_guid": "c704e3a3-bf56-4755-850d-5dec44067eb5",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/c704e3a3-bf56-4755-850d-5dec44067eb5",
    "developers_url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7/developers",
    "managers_url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7/managers",
    "auditors_url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7/auditors",
    "apps_url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7/apps",
    "routes_url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7/routes",
    "domains_url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7/domains",
    "service_instances_url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7/service_instances",
    "app_events_url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7/app_events",
    "events_url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7/events",
    "security_groups_url": "/v2/spaces/f8244bfd-b782-4971-bc87-5a45079548b7/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 50ca6c85-8553-46f0-9270-de38720a47f2
Content-Length: 1254
X-Content-Type-Options: nosniff