Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Space

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjh9.ZoOxH_0rj-G-l3i00FPIOX13poDiLbQH_Vo9C3xTmeI
Host: example.org
Cookie: 

Route

GET /v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc

cURL

curl "https://api.[your-domain.com]/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMSIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNjh9.ZoOxH_0rj-G-l3i00FPIOX13poDiLbQH_Vo9C3xTmeI" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: dc684098-3ca0-4f64-bb1a-42c27ea14b17
Content-Length: 1260
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "6b1a9319-9188-409a-b5a2-2abb348f6efc",
    "url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc",
    "created_at": "2014-11-24T19:32:48+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-1030",
    "organization_guid": "3ca6ea8b-e5ac-4ad3-82cd-d9c5c59e048b",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/3ca6ea8b-e5ac-4ad3-82cd-d9c5c59e048b",
    "developers_url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc/developers",
    "managers_url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc/managers",
    "auditors_url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc/auditors",
    "apps_url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc/apps",
    "routes_url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc/routes",
    "domains_url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc/domains",
    "service_instances_url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc/service_instances",
    "app_events_url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc/app_events",
    "events_url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc/events",
    "security_groups_url": "/v2/spaces/6b1a9319-9188-409a-b5a2-2abb348f6efc/security_groups"
  }
}