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.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OSIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDJ9.SM2QNgxZwP-sZvcYA9aG69rFQs6eIQej4jEzQ3X61iA
Host: example.org
Cookie: 

Route

GET /v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47

cURL

curl "https://api.[your-domain.com]/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0OSIsImVtYWlsIjoiZW1haWwtMjcwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDJ9.SM2QNgxZwP-sZvcYA9aG69rFQs6eIQej4jEzQ3X61iA" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 5a216dff-c261-4a80-b06c-1d5d8bbd8249
Content-Length: 1255
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "7bac5fc0-667c-4b7c-bf6e-72ca07918a47",
    "url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47",
    "created_at": "2015-02-12T01:42:22Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1987",
    "organization_guid": "27836e00-91e4-40fe-9714-f0b9491425ef",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/27836e00-91e4-40fe-9714-f0b9491425ef",
    "developers_url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47/developers",
    "managers_url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47/managers",
    "auditors_url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47/auditors",
    "apps_url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47/apps",
    "routes_url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47/routes",
    "domains_url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47/domains",
    "service_instances_url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47/service_instances",
    "app_events_url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47/app_events",
    "events_url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47/events",
    "security_groups_url": "/v2/spaces/7bac5fc0-667c-4b7c-bf6e-72ca07918a47/security_groups"
  }
}