Get Space summary
GET /v2/spaces/:guid/summary
Request
Route
GET /v2/spaces/a5c1d655-2bd9-481a-920b-759b5d5c04f2/summary
Body
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
|
|
|
|
Headers
cURL
curl "https://api.[your-domain.com]/v2/spaces/a5c1d655-2bd9-481a-920b-759b5d5c04f2/summary" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4OSIsImVtYWlsIjoiZW1haWwtMTg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjM2MTg3MTl9.AQ-JF648YeNNOzsdZw8EkFVJxUejoV3NM--eKgwg_4E" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"guid": "a5c1d655-2bd9-481a-920b-759b5d5c04f2",
"name": "name-1673",
"apps": [
{
"guid": "7e649389-4afd-4074-9185-0c337e987046",
"urls": [
"host-18.domain-66.example.com"
],
"routes": [
{
"guid": "0efc2a61-33f9-4a9f-ad25-915a74dbdda2",
"host": "host-18",
"port": null,
"path": "",
"domain": {
"guid": "95a314fe-2ee6-4403-bcd0-41197c2a6393",
"name": "domain-66.example.com"
}
}
],
"service_count": 1,
"service_names": [
"name-1676"
],
"running_instances": 0,
"name": "name-1679",
"production": false,
"space_guid": "a5c1d655-2bd9-481a-920b-759b5d5c04f2",
"stack_guid": "2d29243e-c549-442f-8202-707eb080dd27",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "57bb15a5-af7d-4859-807a-e4e6fe156de5",
"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,
"staging_failed_description": null,
"diego": false,
"docker_image": null,
"package_updated_at": "2016-05-12T00:45:19Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"ports": null
}
],
"services": [
{
"guid": "7d34d5cd-4603-4eff-96a0-f907518acc76",
"name": "name-1676",
"bound_app_count": 1,
"last_operation": {
"type": "create",
"state": "succeeded",
"description": "description goes here",
"updated_at": "2016-05-12T00:45:19Z",
"created_at": "2016-05-12T00:45:19Z"
},
"dashboard_url": null,
"service_plan": {
"guid": "6664c75a-4174-41b4-a079-a4ef9442f7ff",
"name": "name-1677",
"service": {
"guid": "655c0a76-1780-44dd-a26b-3e674a6c2097",
"label": "label-51",
"provider": null,
"version": null
}
}
}
]
}
Headers