Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTJ9.-UGbbL0TEX6EJq3BwsMWbFZDJYv0XyThVDufnJkgM88
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NCIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjA1MDY2NTJ9.-UGbbL0TEX6EJq3BwsMWbFZDJYv0XyThVDufnJkgM88" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "a0e5a818-d2e5-4e11-92f3-45d18622124c",
    "url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c",
    "created_at": "2016-04-06T00:17:32Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-998",
    "organization_guid": "f7b284d3-10dc-43b4-a681-63afde5fe845",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/f7b284d3-10dc-43b4-a681-63afde5fe845",
    "developers_url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c/developers",
    "managers_url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c/managers",
    "auditors_url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c/auditors",
    "apps_url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c/apps",
    "routes_url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c/routes",
    "domains_url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c/domains",
    "service_instances_url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c/service_instances",
    "app_events_url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c/app_events",
    "events_url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c/events",
    "security_groups_url": "/v2/spaces/a0e5a818-d2e5-4e11-92f3-45d18622124c/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 
Content-Length: 1277
X-Content-Type-Options: nosniff