Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtNzFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3OH0.oc09xoXSwe2btV7F8TqUrNO5yxM4srGDOih6aM4S_1A
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEyMCIsImVtYWlsIjoiZW1haWwtNzFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3OH0.oc09xoXSwe2btV7F8TqUrNO5yxM4srGDOih6aM4S_1A" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "25034dbf-7b81-4550-8941-a9086bca1b39",
    "url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39",
    "created_at": "2015-07-06T23:22:58Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-328",
    "organization_guid": "aa67abb5-b1af-4c9b-a9b3-75d6c56834aa",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/aa67abb5-b1af-4c9b-a9b3-75d6c56834aa",
    "developers_url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39/developers",
    "managers_url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39/managers",
    "auditors_url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39/auditors",
    "apps_url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39/apps",
    "routes_url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39/routes",
    "domains_url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39/domains",
    "service_instances_url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39/service_instances",
    "app_events_url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39/app_events",
    "events_url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39/events",
    "security_groups_url": "/v2/spaces/25034dbf-7b81-4550-8941-a9086bca1b39/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e500b516-ac25-4fea-ad34-67c1c5d6fa3c
Content-Length: 1277
X-Content-Type-Options: nosniff