Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMiIsImVtYWlsIjoiZW1haWwtMTY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njh9.LcPTh0Qz2yYhnf1O7i-GkbyqdqDnFs88hqEcY2NpLR4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIzMiIsImVtYWlsIjoiZW1haWwtMTY0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2Njh9.LcPTh0Qz2yYhnf1O7i-GkbyqdqDnFs88hqEcY2NpLR4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "94c30284-d9af-4b40-bf4b-22b2a79129fd",
    "url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd",
    "created_at": "2015-03-03T00:51:08Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1309",
    "organization_guid": "d20d0065-5748-41c2-8fc8-95ea54011d96",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/d20d0065-5748-41c2-8fc8-95ea54011d96",
    "developers_url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd/developers",
    "managers_url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd/managers",
    "auditors_url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd/auditors",
    "apps_url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd/apps",
    "routes_url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd/routes",
    "domains_url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd/domains",
    "service_instances_url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd/service_instances",
    "app_events_url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd/app_events",
    "events_url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd/events",
    "security_groups_url": "/v2/spaces/94c30284-d9af-4b40-bf4b-22b2a79129fd/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 23972cf1-c9c3-410b-8cc2-f9909106d6c1
Content-Length: 1255
X-Content-Type-Options: nosniff