Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OCIsImVtYWlsIjoiZW1haWwtMTI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzR9.N6WV50EeBeGGD6ULmiADw6jgdO7fEF7j7vOEoZH3U2o
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OCIsImVtYWlsIjoiZW1haWwtMTI3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg4NTU2NzR9.N6WV50EeBeGGD6ULmiADw6jgdO7fEF7j7vOEoZH3U2o" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8",
    "url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8",
    "created_at": "2016-03-17T21:41:14Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-780",
    "organization_guid": "451b5fdf-2f05-4c43-b2a6-08c32c24b279",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/451b5fdf-2f05-4c43-b2a6-08c32c24b279",
    "developers_url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8/developers",
    "managers_url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8/managers",
    "auditors_url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8/auditors",
    "apps_url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8/apps",
    "routes_url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8/routes",
    "domains_url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8/domains",
    "service_instances_url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8/service_instances",
    "app_events_url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8/app_events",
    "events_url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8/events",
    "security_groups_url": "/v2/spaces/41e0cfad-5ed7-43c4-b1bd-e12cc7e37ff8/security_groups"
  }
}

Headers

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