Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMyIsImVtYWlsIjoiZW1haWwtNjJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMH0.-SXRwv7Rdo-DHRyEQcJcG-eqgu08ca-df6Y3-vtbnr4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTExMyIsImVtYWlsIjoiZW1haWwtNjJAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMTY0NjYzMH0.-SXRwv7Rdo-DHRyEQcJcG-eqgu08ca-df6Y3-vtbnr4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "835a6a37-b89f-4550-8b88-082afe9446b6",
    "url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6",
    "created_at": "2015-05-07T23:37:10Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1033",
    "organization_guid": "edf6ce00-d0e0-4b5d-a1f4-e03b14565b38",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/edf6ce00-d0e0-4b5d-a1f4-e03b14565b38",
    "developers_url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6/developers",
    "managers_url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6/managers",
    "auditors_url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6/auditors",
    "apps_url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6/apps",
    "routes_url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6/routes",
    "domains_url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6/domains",
    "service_instances_url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6/service_instances",
    "app_events_url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6/app_events",
    "events_url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6/events",
    "security_groups_url": "/v2/spaces/835a6a37-b89f-4550-8b88-082afe9446b6/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: cf68b383-2849-44a7-8f0a-3d070d80f779
Content-Length: 1278
X-Content-Type-Options: nosniff