Client — Dashboard
Bu sayfa henüz Türkçeye çevrilmedi. İngilizce sürüm gösteriliyor.
GET /api/v1/client/dashboard/summary
Client dashboard summary
Return aggregated account status, resource usage, domain/email/database/cron counts, SSL state, and reseller stats for the authenticated client dashboard.
Responses:
| Status | Schema | Description |
|---|---|---|
200 |
ApiSuccess_dict_str__Any__ |
Successful Response |
Response example (200):
{
"data": {},
"message": "",
"status": "success",
"warnings": [
"string"
]
}
cURL example:
curl -X GET \
-H "X-WHost-Key: $WHOST_API_KEY" \
-H "X-WHost-Timestamp: $(date +%s)" \
-H "X-WHost-Nonce: $(openssl rand -hex 16)" \
-H "X-WHost-Signature: $(compute_hmac)" \
https://your-server:2000/api/v1/client/dashboard/summary
GET /api/v1/client/dashboard/usage
Client live resource usage
The account's current use of its plan's limits, as the limits count it: CPU, memory, disk throughput and IOPS, and tasks in the account's cgroup slice (its Python and Node.js apps; PHP-FPM, cron jobs and shell sessions run outside it), and the mail the policy service has counted this hour. Rates are averaged since the account's previous reading, or over one second when there is none or it is more than five minutes old. Refused with 403 when the governing reseller ACL plan withholds resource_usage_view.
Responses:
| Status | Schema | Description |
|---|---|---|
200 |
ApiSuccess_ClientResourceUsage_ |
Successful Response |
Response example (200):
{
"data": {
"cpu_limit_percent": 0,
"cpu_usage_percent": 0.0,
"emails_sent_this_hour": 0,
"io_read_bytes": 0,
"io_read_used_mbps": 0.0,
"io_write_bytes": 0,
"io_write_used_mbps": 0.0,
"iops_read_used": 0.0,
"iops_write_used": 0.0,
"memory_limit_mb": 0,
"memory_used_mb": 0.0,
"process_count": 0,
"process_limit": 0,
"rate_window_seconds": 0.0
},
"message": "",
"status": "success",
"warnings": [
"string"
]
}
cURL example:
curl -X GET \
-H "X-WHost-Key: $WHOST_API_KEY" \
-H "X-WHost-Timestamp: $(date +%s)" \
-H "X-WHost-Nonce: $(openssl rand -hex 16)" \
-H "X-WHost-Signature: $(compute_hmac)" \
https://your-server:2000/api/v1/client/dashboard/usage
Yukarıda bulamadığınız her şey için destek ekibimiz her zaman yanınızda.