Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NiIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDl9.mdip3gHCPFwjAkVhNFUcCHX1EZ8mF_dHMh3A8houeRw
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3NiIsImVtYWlsIjoiZW1haWwtMjczQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0NDl9.mdip3gHCPFwjAkVhNFUcCHX1EZ8mF_dHMh3A8houeRw" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "3d25e18e-fc6e-4bb9-87e9-5ac64663ef99",
    "url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99",
    "created_at": "2016-03-14T22:30:49Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2345",
    "organization_guid": "dfe09c8b-a345-4e45-b507-54ba36c638a9",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/dfe09c8b-a345-4e45-b507-54ba36c638a9",
    "developers_url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99/developers",
    "managers_url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99/managers",
    "auditors_url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99/auditors",
    "apps_url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99/apps",
    "routes_url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99/routes",
    "domains_url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99/domains",
    "service_instances_url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99/service_instances",
    "app_events_url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99/app_events",
    "events_url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99/events",
    "security_groups_url": "/v2/spaces/3d25e18e-fc6e-4bb9-87e9-5ac64663ef99/security_groups"
  }
}

Headers

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