Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NiIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzV9.OQydfugvHxvU3U13I5-M_Gzm4hlwVnVD-gM9uwG4qeo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NiIsImVtYWlsIjoiZW1haWwtMTkyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTM4MzcyNzV9.OQydfugvHxvU3U13I5-M_Gzm4hlwVnVD-gM9uwG4qeo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "b8bea2b1-9982-4f2d-868f-3f74aa9fc39a",
    "url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a",
    "created_at": "2016-01-19T19:41:15Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1954",
    "organization_guid": "168efe8e-bbfe-4606-bccb-bf9f7598c802",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/168efe8e-bbfe-4606-bccb-bf9f7598c802",
    "developers_url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a/developers",
    "managers_url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a/managers",
    "auditors_url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a/auditors",
    "apps_url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a/apps",
    "routes_url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a/routes",
    "domains_url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a/domains",
    "service_instances_url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a/service_instances",
    "app_events_url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a/app_events",
    "events_url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a/events",
    "security_groups_url": "/v2/spaces/b8bea2b1-9982-4f2d-868f-3f74aa9fc39a/security_groups"
  }
}

Headers

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