Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NiIsImVtYWlsIjoiZW1haWwtMTE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDZ9.PWyxVAttNgfcF9ay9egc59o046ZhHcysqC908TD-S2M
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3NiIsImVtYWlsIjoiZW1haWwtMTE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMDZ9.PWyxVAttNgfcF9ay9egc59o046ZhHcysqC908TD-S2M" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "6257fe24-b582-4398-be4d-9b4edca82c0a",
    "url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a",
    "created_at": "2015-06-04T00:05:06Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1360",
    "organization_guid": "fe8a905d-800c-48e5-85df-f0e211e1a463",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/fe8a905d-800c-48e5-85df-f0e211e1a463",
    "developers_url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a/developers",
    "managers_url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a/managers",
    "auditors_url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a/auditors",
    "apps_url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a/apps",
    "routes_url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a/routes",
    "domains_url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a/domains",
    "service_instances_url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a/service_instances",
    "app_events_url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a/app_events",
    "events_url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a/events",
    "security_groups_url": "/v2/spaces/6257fe24-b582-4398-be4d-9b4edca82c0a/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 0edcbe6d-b025-417c-b8f2-5aa6852a63ac
Content-Length: 1278
X-Content-Type-Options: nosniff