Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOCIsImVtYWlsIjoiZW1haWwtMTIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDR9.7C9U9JV8ujculatrxXeOIyH2kAOK4XQWrZeZQNxqdME
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOCIsImVtYWlsIjoiZW1haWwtMTIyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NDR9.7C9U9JV8ujculatrxXeOIyH2kAOK4XQWrZeZQNxqdME" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "6f07c163-e50e-4116-a008-b6e7b98eb088",
    "url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088",
    "created_at": "2015-10-15T23:52:24Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1446",
    "organization_guid": "bbb0d455-93f5-406b-aaf2-99870403da9a",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/bbb0d455-93f5-406b-aaf2-99870403da9a",
    "developers_url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088/developers",
    "managers_url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088/managers",
    "auditors_url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088/auditors",
    "apps_url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088/apps",
    "routes_url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088/routes",
    "domains_url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088/domains",
    "service_instances_url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088/service_instances",
    "app_events_url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088/app_events",
    "events_url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088/events",
    "security_groups_url": "/v2/spaces/6f07c163-e50e-4116-a008-b6e7b98eb088/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 46bb173a-61c8-43f7-8296-3d8c873c6952
Content-Length: 1278
X-Content-Type-Options: nosniff