JSON Object Example
{
    "Server": "smtp.gmail.com:777",
    "LoginOnServer": false,
    "UserName": "sergey.brin@gmail.com",
    "Password": "LMAO",
    "UseSSL": false,
    "DNSResolveMode": "External DNS Server",
    "DNSserverIP": "8.8.8.8",
    "Device_Id": 8550,
    "Id": 17712,
    "Task_Type_Id": 4,
    "Name": "Gmail SMTP",
    "Timeout": 0
}

Fields Description

Field Type Required/Optional Description

Server

string

required

SMTP Server address and port number.

Example:
Server": "pop.gmail.com:995"

LoginOnServer

boolean

optional

When enabled – login operation will be performed during monitoring session.

Example:
"LoginOnServer"true

UserName

string

optional

This field contains a username for SMTP authentication.

Example:
"UserName""username"

Password

string

optional

This field contains a password for SMTP authentication.

Example:
"Password""password"

UseSSL

boolean

optional

When enabled – SMTP over SSL will be requested.

Example:
"UseSSL"true
DNSResolveMode string optional POSSIBLE VALUES:

  • Device Cached
  • Non Cached
  • TTL Cached
  • External DNS Server

For detailed explanation please see the “DNS Mode Option” article.

DNSserverIP string optional Field for a custom DNS server IP address.

For detailed explanation please see the “DNS Mode Option” article.

Device_Id

int32

required

READ ONLY Field. Unique device ID.

Example:
"Device_Id": 8550

Id

int32

required

*Only for edit operations

READ ONLY Field. Unique task id

Example:
"Id": 17711

Task_Type_Id

int32

required

The type id of the task.

Name

string

optional

Task name.

Example:
"Name""Gmail SMTP"

Timeout

int32

optional

This field defines timeout value (in mseconds) for task execution.

Example:
"Timeout": 0