GetConsts Util function

<< Click to Display Table of Contents >>

Navigation:  Managing Syncplify.me Server! > REST API > SuperAdmin API > Utility >

GetConsts Util function

Reads some global constants from the server.

 

Request

Method

URL

POST

/smserver/smsadm.GetConsts

RAW

POST /smserver/smsadm.GetConsts HTTP/1.1

Cache-Control: no-cache

Connection: Keep-Alive

Pragma: no-cache

Content-Type: application/json; charset=UTF-8

Accept: */*

Authorization: Bearer XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

 

[

       {}

]

Explained

Reads the constant data related to the current virtual server.

No need to specify parameters inthe JSON payload, the virtual server is identified by the URL (/go-default/ -> default).

 

Response

Method

URL

RAW

Accept-Encoding: synlz,gzip

Content-Type: application/json; charset=UTF-8

 

 

{"result":[

[

{            "Property" : "ProtectorBehavior",

           "Values" : ["Indulgent", "Normal", "Strict", "Paranoid" ],

           "Default" : "Normal"

       },

       {

           "Property" : "FTPTLSMode",

           "Values" : [ "Disabled", "Required", "Enabled" ],

           "Default" : "Enabled"

       },

       {

           "Property" : "SMTPTLS",

           "Values" : [ "None",  "Implicit", "Explicit"  ],

           "Default" : "None"

       },

       {

           "Property" : "LogDetail",

           "Values" : [  "Standard",  "Verbose",  "Debug" ],

           "Default" : "Verbose"

       },

       {

           "Property" : "ImpType",

           "Values" : [ "None", "ByHandle", "ByWindowsOrADUser", "ByNetworkShareUser" ],

           "Default" : "Verbose"

       },

       {

           "Property" : "AuthTypes",

           "Values" : [],

           "Default" : ""

       },

       {

           "Property" : "Event",

           "Values" : [

               "OnClientConnection",

               "BeforeSendSoftwareID",

               "OnAuthPassword",

               "OnAuthPKI",

               "OnAuthInteractive",

               "BeforeOpenSFTP",

               "BeforeMakeDir",

               "BeforeListDir",

               "BeforeDelDir",

               "BeforeRenDir",

               "BeforeDelFile",

               "BeforeRenFile",

               "BeforeModFile",

               "BeforeGetFile",

               "BeforePutFile",

               "AfterFileUploaded",

               "AfterFileDownloaded",

               "OnSFTPClosed",

               "BeforeOpenShell",

               "BeforeOpenCmd",

               "BeforeOpenClientFwd",

               "BeforeOpenServerFwd",

               "AfterAttrChanged",

               "AfterAuthSuccess",

               "AfterAuthFail",

               "AfterMakeDir",

               "AfterListDir",

               "AfterDelDir",

               "AfterRenDir",

               "AfterDelFile",

               "AfterRenFile",

               "AfterModFile",

               "OnFileSizeRequest",

               "OnBeforeFileCombineRequest",

               "OnFileHashRequest",

               "OnReqAvailDisk",

               "OnCheckFileExist",

               "BeforeAttrChange",

               "BeforeTimeChange",

               "AfterTimeChange",

               "BeforeCopyFile",

               "AfterCopyFile",

               "OnAuthRequest",

               "OnFileMDTMRequest",

               "OnAfterFileCombineRequest",

               "OnCustomSITECommand"

           ],

           "Default" : ""

       },

       {

           "Property" : "AdminRole",

           "Values" : "Admin|Admin,ViewOnly|ViewOnly,DashboardOnly|Dashboard only",

           "Default" : "Admin"

       },

       {

           "Property" : "CanCreateVserver",

           "Values" : false,

           "Default" : ""

       },

       {

           "Property" : "SrvVersion",

           "Values" : "4.0.0.1",

           "Default" : ""

       },

       {

           "Property" : "MaxVServers",

           "Values" : 1,

           "Default" : "1"

       },

       {

           "Property" : "license",

           "Values" : "Free",

           "Default" : ""

       },

       {

           "Property" : "MaxConn",

           "Values" : 1,

           "Default" : "1"

       },

       {

           "Property" : "AllowedHA",

           "Values" : true,

           "Default" : true

       },

       {

           "Property" : "HttpShare",

           "Values" : true,

           "Default" : true

       },

       {

           "Property" : "AllowedVFSTypes",

           "Values" : "Disk|Disk,DiskAES256|Disk AES256",

           "Default" : "Disk"

       },

       {

           "Property" : "AllowedUserTypes",

           "Values" : "SMS|Normal User,Windows|Windows User,WinGroup|Windows Group,AD|Active Directory,ADGroup|Active Directory Group",

           "Default" : "SMS"

       }  

],"id":7721}

Explained

Here's the information we receive from the server:

 

MaxUsers: maximum number of users that can be created in this virtual server

AllowedRoots: Local disks and folders that can be used as "roots" for this virtual server's VFS (ex: ["C:\\"])

AllowedUserTypes: types of users that can be created in this virtual server

AllowedVFSTypes: types of VFS that are allowed in this virtual server

CurrentUser:  current number of user profiles

AllowedUserTypes: types of user profiles

AllowedVFSTypes: VFS types

AllowedHA: whether it is allowed to configure the vserver in high-availability (HA) or not

HttpShare: whether sharing files over HTTPS is enabled or not

MaxConn: maximum number of concurrent connections supported by this vserver (may be affected by the license, FREE license is always 1)

License: type of license

AdminRole: types of administrative roles