Notification
Retrieve details of system notification settings.
OK
Error
GET /api/admin/notification HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"server": "text",
"port": 80,
"reply_to": "text",
"username": "text",
"auth": "LOGIN",
"enable_tls_ssl": true,
"enable_starttls_auto": true,
"recipients": "text",
"hard_disk_threshold": 0.9,
"notify_hard_disk_exceeded_threshold": false,
"cpu_threshold": 0.9,
"notify_cpu_exceeded_threshold": false,
"memory_threshold": 0.9,
"notify_memory_exceeded_threshold": false,
"notify_ip_blocked": false,
"notify_license_limited": false,
"notify_service_disconnected": false,
"notify_push_certs_update_failed": false
}Update system notification settings.
SMTP server used for sending mails.
A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535. For TCP, port number 0 is reserved and cannot be used, while for UDP, the source port is optional and a value of zero means no port
80A Reply-To address is identified by inserting the Reply-To header in your email.
It is the email address that the reply message is sent
when you want the reply to go to an email address that is different than the From: address.
Username or email address.
Password for email account.
The authorization protocols.
Can be either:
LOGIN: Use LOGIN authorization protocol.PLAINUse PLAIN authorization protocol.
Whether to enable TLS/SSL.
trueWhether StartTLS is automatically enabled.
trueComma-separated list of email address that should receive notifications.
Allow up to 15 email addresses.
The hard disk threshold for email warning.
0.9Send a notification email when specified hard disk threshold is exceeded.
falseThe CPU threshold for email warning.
0.9Send a notification email when specified CPU threshold is exceeded.
falseThe memory threshold for email warning.
0.9Send an email notification when specified memory threshold is exceeded.
falseSend a notification email when ip blocked.
falseSend a notification email when license limit reached.
falseSend a notification email when some service disconnected.
falseSend a notification email when push notification certificates update failed.
falseOK
No content
Error
POST /api/admin/notification HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 491
{
"server": "text",
"port": 80,
"reply_to": "text",
"username": "text",
"password": "text",
"auth": "LOGIN",
"enable_tls_ssl": true,
"enable_starttls_auto": true,
"recipients": "text",
"hard_disk_threshold": 0.9,
"notify_hard_disk_exceeded_threshold": false,
"cpu_threshold": 0.9,
"notify_cpu_exceeded_threshold": false,
"memory_threshold": 0.9,
"notify_memory_exceeded_threshold": false,
"notify_ip_blocked": false,
"notify_license_limited": false,
"notify_service_disconnected": false,
"notify_push_certs_update_failed": false
}No content