Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDl9.oy0dBQVgbV2uoVGyGaQSBGHVo2PgqEqj0gm1n6Wotfs
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNiIsImVtYWlsIjoiZW1haWwtMjE2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzk0MjYyMDl9.oy0dBQVgbV2uoVGyGaQSBGHVo2PgqEqj0gm1n6Wotfs" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "49932678-be0c-4cce-bddc-f7d5d51d186b",
    "url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b",
    "created_at": "2015-08-06T00:36:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1922",
    "organization_guid": "2e6b97b8-d3b6-4a66-97c4-f986e58ef91b",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/2e6b97b8-d3b6-4a66-97c4-f986e58ef91b",
    "developers_url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b/developers",
    "managers_url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b/managers",
    "auditors_url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b/auditors",
    "apps_url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b/apps",
    "routes_url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b/routes",
    "domains_url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b/domains",
    "service_instances_url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b/service_instances",
    "app_events_url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b/app_events",
    "events_url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b/events",
    "security_groups_url": "/v2/spaces/49932678-be0c-4cce-bddc-f7d5d51d186b/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9d4a5d2f-6172-4867-bc70-26a6a9931df8
Content-Length: 1278
X-Content-Type-Options: nosniff