Home
Version 3
Spaces API

Spaces API

Get Space summary

GET /v2/spaces/:guid/summary

Fields

Name Description Default Valid Values Example Values
guid The guid of the space for which summary is requested
name The name of the space.
apps List of apps that are running in the space
services List of services that are associated with the space

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NCIsImVtYWlsIjoiZW1haWwtMTg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDl9.gb5Br9UrC6IVfNvAD-1UywEY3HvGJEo8759HHn4fx8U
Host: example.org
Cookie: 

Route

GET /v2/spaces/cfcad63d-6ba7-47de-94c1-74adf75f067a/summary

cURL

curl "https://api.[your-domain.com]/v2/spaces/cfcad63d-6ba7-47de-94c1-74adf75f067a/summary" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0NCIsImVtYWlsIjoiZW1haWwtMTg0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDl9.gb5Br9UrC6IVfNvAD-1UywEY3HvGJEo8759HHn4fx8U" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9642acfa-dba5-451b-b24c-16ff2c1984e6
Content-Length: 1863
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "cfcad63d-6ba7-47de-94c1-74adf75f067a",
  "name": "name-1765",
  "apps": [
    {
      "guid": "8bb93d94-1947-4c51-a0b6-d3ea809cdc37",
      "urls": [
        "host-19.domain-40.example.com"
      ],
      "routes": [
        {
          "guid": "0b546e4e-f639-419e-84a7-254b7ae04d3d",
          "host": "host-19",
          "domain": {
            "guid": "ef77d08e-3c7c-45fa-8a23-5a94f7be9971",
            "name": "domain-40.example.com"
          }
        }
      ],
      "service_count": 1,
      "service_names": [
        "name-1770"
      ],
      "running_instances": 0,
      "name": "name-1768",
      "production": false,
      "space_guid": "cfcad63d-6ba7-47de-94c1-74adf75f067a",
      "stack_guid": "64f5690f-5f47-4913-8353-f155a951b440",
      "buildpack": null,
      "detected_buildpack": null,
      "environment_json": null,
      "memory": 1024,
      "instances": 1,
      "disk_quota": 1024,
      "state": "STOPPED",
      "version": "2c9c492f-48da-4421-abdf-40523410e87e",
      "command": null,
      "console": false,
      "debug": null,
      "staging_task_id": null,
      "package_state": "PENDING",
      "health_check_type": "port",
      "health_check_timeout": null,
      "staging_failed_reason": null,
      "docker_image": null,
      "package_updated_at": "2015-01-20T01:52:29+00:00",
      "detected_start_command": ""
    }
  ],
  "services": [
    {
      "guid": "28657735-91d3-44e7-a653-0d883aba952f",
      "name": "name-1770",
      "bound_app_count": 1,
      "dashboard_url": null,
      "service_plan": {
        "guid": "f7749603-f3ff-4112-898c-80639cdfa652",
        "name": "name-1771",
        "service": {
          "guid": "a27922e8-89db-4c80-8723-5ddf8ac9236a",
          "label": "label-66",
          "provider": "provider-57",
          "version": "version-41"
        }
      }
    }
  ]
}