Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/b8169949-0285-4a38-8387-609071aab876

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NiIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxMzl9.sBlYmK68-aJ1Fg9LxMThBj4cy6HovwX5bZQIpN0XG1M
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/b8169949-0285-4a38-8387-609071aab876" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4NiIsImVtYWlsIjoiZW1haWwtMTA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxMzl9.sBlYmK68-aJ1Fg9LxMThBj4cy6HovwX5bZQIpN0XG1M" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "b8169949-0285-4a38-8387-609071aab876",
    "url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876",
    "created_at": "2015-04-15T00:55:39Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1247",
    "organization_guid": "c701f8b2-e6d2-4c3b-92f7-0644022d6d6f",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/c701f8b2-e6d2-4c3b-92f7-0644022d6d6f",
    "developers_url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876/developers",
    "managers_url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876/managers",
    "auditors_url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876/auditors",
    "apps_url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876/apps",
    "routes_url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876/routes",
    "domains_url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876/domains",
    "service_instances_url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876/service_instances",
    "app_events_url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876/app_events",
    "events_url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876/events",
    "security_groups_url": "/v2/spaces/b8169949-0285-4a38-8387-609071aab876/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: bb19426f-5ae7-48ce-b25d-e361c6948b11
Content-Length: 1255
X-Content-Type-Options: nosniff