Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/11675800-6624-438e-9c88-d34f0e957609

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcwfQ.ZmmZls72TR6wxrMvqZkFhEUvPuS4dB3cBLaDgAT-JKM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/11675800-6624-438e-9c88-d34f0e957609" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwIiwiZW1haWwiOiJlbWFpbC0xMEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzMzEwOTcwfQ.ZmmZls72TR6wxrMvqZkFhEUvPuS4dB3cBLaDgAT-JKM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "11675800-6624-438e-9c88-d34f0e957609",
    "url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609",
    "created_at": "2016-01-13T17:29:30Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-25",
    "organization_guid": "5e46a03f-7897-4575-b22c-bcd7e396437b",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/5e46a03f-7897-4575-b22c-bcd7e396437b",
    "developers_url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609/developers",
    "managers_url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609/managers",
    "auditors_url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609/auditors",
    "apps_url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609/apps",
    "routes_url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609/routes",
    "domains_url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609/domains",
    "service_instances_url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609/service_instances",
    "app_events_url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609/app_events",
    "events_url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609/events",
    "security_groups_url": "/v2/spaces/11675800-6624-438e-9c88-d34f0e957609/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1276
X-Content-Type-Options: nosniff