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: */*
{
"type": "SMTP",
"server": "text",
"port": 80,
"reply_to": "text",
"username": "text",
"auth": "AUTO",
"enable_tls_ssl": true,
"enable_starttls_auto": true,
"recipients": "text",
"enable_tenant_access": true,
"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.
The email server type.
Can be either:
SMTP: Use generic SMTP server.MS365Use Microsoft 365 email service.GMAILUse Google Gmail service.
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 authentication protocols.
Can be either:
DISABLE: Skip authentication mechanism.AUTO: Use auto-selected authentication algorithms by server (Currently only supports LOGIN and PLAIN).LOGIN: Use LOGIN authentication mechanism.PLAINUse PLAIN authentication mechanism.
AUTOPossible values: 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.
Apply the email server settings to all tenants.
trueThe 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: 532
{
"type": "SMTP",
"server": "text",
"port": 80,
"reply_to": "text",
"username": "text",
"password": "text",
"auth": "AUTO",
"enable_tls_ssl": true,
"enable_starttls_auto": true,
"recipients": "text",
"enable_tenant_access": true,
"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