Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NSIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTF9.FfIUevFboxU6-FtuCTQlUgxu6hmSpPLkkjdqgHiYVpQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NSIsImVtYWlsIjoiZW1haWwtMTg4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTF9.FfIUevFboxU6-FtuCTQlUgxu6hmSpPLkkjdqgHiYVpQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "0e504600-63e5-4291-a23a-58ac1805ca5f",
    "url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f",
    "created_at": "2015-03-05T19:15:51Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-763",
    "organization_guid": "ebcb6903-dfa1-4631-b061-2a442a282ffc",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/ebcb6903-dfa1-4631-b061-2a442a282ffc",
    "developers_url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f/developers",
    "managers_url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f/managers",
    "auditors_url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f/auditors",
    "apps_url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f/apps",
    "routes_url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f/routes",
    "domains_url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f/domains",
    "service_instances_url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f/service_instances",
    "app_events_url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f/app_events",
    "events_url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f/events",
    "security_groups_url": "/v2/spaces/0e504600-63e5-4291-a23a-58ac1805ca5f/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9f09274e-7f39-43be-a430-fecb24f55826
Content-Length: 1254
X-Content-Type-Options: nosniff