Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOCIsImVtYWlsIjoiZW1haWwtMTgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDJ9.2bh2fU6RiOkldXjZllgw7ZoMn7oDHJValrlchb3QZcE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxOCIsImVtYWlsIjoiZW1haWwtMTgxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDcxMTY4NDJ9.2bh2fU6RiOkldXjZllgw7ZoMn7oDHJValrlchb3QZcE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "557a85c0-d47a-4ad7-8135-929735f594c9",
    "url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9",
    "created_at": "2015-11-03T00:54:02Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1038",
    "organization_guid": "b398fcad-8398-4bd8-a01e-859b9e322fef",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/b398fcad-8398-4bd8-a01e-859b9e322fef",
    "developers_url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9/developers",
    "managers_url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9/managers",
    "auditors_url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9/auditors",
    "apps_url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9/apps",
    "routes_url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9/routes",
    "domains_url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9/domains",
    "service_instances_url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9/service_instances",
    "app_events_url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9/app_events",
    "events_url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9/events",
    "security_groups_url": "/v2/spaces/557a85c0-d47a-4ad7-8135-929735f594c9/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 61c4bfb0-5af4-46eb-ab2c-9b72c61bf6aa
Content-Length: 1278
X-Content-Type-Options: nosniff