Health

Latest health data

GET /servers/{id}/health/latest

HTTP Request
GET https://manage.runcloud.io/api/v2/servers/{id}/health/latest
Request
curl --request GET \
  --url https://manage.runcloud.io/api/v2/servers/7/health/latest \
  -u YOUR_API_KEY:YOUR_API_SECRET \
  --header 'accept: application/json' \
  --header 'content-type: application/json'
Response
{
	"totalMemory": 974.87891,
	"availableMemory": 364.71094,
	"usedMemory": 610.17,
	"totalDiskSpace": 9376.75162,
	"availableDiskSpace": 5574.00064,
	"usedDiskSpace": 3802.75,
	"loadAverage": 0,
	"updated_at": "2019-06-21 02:47:20"
}

Clean disk

PATCH /servers/{id}/health/diskcleaner

HTTP Request
PATCH https://manage.runcloud.io/api/v2/servers/{id}/health/diskcleaner
Request
curl --request POST \
  --url https://manage.runcloud.io/api/v2/servers/7/health/diskcleaner \
  -u YOUR_API_KEY:YOUR_API_SECRET \
  --header 'accept: application/json' \
  --header 'content-type: application/json'
Response