Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtMTI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTR9.l3PMjnf1g4xuMVywSa5dts0vHnwLb3GSmM8UEfUDR6M
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyNSIsImVtYWlsIjoiZW1haWwtMTI0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTR9.l3PMjnf1g4xuMVywSa5dts0vHnwLb3GSmM8UEfUDR6M" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "adbe03b8-4f40-46e8-9e7d-e0204d325dce",
    "url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce",
    "created_at": "2015-05-15T16:53:34Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-716",
    "organization_guid": "be63769f-46b6-4403-ab52-3778658710e3",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/be63769f-46b6-4403-ab52-3778658710e3",
    "developers_url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce/developers",
    "managers_url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce/managers",
    "auditors_url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce/auditors",
    "apps_url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce/apps",
    "routes_url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce/routes",
    "domains_url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce/domains",
    "service_instances_url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce/service_instances",
    "app_events_url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce/app_events",
    "events_url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce/events",
    "security_groups_url": "/v2/spaces/adbe03b8-4f40-46e8-9e7d-e0204d325dce/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 319166b4-665a-44ed-a8a0-ee3551b7d430
Content-Length: 1277
X-Content-Type-Options: nosniff