Get node health status for system monitoring
Description:
Retrieves node health status information for system components including MariaDB cluster status, required services status, memory usage, and system load average.Precondition:
This endpoint is restricted by IP whitelist and rate limiting.Response:
Returns the overall node health status.Node health status returned successfully - all components are healthy.
Overall health status indicator. 1 means all components are healthy; 0 means one or more components are unhealthy.
Request blocked by WAF
ERR_INTERNAL_SERVER_ERROR
Service unavailable - one or more components are unhealthy.
Overall health status indicator. 1 means all components are healthy; 0 means one or more components are unhealthy.
curl -X GET \
"https://{instance}.kiteworks.com/rest/nodeHealth/status" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/nodeHealth/status"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Upload EPGDB backup chunk for database restore
Endpoint for uploading a chunk to an existing EPGDB backup upload session, identified by its session ID.
The upload session ID
The filename of the EPGDB backup file being uploaded.
Successfully received the upload
Upload session ID
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED, ERR_ACCESS_USER
Error code
Error message
Unprocessable Content
Possible error codes: ERR_INVALID_PARAMETER, ERR_FILE_TOO_LARGE
Error code
Error message
Request blocked by WAF
Service Unavailable
Possible error codes: ERR_SESSION_LIMIT_REACHED, ERR_UPLOAD_CHUNK_FAILED
Error code
Error message
Insufficient Storage
Possible error codes: ERR_INSUFFICIENT_DISK_SPACE
Error code
Error message
curl -X POST \
"https://{instance}.kiteworks.com/rest/system/epgdb/import/:id" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"filename": "string"
}'import requests
id = "VALUE" # The upload session ID
url = f"https://{{instance}}.kiteworks.com/rest/system/epgdb/import/{id}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"filename": "string"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Get EPGDB import status
Endpoint for polling the status of the import
Successfully returned the import status
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED, ERR_ACCESS_USER
Error code
Error message
Unprocessable Content
Possible error codes: ERR_INVALID_PARAMETER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/system/epgdb/import" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/system/epgdb/import"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Upload EPGDB backup for database restore
Endpoint for uploading an EPGDB backup for restoring the database. Starts a new upload session.
The filename of the EPGDB backup file being uploaded.
Successfully received the upload
Upload session ID
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED, ERR_ACCESS_USER
Error code
Error message
Unprocessable Content
Possible error codes: ERR_INVALID_PARAMETER, ERR_FILE_TOO_LARGE
Error code
Error message
Request blocked by WAF
Service Unavailable
Possible error codes: ERR_SESSION_LIMIT_REACHED, ERR_UPLOAD_CHUNK_FAILED
Error code
Error message
Insufficient Storage
Possible error codes: ERR_INSUFFICIENT_DISK_SPACE
Error code
Error message
curl -X POST \
"https://{instance}.kiteworks.com/rest/system/epgdb/import" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"filename": "string"
}'import requests
url = "https://{instance}.kiteworks.com/rest/system/epgdb/import"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json",
}
payload = {
"filename": "string"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Cancel active EPGDB import session
Endpoint for cancelling the current active import session
Successfully deleted the session
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED, ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/system/epgdb/import" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/system/epgdb/import"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())Download EPGDB export file
Get EPGDB export download
The name of the EPGDB export file to download.
EPGDB export download
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED, ERR_ACCESS_USER, ERR_DB_BACKUP_FAILED
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/system/epgdb/export/:filename" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
filename = "VALUE" # The name of the EPGDB export file to download.
url = f"https://{{instance}}.kiteworks.com/rest/system/epgdb/export/{filename}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Get EPGDB export status
Get EPGDB export status
EPGDB export status returned successfully
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED, ERR_ACCESS_USER
Error code
Error message
Request blocked by WAF
curl -X GET \
"https://{instance}.kiteworks.com/rest/system/epgdb/export" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/system/epgdb/export"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())Start EPGDB export
Start EPGDB export with precheck validation
EPGDB export started successfully
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED, ERR_ACCESS_USER, ERR_JOB_IN_PROGRESS
Error code
Error message
Not Found
Possible error codes: ERR_EPGDB_NOT_FOUND
Error code
Error message
Request blocked by WAF
Insufficient Storage
Possible error codes: ERR_INSUFFICIENT_TMP_STORAGE
Error code
Error message
curl -X POST \
"https://{instance}.kiteworks.com/rest/system/epgdb/export" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/system/epgdb/export"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.post(url, headers=headers)
print(response.json())Perform cleanup for EPGDB export
Perform cleanup for EPGDB export
Delete EPGDB export
Unauthorized
Possible error codes: ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Forbidden
Possible error codes: ERR_ACCESS_DENIED, ERR_ACCESS_USER, ERR_JOB_IN_PROGRESS
Error code
Error message
Request blocked by WAF
curl -X DELETE \
"https://{instance}.kiteworks.com/rest/system/epgdb/export" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
url = "https://{instance}.kiteworks.com/rest/system/epgdb/export"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.delete(url, headers=headers)
print(response.json())Get node health metrics for specified metric type
Description:
Retrieves health metrics for database, web requests, job queue, SFTP, system resources, or all metrics.Precondition:
The user must be an administrator with access to `System Services`.Response:
Returns the list of metrics for the specified metric type.Kiteworks node id to retrieve metrics from.
The type of metric to retrieve.
The node health metrics have been successfully returned.
The MariaDB service status.active – Service is running.inactive – Service is not running.
Real-time number of active database connections.
Galera cluster status indicating whether this node is the primary component.
Number of healthy nodes in the Galera cluster.
Galera local state indicating readiness to accept read/write requests. Synced is the healthy value.
Real-time RSS memory usage of the MariaDB service in MB.
Real-time CPU usage percentage by the MariaDB service.
Free space available on the database partition in MB.
Used space on the database partition in MB.
The Nginx service status.active – Service is running.inactive – Service is not running.
Real-time number of active connections to the local Nginx instance.
Real-time number of connections currently reading the request header.
Real-time number of connections currently writing a response.
Ratio of handled connections to accepted connections.
Ratio of total requests to handled connections.
The job queue service status.active – Service is running.inactive – Service is not running.
RSS memory usage of the job queue service in MB.
Number of jobs in the file preview queue.
Number of jobs in the antivirus scan queue.
Number of fingerprint jobs queued to be executed on the ACFS node.
Real-time number of jobs currently waiting in the queue.
Real-time number of jobs currently being processed.
Real-time number of jobs that have failed.
Number of active SFTP connections.
Total RSS memory usage by SFTP processes in MB.
Total system RSS memory usage in MB.
Total system swap usage in MB.
Total system CPU usage as a percentage.
System load average over the last 1 minute.
System load average over the last 5 minutes.
System load average over the last 15 minutes.
Unauthorized
Possible error codes: ERR_ACCESS_USER, ERR_AUTH_INVALID_CSRF, ERR_AUTH_UNAUTHORIZED
Error code
Error message
Unprocessable Content
Possible error codes: ERR_INVALID_PARAMETER
Error code
Error message
Request blocked by WAF
Internal Server Error
Possible error codes: ERR_INTERNAL_SERVER_ERROR
Error code
Error message
curl -X GET \
"https://{instance}.kiteworks.com/rest/nodeHealth/:node_id/metrics/:metric_name" \
-H "Authorization: Bearer YOUR_TOKEN"import requests
node_id = "VALUE" # Kiteworks node id to retrieve metrics from.
metric_name = "VALUE" # The type of metric to retrieve.
url = f"https://{{instance}}.kiteworks.com/rest/nodeHealth/{node_id}/metrics/{metric_name}"
headers = {
"Authorization": "Bearer YOUR_TOKEN",
}
response = requests.get(url, headers=headers)
print(response.json())