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.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MCIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNTl9.l1eSZmd-b6NJZBt180k5IRPQK--7Uq2gq08lYEW9jOE
Host: example.org
Cookie: 

Route

GET /v2/spaces/412c494c-4528-4402-8d0e-e480b3983b2e/summary

cURL

curl "https://api.[your-domain.com]/v2/spaces/412c494c-4528-4402-8d0e-e480b3983b2e/summary" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MCIsImVtYWlsIjoiZW1haWwtMTEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNTl9.l1eSZmd-b6NJZBt180k5IRPQK--7Uq2gq08lYEW9jOE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: de35ed22-4573-4b77-abe5-9928c504ac0b
Content-Length: 1819
X-Content-Type-Options: nosniff

Status

200 OK

Body

{
  "guid": "412c494c-4528-4402-8d0e-e480b3983b2e",
  "name": "name-543",
  "apps": [
    {
      "guid": "429db3a6-f485-4955-91a8-6e86c613723d",
      "urls": [
        "host-1.domain-8.example.com"
      ],
      "routes": [
        {
          "guid": "38ede744-ceb2-4146-90a0-e5cef90cd49d",
          "host": "host-1",
          "domain": {
            "guid": "29e97f90-fe05-4dd3-bace-fa1c5b8c8601",
            "name": "domain-8.example.com"
          }
        }
      ],
      "service_count": 1,
      "service_names": [
        "name-548"
      ],
      "running_instances": 0,
      "name": "name-546",
      "production": false,
      "space_guid": "412c494c-4528-4402-8d0e-e480b3983b2e",
      "stack_guid": "1bf4ed95-6c57-4fc4-9005-de53d622764a",
      "buildpack": null,
      "detected_buildpack": null,
      "environment_json": null,
      "memory": 1024,
      "instances": 1,
      "disk_quota": 1024,
      "state": "STOPPED",
      "version": "ecf618d9-ca93-41a3-8f01-bafbb2d27cc0",
      "command": null,
      "console": false,
      "debug": null,
      "staging_task_id": null,
      "package_state": "PENDING",
      "health_check_timeout": null,
      "staging_failed_reason": null,
      "docker_image": null,
      "package_updated_at": "2014-11-24T19:32:39+00:00",
      "detected_start_command": ""
    }
  ],
  "services": [
    {
      "guid": "09827cdb-9ef5-46bd-ab93-ae809d7b19ae",
      "name": "name-548",
      "bound_app_count": 1,
      "dashboard_url": null,
      "service_plan": {
        "guid": "4550a334-d8c8-49bc-85d4-9d9f8b7be7c3",
        "name": "name-549",
        "service": {
          "guid": "5719309d-a414-4f0a-8adf-100bd17f67f5",
          "label": "label-22",
          "provider": "provider-22",
          "version": "version-22"
        }
      }
    }
  ]
}