Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNSIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDd9.cv_Xt_34_vBGpuPrJgupefLlbXVpGzB49PHrMBKR4GE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxNSIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjE5NTg0MDd9.cv_Xt_34_vBGpuPrJgupefLlbXVpGzB49PHrMBKR4GE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "0c7d4416-de9e-4e5c-9e29-44a946552c73",
    "url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73",
    "created_at": "2016-04-22T19:33:27Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-1056",
    "organization_guid": "91b0a30b-f6c8-4678-8b1c-ada6feb48ea7",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/91b0a30b-f6c8-4678-8b1c-ada6feb48ea7",
    "developers_url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73/developers",
    "managers_url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73/managers",
    "auditors_url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73/auditors",
    "apps_url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73/apps",
    "routes_url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73/routes",
    "domains_url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73/domains",
    "service_instances_url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73/service_instances",
    "app_events_url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73/app_events",
    "events_url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73/events",
    "security_groups_url": "/v2/spaces/0c7d4416-de9e-4e5c-9e29-44a946552c73/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a0b0f89f-e801-4bc4-9496-71ff29229a15
Content-Length: 1278
X-Content-Type-Options: nosniff