Home
Version 3
Spaces API

Spaces API

Retrieve a Particular Space

GET /v2/spaces/:guid

Request

Route

GET /v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNSIsImVtYWlsIjoiZW1haWwtMzAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzUwMDB9.Jmng9EernVCKlDQ7oTVBb145_zPwmEhUwj4zXYRPJ80
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNSIsImVtYWlsIjoiZW1haWwtMzAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzUwMDB9.Jmng9EernVCKlDQ7oTVBb145_zPwmEhUwj4zXYRPJ80" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "a0f6bac3-b611-47eb-94c7-725bf020b82e",
    "url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e",
    "created_at": "2015-05-21T01:03:20Z",
    "updated_at": null
  },
  "entity": {
    "name": "name-2281",
    "organization_guid": "0db18efe-77ba-4f2c-a31c-d4a0c0aba01d",
    "space_quota_definition_guid": null,
    "allow_ssh": true,
    "organization_url": "/v2/organizations/0db18efe-77ba-4f2c-a31c-d4a0c0aba01d",
    "developers_url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e/developers",
    "managers_url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e/managers",
    "auditors_url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e/auditors",
    "apps_url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e/apps",
    "routes_url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e/routes",
    "domains_url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e/domains",
    "service_instances_url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e/service_instances",
    "app_events_url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e/app_events",
    "events_url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e/events",
    "security_groups_url": "/v2/spaces/a0f6bac3-b611-47eb-94c7-725bf020b82e/security_groups"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f851d79d-d22f-4828-a3ff-7735fe81da17
Content-Length: 1278
X-Content-Type-Options: nosniff