Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the Space

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC00N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYzfQ.5zWFYSQftT-CY_yvgapw8H9shFPMdNU-sfJyFPnCe3k
Host: example.org
Cookie: 

Route

GET /v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e

cURL

curl "https://api.[your-domain.com]/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTY2IiwiZW1haWwiOiJlbWFpbC00N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE5OTg5OTYzfQ.5zWFYSQftT-CY_yvgapw8H9shFPMdNU-sfJyFPnCe3k" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 56134072-9b5f-469c-8e0a-b77e4a54a6f1
Content-Length: 1259
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "metadata": {
    "guid": "0753fe98-947b-4412-9647-dc06938bac5e",
    "url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e",
    "created_at": "2014-12-24T01:39:23+00:00",
    "updated_at": null
  },
  "entity": {
    "name": "name-134",
    "organization_guid": "6b25c37c-6730-4f7c-a108-2fd2056c6ca1",
    "space_quota_definition_guid": null,
    "organization_url": "/v2/organizations/6b25c37c-6730-4f7c-a108-2fd2056c6ca1",
    "developers_url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e/developers",
    "managers_url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e/managers",
    "auditors_url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e/auditors",
    "apps_url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e/apps",
    "routes_url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e/routes",
    "domains_url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e/domains",
    "service_instances_url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e/service_instances",
    "app_events_url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e/app_events",
    "events_url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e/events",
    "security_groups_url": "/v2/spaces/0753fe98-947b-4412-9647-dc06938bac5e/security_groups"
  }
}