Difference between revisions of "Administration API - Function Reference"

[unchecked revision][unchecked revision]
Line 11: Line 11:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>name</tt>
 
| <tt>name</tt>
Line 16: Line 20:
 
| Meaningful name of archive store.
 
| Meaningful name of archive store.
 
|-
 
|-
| <tt>type</tt>
+
| <tt>path</tt>
 +
| string
 +
| Path of directory containing archive store data.
 +
|-
 +
| <tt>requestedState</tt>
 
| string (optional)
 
| string (optional)
|  
+
| State of archive store after attaching.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== requestedState ====
 +
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>current</tt>
 +
| Same as Normal but new messages will be archived in the archive store that is set to Current.
 
|-
 
|-
| <tt>databaseName</tt>
+
| <tt>normal</tt>
| string (optional)
+
| The content of archives store is available to users and can be modified if the user has the appropriate permission.
| Name of database on Microsoft SQL Server or PostgreSQL server.
+
|-
 +
| <tt>writeProtected</tt>
 +
| The content of write protected archive stores is available to users, but cannot be modified (e.g. delete or move messages, rename or move folders)
 +
|-
 +
| <tt>disabled</tt>
 +
| Disabled archive stores are not in use but the instance still knows about their existence. Therefore the content is not available to users.
 +
|}
 +
 
 +
== CompactStore ==
 +
Compact archive store.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>id</tt>
 +
| number
 +
| Unique ID of archive store
 +
|}
 +
 
 +
== CreateClientAccessServer ==
 +
Register new client access server.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 
|-
 
|-
| <tt>databasePath</tt>
+
| <tt>config</tt>
| string (optional)
+
| json
| Path to directory in which database folder information and email meta data are stored.
+
| Configuration of new Client Access Server.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== config ====
 +
<source lang="js" smart-tabs="true" toolbar="false" gutter="false">
 +
{
 +
  "serverName" : string,
 +
  "port" : number,
 +
  "serverCertificate" : {
 +
    "thumbprint" : string
 +
  }
 +
}
 +
</source>
 +
 
 +
== CreateClientOneTimeUrlForArchiveAdmin ==
 +
Create URL including OTP for $archiveadmin access.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 
|-
 
|-
| <tt>contentPath</tt>
+
| <tt>instanceID</tt>
| string (optional)
+
| string  
| Path to directory in which email headers and contents are stored.
+
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
| <tt>indexPath</tt>
+
| <tt>instanceUrl</tt>
 
| string (optional)
 
| string (optional)
| Path to directory in which full text search indexes are stored.
+
| Base URL for accessing instance.
 +
|}
 +
 
 +
== CreateDirectoryOnInstanceHost ==
 +
Create a directory on an Instance Host
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 
|-
 
|-
 
| <tt>serverName</tt>
 
| <tt>serverName</tt>
| string (optional)
+
| string  
| Name of Microsoft SQL Server or PostgreSQL server.
+
| Name of Instance Host.
 +
|-
 +
| <tt>path</tt>
 +
| string
 +
| Path of directory to create.
 +
|}
 +
 
 +
== CreateInstance ==
 +
Create new MailStore instance.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>config</tt>
 +
| json
 +
| Configuration of new instance.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== config ====
 +
<source lang="js" smart-tabs="true" toolbar="false" gutter="false">
 +
{
 +
  "instanceID" : string,
 +
  "alias" : string,
 +
  "displayName" : string,
 +
  "instanceHost" : string,
 +
  "startMode" : string,
 +
  "baseDirectory" : string,
 +
  "debugLogEnabled" : bool,
 +
  "vssWriterEnabled" : bool
 +
}
 +
</source>
 +
 
 +
== CreateInstanceHost ==
 +
Create a new Instance Host.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>config</tt>
 +
| json
 +
| Configuration of new Instance Host.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== config ====
 +
<source lang="js" smart-tabs="true" toolbar="false" gutter="false">
 +
{
 +
  "serverName" : string,
 +
  "port" : number,
 +
  "serverCertificate" : {
 +
    "thumbprint" : string
 +
  }
 +
}
 +
</source>
 +
 
 +
== CreateLicenseRequest ==
 +
Create and return data of a license request.
 +
 
 +
== CreateStore ==
 +
Create and attach a new archive store.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
| <tt>userName</tt>
+
| <tt>name</tt>
| string (optional)
+
| string  
| User name for accessing Microsoft SQL Server or PostgreSQL server.
+
| Meaningful name of archive store.
 
|-
 
|-
| <tt>password</tt>
+
| <tt>path</tt>
| string (optional)
+
| string  
| Password for accessing Microsoft SQL Server or PostgreSQL server.
+
| Path of directory containing archive store data.
 
|-
 
|-
 
| <tt>requestedState</tt>
 
| <tt>requestedState</tt>
Line 73: Line 236:
 
|}
 
|}
  
== ClearUserPrivilegesOnFolders ==
+
== CreateSystemAdministrator ==
Removes all privileges of a user on all archive folders.
+
Create a new SPE system administrator.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>config</tt>
 +
| json
 +
| Configuration of new SPE system administrator.
 +
|-
 +
| <tt>password</tt>
 +
| string
 +
| Password of new SPE system administrator.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== config ====
 +
<source lang="js" smart-tabs="true" toolbar="false" gutter="false">
 +
{
 +
  "userName" : string,
 +
  "fullName" : string
 +
}
 +
</source>
 +
 
 +
== DeleteClientAccessServer ==
 +
Delete Client Access Server from management database.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>serverName</tt>
 +
| string
 +
| Name of Client Access Server.
 +
|}
 +
 
 +
== DeleteInstanceHost ==
 +
Delete Instance Host from management database.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>serverName</tt>
 +
| string
 +
| Name of Instance Host.
 +
|}
 +
 
 +
== DeleteInstances ==
 +
Delete one or multiple MailStore Instances
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceFilter</tt>
 +
| string
 +
| Instance filter string.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== instanceFilter ====
 +
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>*</tt>
 +
| All instances
 +
|-
 +
| <tt>instance01 instance02 instance03</tt>
 +
| instance01, instance02 and instance03
 +
|-
 +
| <tt>*instancehost01 *instancehost02</tt>
 +
| All instances on instancehost1 and instancehost2
 +
|-
 +
| <tt>* .running</tt>
 +
| All running instances
 +
|-
 +
| <tt>* .stopped</tt>
 +
| All stopped instances
 +
|}
 +
 
 +
== DeleteSystemAdministrator ==
 +
Delete SPE system administrator.
  
 
=== Arguments ===
 
=== Arguments ===
Line 84: Line 340:
 
| <tt>userName</tt>
 
| <tt>userName</tt>
 
| string  
 
| string  
| User name of MailStore user.
+
| User name of SPE system administrator.
 
|}
 
|}
  
== CompactMasterDatabase ==
+
== DetachStore ==
Compact master database.
+
Detach archive store
 
 
== CompactStore ==
 
Compact archive store.
 
  
 
=== Arguments ===
 
=== Arguments ===
Line 98: Line 351:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>id</tt>
 
| <tt>id</tt>
 
| number  
 
| number  
| Unique ID of archive store
+
| Unique ID of archive store.
 +
|}
 +
 
 +
== FreezeInstances ==
 +
Freeze a MailStore Instance
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceFilter</tt>
 +
| string
 +
| Instance filter string.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== instanceFilter ====
 +
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>*</tt>
 +
| All instances
 +
|-
 +
| <tt>instance01 instance02 instance03</tt>
 +
| instance01, instance02 and instance03
 +
|-
 +
| <tt>*instancehost01 *instancehost02</tt>
 +
| All instances on instancehost1 and instancehost2
 +
|-
 +
| <tt>* .running</tt>
 +
| All running instances
 +
|-
 +
| <tt>* .stopped</tt>
 +
| All stopped instances
 +
|}
 +
 
 +
== GetArchiveAdminEnabled ==
 +
Get currrent state of archive admin access.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|}
 
|}
  
== CreateProfile ==
+
== GetClientAccessServers ==
Create a new archiving or exporting profile.
+
Get list of Client Access Servers.
  
 
=== Arguments ===
 
=== Arguments ===
Line 113: Line 421:
 
! Description
 
! Description
 
|-
 
|-
| <tt>properties</tt>
+
| <tt>serverNameFilter</tt>
| json
+
| string (optional)
| Profile properties.
+
| Server name filter string.
 
|-
 
|-
| <tt>raw</tt>
+
| <tt>withServiceStatus</tt>
 
| bool  
 
| bool  
| Currently only 'true' is supported.
+
| Include service status or not.
 
|}
 
|}
  
 
=== Argument Values ===
 
=== Argument Values ===
  
== CreateStore ==
+
==== serverNameFilter ====
Create and attach a new archive store.
+
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>null</tt>
 +
| All servers
 +
|-
 +
| <tt>serverName</tt>
 +
| Only the given serverName. Must match exactly.
 +
|}
 +
 
 +
== GetDirectoriesOnInstanceHost ==
 +
Get file system directory structure from Instance Host.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>serverName</tt>
 +
| string
 +
| Name of Instance Host.
 +
|-
 +
| <tt>path</tt>
 +
| string (optional)
 +
| Path of directory to obtain subdirectories from.
 +
|}
 +
 
 +
== GetEnvironmentInfo ==
 +
Return general information about SPE environment.
 +
 
 +
== GetIndexConfiguration ==
 +
Get list of attachment file types to index.
  
 
=== Arguments ===
 
=== Arguments ===
Line 133: Line 474:
 
! Description
 
! Description
 
|-
 
|-
| <tt>name</tt>
+
| <tt>instanceID</tt>
 
| string  
 
| string  
| Meaningful name of archive store.
+
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== GetInstanceConfiguration ==
 +
Get configuration of MailStore Instance.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 
|-
 
|-
| <tt>type</tt>
+
| <tt>instanceID</tt>
| string
+
| string  
|  
+
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== GetInstanceHosts ==
 +
Get list of Instance Hosts.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 
|-
 
|-
| <tt>databaseName</tt>
+
| <tt>serverNameFilter</tt>
 
| string (optional)
 
| string (optional)
| Name of database on Microsoft SQL Server or PostgreSQL server.
+
| Server name filter string.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== serverNameFilter ====
 +
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>null</tt>
 +
| All servers
 +
|-
 +
| <tt>serverName</tt>
 +
| Only the given serverName. Must match exactly.
 +
|}
 +
 
 +
== GetInstanceProcessLiveStatistics ==
 +
Get live statistics from instance process.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== GetInstances ==
 +
Get list of instances.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceFilter</tt>
 +
| string
 +
| Instance filter string.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== instanceFilter ====
 +
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>*</tt>
 +
| All instances
 +
|-
 +
| <tt>instance01 instance02 instance03</tt>
 +
| instance01, instance02 and instance03
 +
|-
 +
| <tt>*instancehost01 *instancehost02</tt>
 +
| All instances on instancehost1 and instancehost2
 +
|-
 +
| <tt>* .running</tt>
 +
| All running instances
 +
|-
 +
| <tt>* .stopped</tt>
 +
| All stopped instances
 +
|}
 +
 
 +
== GetInstanceStatistics ==
 +
Get archive statistics from instance.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== GetServiceStatus ==
 +
Get current status of all SPE services.
 +
 
 +
== GetStoreAutoCreateConfiguration ==
 +
Get automatic archive store creation settings.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== GetStores ==
 +
Get list of archive stores.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 
|-
 
|-
| <tt>databasePath</tt>
+
| <tt>instanceID</tt>
| string (optional)
+
| string  
| Path to directory in which database folder information and email meta data are stored.
+
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== GetSystemAdministrators ==
 +
Get list of system administrators.
 +
 
 +
== MaintainFileSystemDatabases ==
 +
Execute maintenance task on archive store databases.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== MergeStore ==
 +
Merge two archive stores.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>id</tt>
 +
| number
 +
| Unique ID of destination archive store.
 
|-
 
|-
| <tt>contentPath</tt>
+
| <tt>sourceId</tt>
| string (optional)
+
| number
| Path to directory in which email headers and contents are stored.
+
| Unique ID of source archive store.
 +
|}
 +
 
 +
== PairWithManagementServer ==
 +
Pair server role with Management Server.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 
|-
 
|-
| <tt>indexPath</tt>
+
| <tt>serverType</tt>
| string (optional)
+
| string  
| Path to directory in which full text search indexes are stored.
+
| Type of server role.
 
|-
 
|-
 
| <tt>serverName</tt>
 
| <tt>serverName</tt>
| string (optional)
+
| string  
| Name of Microsoft SQL Server or PostgreSQL server.
+
| Name of server that hosts 'serverType' role.
 +
|-
 +
| <tt>port</tt>
 +
| number
 +
| TCP port on which 'serverType' role on 'serverName' accepts connections.
 +
|-
 +
| <tt>thumbprint</tt>
 +
| string
 +
| Thumbprint of SSL certificate used by serverType' role on 'serverName'
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== serverType ====
 +
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>instanceHost</tt>
 +
| Pairing an Instance Host.
 +
|-
 +
| <tt>clientAccessServer</tt>
 +
| Pairing a Client Access Server.
 +
|}
 +
 
 +
== Ping ==
 +
Send a keep alive packet.
 +
 
 +
== RebuildSelectedStoreIndexes ==
 +
Rebuild search indexes of selected archive stores.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== RefreshAllStoreStatistics ==
 +
Refresh archive store statistics.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== RenameStore ==
 +
Rename archvive store
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>id</tt>
 +
| number
 +
| Unique ID of archive store.
 +
|-
 +
| <tt>name</tt>
 +
| string
 +
| New name of archive store.
 +
|}
 +
 
 +
== RestartInstances ==
 +
Restart one or multiple instances.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceFilter</tt>
 +
| string
 +
| Instance filter string.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== instanceFilter ====
 +
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>*</tt>
 +
| All instances
 +
|-
 +
| <tt>instance01 instance02 instance03</tt>
 +
| instance01, instance02 and instance03
 +
|-
 +
| <tt>*instancehost01 *instancehost02</tt>
 +
| All instances on instancehost1 and instancehost2
 +
|-
 +
| <tt>* .running</tt>
 +
| All running instances
 +
|-
 +
| <tt>* .stopped</tt>
 +
| All stopped instances
 +
|}
 +
 
 +
== RetryOpenStores ==
 +
Retry opening stores that failed previously
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== SelectAllStoreIndexesForRebuild ==
 +
Select all archive store for rebuild.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
 +
 
 +
== SetArchiveAdminEnabled ==
 +
Enable or disable archive admin access.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>enabled</tt>
 +
| bool
 +
| Enable or disable flag.
 +
|}
 +
 
 +
== SetClientAccessServerConfiguration ==
 +
Set the configuration of a Client Access Server.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>config</tt>
 +
| json
 +
| Client Access Server configuration.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== config ====
 +
<source lang="js" smart-tabs="true" toolbar="false" gutter="false">
 +
{
 +
  "serverName" : string,
 +
  "port" : number,
 +
  "serverCertificate" : {
 +
    "thumbprint" : string
 +
  }
 +
}
 +
</source>
 +
 
 +
== SetIndexConfiguration ==
 +
Set full text search index configuration.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>config</tt>
 +
| json
 +
| Full text search index configuration.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== config ====
 +
Use GetIndexConfiguration to reveive supported value.
 +
 
 +
== SetInstanceConfiguration ==
 +
Set configuration of MailStore Instance.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>config</tt>
 +
| json
 +
| Instance configuration.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== config ====
 +
<source lang="js" smart-tabs="true" toolbar="false" gutter="false">
 +
{
 +
  "instanceID" : string,
 +
  "alias" : string,
 +
  "displayName" : string,
 +
  "instanceHost" : string,
 +
  "startMode" : string,
 +
  "baseDirectory" : string,
 +
  "debugLogEnabled" : bool,
 +
  "vssWriterEnabled" : bool
 +
}
 +
</source>
 +
 
 +
== SetInstanceHostConfiguration ==
 +
Set configuration of Instance Host.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>config</tt>
 +
| json
 +
| Instance Host configuration.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== config ====
 +
<source lang="js" smart-tabs="true" toolbar="false" gutter="false">
 +
{
 +
  "serverName" : string,
 +
  "port" : number,
 +
  "serverCertificate" : {
 +
    "thumbprint" : string
 +
  },
 +
  "baseDirectory" : string
 +
}
 +
</source>
 +
 
 +
== SetStoreAutoCreateConfiguration ==
 +
Set configuration for automatic archive store creation.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>config</tt>
 +
| json
 +
| Archive store automatic creation configuration.
 +
|}
 +
 
 +
=== Argument Values ===
 +
 
 +
==== config ====
 +
<source lang="js" smart-tabs="true" toolbar="false" gutter="false">
 +
{
 +
  "enabled" : bool,
 +
  "interval" : string,
 +
  "sizeThreshold" : string,
 +
  "numberOfMessagesThreshold" : number,
 +
  "baseDirectory" : string
 +
}
 +
</source>
 +
 
 +
== SetStorePath ==
 +
Set the path to archive store data.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>id</tt>
 +
| number
 +
| Unique ID of archive store.
 +
|-
 +
| <tt>path</tt>
 +
| string
 +
| Path to archvie store data.
 +
|}
 +
 
 +
== SetStoreRequestedState ==
 +
Set state of archive store.
 +
 
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 
|-
 
|-
| <tt>userName</tt>
+
| <tt>instanceID</tt>
| string (optional)
+
| string  
| User name for accessing Microsoft SQL Server or PostgreSQL server.
+
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
| <tt>password</tt>
+
| <tt>id</tt>
| string (optional)
+
| number
| Password for accessing Microsoft SQL Server or PostgreSQL server.
+
| Unique ID of archive store.
 
|-
 
|-
 
| <tt>requestedState</tt>
 
| <tt>requestedState</tt>
| string (optional)
+
| string  
| State of archive store after attaching.
+
| State of archive store.
 
|}
 
|}
  
Line 193: Line 1,034:
 
| Disabled archive stores are not in use but the instance still knows about their existence. Therefore the content is not available to users.
 
| Disabled archive stores are not in use but the instance still knows about their existence. Therefore the content is not available to users.
 
|}
 
|}
 +
 +
== SetSystemAdministratorConfiguration ==
 +
Set SPE system adminstrator configuration.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>config</tt>
 +
| json
 +
| SPE system adminstrator configuration.
 +
|}
 +
 +
=== Argument Values ===
 +
 +
==== config ====
 +
<source lang="js" smart-tabs="true" toolbar="false" gutter="false">
 +
{
 +
  "fullName" : string
 +
}
 +
</source>
 +
 +
== SetSystemAdministratorPassword ==
 +
Set password for SPE system administrator.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>userName</tt>
 +
| string
 +
| User name of SPE system administrator.
 +
|-
 +
| <tt>password</tt>
 +
| string
 +
| New password for SPE system administrator.
 +
|}
 +
 +
== StartInstances ==
 +
Start one or multiple MailStore Instances.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceFilter</tt>
 +
| string
 +
| Instance filter string.
 +
|}
 +
 +
=== Argument Values ===
 +
 +
==== instanceFilter ====
 +
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>*</tt>
 +
| All instances
 +
|-
 +
| <tt>instance01 instance02 instance03</tt>
 +
| instance01, instance02 and instance03
 +
|-
 +
| <tt>*instancehost01 *instancehost02</tt>
 +
| All instances on instancehost1 and instancehost2
 +
|-
 +
| <tt>* .running</tt>
 +
| All running instances
 +
|-
 +
| <tt>* .stopped</tt>
 +
| All stopped instances
 +
|}
 +
 +
== StopInstances ==
 +
Stop one or multiple MailStore Instances.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceFilter</tt>
 +
| string
 +
| Instance filter string.
 +
|}
 +
 +
=== Argument Values ===
 +
 +
==== instanceFilter ====
 +
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>*</tt>
 +
| All instances
 +
|-
 +
| <tt>instance01 instance02 instance03</tt>
 +
| instance01, instance02 and instance03
 +
|-
 +
| <tt>*instancehost01 *instancehost02</tt>
 +
| All instances on instancehost1 and instancehost2
 +
|-
 +
| <tt>* .running</tt>
 +
| All running instances
 +
|-
 +
| <tt>* .stopped</tt>
 +
| All stopped instances
 +
|}
 +
 +
== ThawInstances ==
 +
Thaw one or multiple MailStore Instances.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceFilter</tt>
 +
| string
 +
| Instance filter string.
 +
|}
 +
 +
=== Argument Values ===
 +
 +
==== instanceFilter ====
 +
{| class="wikitable"
 +
! width=270px | Name
 +
! Description
 +
|-
 +
| <tt>*</tt>
 +
| All instances
 +
|-
 +
| <tt>instance01 instance02 instance03</tt>
 +
| instance01, instance02 and instance03
 +
|-
 +
| <tt>*instancehost01 *instancehost02</tt>
 +
| All instances on instancehost1 and instancehost2
 +
|-
 +
| <tt>* .running</tt>
 +
| All running instances
 +
|-
 +
| <tt>* .stopped</tt>
 +
| All stopped instances
 +
|}
 +
 +
== UpgradeStore ==
 +
Upgrade archive store from MailStore Server 5 or older to current format.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>id</tt>
 +
| number
 +
| Unique ID of archive store.
 +
|}
 +
 +
== VerifyStore ==
 +
Verify archive stores consistency.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>id</tt>
 +
| number
 +
| Unique ID of archive store.
 +
|}
 +
 +
== ClearUserPrivilegesOnFolders ==
 +
Removes all privileges of a user on all archive folders.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>userName</tt>
 +
| string
 +
| User name of MailStore user.
 +
|}
 +
 +
== CreateProfile ==
 +
Create a new archiving or exporting profile.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|-
 +
| <tt>properties</tt>
 +
| json
 +
| Profile properties.
 +
|-
 +
| <tt>raw</tt>
 +
| bool
 +
| Currently only 'true' is supported.
 +
|}
 +
 +
=== Argument Values ===
 +
 +
==== properties ====
 +
To receive available profile properties create a profile of the desired type via MailStore Client and use the GetProfiles method to receive supported value. ''Id'' and ''Version'' attributes must not be set.
  
 
== CreateUser ==
 
== CreateUser ==
Line 202: Line 1,276:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 236: Line 1,314:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>folder</tt>
 
| <tt>folder</tt>
Line 250: Line 1,332:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>id</tt>
 
| <tt>id</tt>
Line 264: Line 1,350:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>id</tt>
 
| <tt>id</tt>
Line 278: Line 1,368:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 283: Line 1,377:
 
| User name of MailStore user.
 
| User name of MailStore user.
 
|}
 
|}
 
== DetachStore ==
 
Detach archive store
 
 
=== Arguments ===
 
{| class="wikitable"
 
! width=150px | Name
 
! width=120px | Type
 
! Description
 
|-
 
| <tt>id</tt>
 
| number
 
| Unique ID of archive store.
 
|}
 
 
== GetActiveSessions ==
 
Get list of current user sessions.
 
  
 
== GetChildFolders ==
 
== GetChildFolders ==
Line 309: Line 1,386:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>folder</tt>
 
| <tt>folder</tt>
Line 321: Line 1,402:
 
== GetComplianceConfiguration ==
 
== GetComplianceConfiguration ==
 
Get current compliance configuration settings.
 
Get current compliance configuration settings.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
  
 
== GetDirectoryServicesConfiguration ==
 
== GetDirectoryServicesConfiguration ==
 
Get current Directory Services configuration settings.
 
Get current Directory Services configuration settings.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
  
 
== GetFolderStatistics ==
 
== GetFolderStatistics ==
 
Get folder statistics.
 
Get folder statistics.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
  
 
== GetMessages ==
 
== GetMessages ==
Line 336: Line 1,450:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>folder</tt>
 
| <tt>folder</tt>
Line 350: Line 1,468:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>raw</tt>
 
| <tt>raw</tt>
Line 356: Line 1,478:
 
|}
 
|}
  
== GetServerInfo ==
+
== GetTimeZones ==
Get MailStore Server version and machine name.
+
Get list of available time zones.
 
 
== GetStoreIndexes ==
 
Get list of attachment file types to index.
 
  
 
=== Arguments ===
 
=== Arguments ===
Line 368: Line 1,487:
 
! Description
 
! Description
 
|-
 
|-
| <tt>id</tt>
+
| <tt>instanceID</tt>
| number (optional)
+
| string
| Unique ID of archive store.
+
| Unique ID of MailStore instance in which this command is invoked.
 
|}
 
|}
 
== GetStores ==
 
Get list of archive stores.
 
 
== GetTimeZones ==
 
Get list of available time zones.
 
  
 
== GetUserInfo ==
 
== GetUserInfo ==
Line 387: Line 1,500:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 395: Line 1,512:
 
== GetUsers ==
 
== GetUsers ==
 
Get list of users.
 
Get list of users.
 +
 +
=== Arguments ===
 +
{| class="wikitable"
 +
! width=150px | Name
 +
! width=120px | Type
 +
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 +
|}
  
 
== GetWorkerResults ==
 
== GetWorkerResults ==
Line 404: Line 1,532:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>fromIncluding</tt>
 
| <tt>fromIncluding</tt>
Line 424: Line 1,556:
 
| string (optional)
 
| string (optional)
 
| Filter results by given user name.
 
| Filter results by given user name.
|}
 
 
== MaintainFileSystemDatabases ==
 
Run database maintainance on all datbases of file system based archive stores.
 
 
== MergeStore ==
 
Merge two archive stores.
 
 
=== Arguments ===
 
{| class="wikitable"
 
! width=150px | Name
 
! width=120px | Type
 
! Description
 
|-
 
| <tt>id</tt>
 
| number
 
| Unique ID of destination archive store.
 
|-
 
| <tt>sourceId</tt>
 
| number
 
| Unique ID of source archive store.
 
 
|}
 
|}
  
Line 455: Line 1,566:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>fromFolder</tt>
 
| <tt>fromFolder</tt>
Line 465: Line 1,580:
 
|}
 
|}
  
== RebuildStoreIndex ==
+
== RenameUser ==
Rebuild search index for given archive folder.
+
Rename a MailStore user.
  
 
=== Arguments ===
 
=== Arguments ===
Line 474: Line 1,589:
 
! Description
 
! Description
 
|-
 
|-
| <tt>id</tt>
+
| <tt>instanceID</tt>
| number
 
| Unique ID of archive store.
 
|-
 
| <tt>folder</tt>
 
 
| string  
 
| string  
| Name of folder name.
+
| Unique ID of MailStore instance in which this command is invoked.
|}
 
 
 
== RefreshAllStoreStatistics ==
 
Refresh statistics of all archive stores.
 
 
 
== RenameStore ==
 
Rename archvive store
 
 
 
=== Arguments ===
 
{| class="wikitable"
 
! width=150px | Name
 
! width=120px | Type
 
! Description
 
|-
 
| <tt>id</tt>
 
| number
 
| Unique ID of archive store.
 
|-
 
| <tt>name</tt>
 
| string
 
| New name of archive store.
 
|}
 
 
 
== RenameUser ==
 
Rename a MailStore user.
 
 
 
=== Arguments ===
 
{| class="wikitable"
 
! width=150px | Name
 
! width=120px | Type
 
! Description
 
 
|-
 
|-
 
| <tt>oldUserName</tt>
 
| <tt>oldUserName</tt>
Line 521: Line 1,601:
 
| New user name.
 
| New user name.
 
|}
 
|}
 
== RetryOpenStores ==
 
Retry opening stores that failed previously
 
  
 
== RunProfile ==
 
== RunProfile ==
Line 533: Line 1,610:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>id</tt>
 
| <tt>id</tt>
Line 547: Line 1,628:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>properties</tt>
 
| <tt>properties</tt>
Line 558: Line 1,643:
  
 
=== Argument Values ===
 
=== Argument Values ===
 +
 +
==== properties ====
 +
To receive available profile properties create a profile of the desired type via MailStore Client and use the GetProfiles method to receive supported value. ''Id'' and ''Version'' attributes must not be set.
  
 
== SetComplianceConfiguration ==
 
== SetComplianceConfiguration ==
Line 567: Line 1,655:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>config</tt>
 
| <tt>config</tt>
Line 586: Line 1,678:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>config</tt>
 
| <tt>config</tt>
Line 596: Line 1,692:
 
==== config ====
 
==== config ====
 
Use GetDirectoryServicesConfiguration to receive supported value.
 
Use GetDirectoryServicesConfiguration to receive supported value.
 
== SetStoreProperties ==
 
Set properties of archive store.
 
 
=== Arguments ===
 
{| class="wikitable"
 
! width=150px | Name
 
! width=120px | Type
 
! Description
 
|-
 
| <tt>id</tt>
 
| number
 
| Set properties of archive store.
 
|-
 
| <tt>type</tt>
 
| string (optional)
 
|
 
|-
 
| <tt>databaseName</tt>
 
| string (optional)
 
| Name of database on Microsoft SQL Server or PostgreSQL server.
 
|-
 
| <tt>databasePath</tt>
 
| string (optional)
 
| Path to directory in which database folder information and email meta data are stored.
 
|-
 
| <tt>contentPath</tt>
 
| string (optional)
 
| Path to directory in which email headers and contents are stored.
 
|-
 
| <tt>indexPath</tt>
 
| string (optional)
 
| Path to directory in which full text search indexes are stored.
 
|-
 
| <tt>serverName</tt>
 
| string (optional)
 
| Name of Microsoft SQL Server or PostgreSQL server.
 
|-
 
| <tt>userName</tt>
 
| string (optional)
 
| User name for accessing Microsoft SQL Server or PostgreSQL server.
 
|-
 
| <tt>password</tt>
 
| string (optional)
 
| Password for accessing Microsoft SQL Server or PostgreSQL server.
 
|}
 
 
=== Argument Values ===
 
 
== SetStoreRequestedState ==
 
Set state of archive store.
 
 
=== Arguments ===
 
{| class="wikitable"
 
! width=150px | Name
 
! width=120px | Type
 
! Description
 
|-
 
| <tt>id</tt>
 
| number
 
| Unique ID of archvie store.
 
|-
 
| <tt>requestedState</tt>
 
| string (optional)
 
| State of archive store after attaching.
 
|}
 
 
=== Argument Values ===
 
 
==== requestedState ====
 
{| class="wikitable"
 
! width=270px | Name
 
! Description
 
|-
 
| <tt>current</tt>
 
| Same as Normal but new messages will be archived in the archive store that is set to Current.
 
|-
 
| <tt>normal</tt>
 
| The content of archives store is available to users and can be modified if the user has the appropriate permission.
 
|-
 
| <tt>writeProtected</tt>
 
| The content of write protected archive stores is available to users, but cannot be modified (e.g. delete or move messages, rename or move folders)
 
|-
 
| <tt>disabled</tt>
 
| Disabled archive stores are not in use but the instance still knows about their existence. Therefore the content is not available to users.
 
|}
 
  
 
== SetUserAuthentication ==
 
== SetUserAuthentication ==
Line 691: Line 1,701:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 709: Line 1,723:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 727: Line 1,745:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 745: Line 1,767:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 763: Line 1,789:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 781: Line 1,811:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 799: Line 1,833:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 817: Line 1,855:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>userName</tt>
 
| <tt>userName</tt>
Line 839: Line 1,881:
 
! width=120px | Type
 
! width=120px | Type
 
! Description
 
! Description
 +
|-
 +
| <tt>instanceID</tt>
 +
| string
 +
| Unique ID of MailStore instance in which this command is invoked.
 
|-
 
|-
 
| <tt>dryRun</tt>
 
| <tt>dryRun</tt>
 
| bool (optional)
 
| bool (optional)
 
| Simulate sync only.
 
| Simulate sync only.
|}
 
 
== UpgradeStore ==
 
Upgrade archive store from MailStore Server 5 or older to current format.
 
 
=== Arguments ===
 
{| class="wikitable"
 
! width=150px | Name
 
! width=120px | Type
 
! Description
 
|-
 
| <tt>id</tt>
 
| number
 
| Unique ID of archive store.
 
|}
 
 
== VerifyStore ==
 
Verify archive stores consistency.
 
 
=== Arguments ===
 
{| class="wikitable"
 
! width=150px | Name
 
! width=120px | Type
 
! Description
 
|-
 
| <tt>id</tt>
 
| number
 
| Unique ID of archive store.
 
 
|}
 
|}

Revision as of 13:55, 2 April 2015


AttachStore

Attach existing archive store.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
name string Meaningful name of archive store.
path string Path of directory containing archive store data.
requestedState string (optional) State of archive store after attaching.

Argument Values

requestedState

Name Description
current Same as Normal but new messages will be archived in the archive store that is set to Current.
normal The content of archives store is available to users and can be modified if the user has the appropriate permission.
writeProtected The content of write protected archive stores is available to users, but cannot be modified (e.g. delete or move messages, rename or move folders)
disabled Disabled archive stores are not in use but the instance still knows about their existence. Therefore the content is not available to users.

CompactStore

Compact archive store.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id number Unique ID of archive store

CreateClientAccessServer

Register new client access server.

Arguments

Name Type Description
config json Configuration of new Client Access Server.

Argument Values

config

{
  "serverName" : string,
  "port" : number,
  "serverCertificate" : {
    "thumbprint" : string
  }
}

CreateClientOneTimeUrlForArchiveAdmin

Create URL including OTP for $archiveadmin access.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
instanceUrl string (optional) Base URL for accessing instance.

CreateDirectoryOnInstanceHost

Create a directory on an Instance Host

Arguments

Name Type Description
serverName string Name of Instance Host.
path string Path of directory to create.

CreateInstance

Create new MailStore instance.

Arguments

Name Type Description
config json Configuration of new instance.

Argument Values

config

{
  "instanceID" : string,
  "alias" : string,
  "displayName" : string,
  "instanceHost" : string,
  "startMode" : string,
  "baseDirectory" : string,
  "debugLogEnabled" : bool,
  "vssWriterEnabled" : bool
}

CreateInstanceHost

Create a new Instance Host.

Arguments

Name Type Description
config json Configuration of new Instance Host.

Argument Values

config

{
  "serverName" : string,
  "port" : number,
  "serverCertificate" : {
    "thumbprint" : string
  }
}

CreateLicenseRequest

Create and return data of a license request.

CreateStore

Create and attach a new archive store.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
name string Meaningful name of archive store.
path string Path of directory containing archive store data.
requestedState string (optional) State of archive store after attaching.

Argument Values

requestedState

Name Description
current Same as Normal but new messages will be archived in the archive store that is set to Current.
normal The content of archives store is available to users and can be modified if the user has the appropriate permission.
writeProtected The content of write protected archive stores is available to users, but cannot be modified (e.g. delete or move messages, rename or move folders)
disabled Disabled archive stores are not in use but the instance still knows about their existence. Therefore the content is not available to users.

CreateSystemAdministrator

Create a new SPE system administrator.

Arguments

Name Type Description
config json Configuration of new SPE system administrator.
password string Password of new SPE system administrator.

Argument Values

config

{
  "userName" : string,
  "fullName" : string
}

DeleteClientAccessServer

Delete Client Access Server from management database.

Arguments

Name Type Description
serverName string Name of Client Access Server.

DeleteInstanceHost

Delete Instance Host from management database.

Arguments

Name Type Description
serverName string Name of Instance Host.

DeleteInstances

Delete one or multiple MailStore Instances

Arguments

Name Type Description
instanceFilter string Instance filter string.

Argument Values

instanceFilter

Name Description
* All instances
instance01 instance02 instance03 instance01, instance02 and instance03
*instancehost01 *instancehost02 All instances on instancehost1 and instancehost2
* .running All running instances
* .stopped All stopped instances

DeleteSystemAdministrator

Delete SPE system administrator.

Arguments

Name Type Description
userName string User name of SPE system administrator.

DetachStore

Detach archive store

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id number Unique ID of archive store.

FreezeInstances

Freeze a MailStore Instance

Arguments

Name Type Description
instanceFilter string Instance filter string.

Argument Values

instanceFilter

Name Description
* All instances
instance01 instance02 instance03 instance01, instance02 and instance03
*instancehost01 *instancehost02 All instances on instancehost1 and instancehost2
* .running All running instances
* .stopped All stopped instances

GetArchiveAdminEnabled

Get currrent state of archive admin access.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetClientAccessServers

Get list of Client Access Servers.

Arguments

Name Type Description
serverNameFilter string (optional) Server name filter string.
withServiceStatus bool Include service status or not.

Argument Values

serverNameFilter

Name Description
null All servers
serverName Only the given serverName. Must match exactly.

GetDirectoriesOnInstanceHost

Get file system directory structure from Instance Host.

Arguments

Name Type Description
serverName string Name of Instance Host.
path string (optional) Path of directory to obtain subdirectories from.

GetEnvironmentInfo

Return general information about SPE environment.

GetIndexConfiguration

Get list of attachment file types to index.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetInstanceConfiguration

Get configuration of MailStore Instance.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetInstanceHosts

Get list of Instance Hosts.

Arguments

Name Type Description
serverNameFilter string (optional) Server name filter string.

Argument Values

serverNameFilter

Name Description
null All servers
serverName Only the given serverName. Must match exactly.

GetInstanceProcessLiveStatistics

Get live statistics from instance process.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetInstances

Get list of instances.

Arguments

Name Type Description
instanceFilter string Instance filter string.

Argument Values

instanceFilter

Name Description
* All instances
instance01 instance02 instance03 instance01, instance02 and instance03
*instancehost01 *instancehost02 All instances on instancehost1 and instancehost2
* .running All running instances
* .stopped All stopped instances

GetInstanceStatistics

Get archive statistics from instance.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetServiceStatus

Get current status of all SPE services.

GetStoreAutoCreateConfiguration

Get automatic archive store creation settings.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetStores

Get list of archive stores.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetSystemAdministrators

Get list of system administrators.

MaintainFileSystemDatabases

Execute maintenance task on archive store databases.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

MergeStore

Merge two archive stores.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id number Unique ID of destination archive store.
sourceId number Unique ID of source archive store.

PairWithManagementServer

Pair server role with Management Server.

Arguments

Name Type Description
serverType string Type of server role.
serverName string Name of server that hosts 'serverType' role.
port number TCP port on which 'serverType' role on 'serverName' accepts connections.
thumbprint string Thumbprint of SSL certificate used by serverType' role on 'serverName'

Argument Values

serverType

Name Description
instanceHost Pairing an Instance Host.
clientAccessServer Pairing a Client Access Server.

Ping

Send a keep alive packet.

RebuildSelectedStoreIndexes

Rebuild search indexes of selected archive stores.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

RefreshAllStoreStatistics

Refresh archive store statistics.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

RenameStore

Rename archvive store

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id number Unique ID of archive store.
name string New name of archive store.

RestartInstances

Restart one or multiple instances.

Arguments

Name Type Description
instanceFilter string Instance filter string.

Argument Values

instanceFilter

Name Description
* All instances
instance01 instance02 instance03 instance01, instance02 and instance03
*instancehost01 *instancehost02 All instances on instancehost1 and instancehost2
* .running All running instances
* .stopped All stopped instances

RetryOpenStores

Retry opening stores that failed previously

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

SelectAllStoreIndexesForRebuild

Select all archive store for rebuild.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

SetArchiveAdminEnabled

Enable or disable archive admin access.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
enabled bool Enable or disable flag.

SetClientAccessServerConfiguration

Set the configuration of a Client Access Server.

Arguments

Name Type Description
config json Client Access Server configuration.

Argument Values

config

{
  "serverName" : string,
  "port" : number,
  "serverCertificate" : {
    "thumbprint" : string
  }
}

SetIndexConfiguration

Set full text search index configuration.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
config json Full text search index configuration.

Argument Values

config

Use GetIndexConfiguration to reveive supported value.

SetInstanceConfiguration

Set configuration of MailStore Instance.

Arguments

Name Type Description
config json Instance configuration.

Argument Values

config

{
  "instanceID" : string,
  "alias" : string,
  "displayName" : string,
  "instanceHost" : string,
  "startMode" : string,
  "baseDirectory" : string,
  "debugLogEnabled" : bool,
  "vssWriterEnabled" : bool
}

SetInstanceHostConfiguration

Set configuration of Instance Host.

Arguments

Name Type Description
config json Instance Host configuration.

Argument Values

config

{
  "serverName" : string,
  "port" : number,
  "serverCertificate" : {
    "thumbprint" : string
  },
  "baseDirectory" : string
}

SetStoreAutoCreateConfiguration

Set configuration for automatic archive store creation.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
config json Archive store automatic creation configuration.

Argument Values

config

{
  "enabled" : bool,
  "interval" : string,
  "sizeThreshold" : string,
  "numberOfMessagesThreshold" : number,
  "baseDirectory" : string
}

SetStorePath

Set the path to archive store data.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id number Unique ID of archive store.
path string Path to archvie store data.

SetStoreRequestedState

Set state of archive store.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id number Unique ID of archive store.
requestedState string State of archive store.

Argument Values

requestedState

Name Description
current Same as Normal but new messages will be archived in the archive store that is set to Current.
normal The content of archives store is available to users and can be modified if the user has the appropriate permission.
writeProtected The content of write protected archive stores is available to users, but cannot be modified (e.g. delete or move messages, rename or move folders)
disabled Disabled archive stores are not in use but the instance still knows about their existence. Therefore the content is not available to users.

SetSystemAdministratorConfiguration

Set SPE system adminstrator configuration.

Arguments

Name Type Description
config json SPE system adminstrator configuration.

Argument Values

config

{
  "fullName" : string
}

SetSystemAdministratorPassword

Set password for SPE system administrator.

Arguments

Name Type Description
userName string User name of SPE system administrator.
password string New password for SPE system administrator.

StartInstances

Start one or multiple MailStore Instances.

Arguments

Name Type Description
instanceFilter string Instance filter string.

Argument Values

instanceFilter

Name Description
* All instances
instance01 instance02 instance03 instance01, instance02 and instance03
*instancehost01 *instancehost02 All instances on instancehost1 and instancehost2
* .running All running instances
* .stopped All stopped instances

StopInstances

Stop one or multiple MailStore Instances.

Arguments

Name Type Description
instanceFilter string Instance filter string.

Argument Values

instanceFilter

Name Description
* All instances
instance01 instance02 instance03 instance01, instance02 and instance03
*instancehost01 *instancehost02 All instances on instancehost1 and instancehost2
* .running All running instances
* .stopped All stopped instances

ThawInstances

Thaw one or multiple MailStore Instances.

Arguments

Name Type Description
instanceFilter string Instance filter string.

Argument Values

instanceFilter

Name Description
* All instances
instance01 instance02 instance03 instance01, instance02 and instance03
*instancehost01 *instancehost02 All instances on instancehost1 and instancehost2
* .running All running instances
* .stopped All stopped instances

UpgradeStore

Upgrade archive store from MailStore Server 5 or older to current format.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id number Unique ID of archive store.

VerifyStore

Verify archive stores consistency.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id number Unique ID of archive store.

ClearUserPrivilegesOnFolders

Removes all privileges of a user on all archive folders.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user.

CreateProfile

Create a new archiving or exporting profile.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
properties json Profile properties.
raw bool Currently only 'true' is supported.

Argument Values

properties

To receive available profile properties create a profile of the desired type via MailStore Client and use the GetProfiles method to receive supported value. Id and Version attributes must not be set.

CreateUser

Create new MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of new MailStore user.
privileges string Comma separated list of privileges.
fullName string (optional) Full name of user.
distinguishedName string (optional) LDAP DN string.
authentication string (optional) Authentication setting for user: 'integrated' or 'directoryServices'.
password string (optional) Password of new user.

DeleteEmptyFolders

Remove folders from folder tree that do not contain emails.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
folder string (optional) Entry point in folder tree.

DeleteMessage

Delete a single message

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id string (optional) Unique ID of message. Format: <store_id>:<message_num>

DeleteProfile

Delete an archiving or exporting profile.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id number Unique ID of profile.

DeleteUser

Delete a MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user.

GetChildFolders

Get child folders.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
folder string (optional) Parent folder.
maxLevels number (optional) Depth of child folders.

GetComplianceConfiguration

Get current compliance configuration settings.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetDirectoryServicesConfiguration

Get current Directory Services configuration settings.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetFolderStatistics

Get folder statistics.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetMessages

Get list of messages from a folder.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
folder string (optional) Folder whose content to list.

GetProfiles

Get list of archiving and exporting profiles.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
raw bool Currently only 'true' is supported.

GetTimeZones

Get list of available time zones.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetUserInfo

Get detailed information about user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user

GetUsers

Get list of users.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.

GetWorkerResults

Get results of profile executions.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
fromIncluding string Beginning of time range to fetch.
toExcluding string End of time range to fetch.
timeZoneID string Time zone in which timestamp should be returned.
profileID number (optional) Filter results by given profile ID.
userName string (optional) Filter results by given user name.

MoveFolder

Move folder.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
fromFolder string Old folder name.
toFolder string New folder name.

RenameUser

Rename a MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
oldUserName string Old user name.
newUserName string New user name.

RunProfile

Run an existing archiving or exporting profile.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
id number Unique profile ID.

RunTemporaryProfile

Run a temporary/non-existent profile.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
properties json Profile properties.
raw bool Currently only 'true' is supported.

Argument Values

properties

To receive available profile properties create a profile of the desired type via MailStore Client and use the GetProfiles method to receive supported value. Id and Version attributes must not be set.

SetComplianceConfiguration

Set compliance configuration settings.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
config json Compliance configuration.

Argument Values

config

Use GetComplianceConfiguration to receive supported value.

SetDirectoryServicesConfiguration

Set directory services configuration settings.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
config json Directory services configuration.

Argument Values

config

Use GetDirectoryServicesConfiguration to receive supported value.

SetUserAuthentication

Set authentication settings of a MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user.
authentication string Authentication method. Either 'integrated' or 'directoryServices'.

SetUserDistinguishedName

Set the LDAP distinguished name of a MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user.
distinguishedName string (optional) LDAP DN string.

SetUserEmailAddresses

Set email addresses of MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user.
emailAddresses string (optional) List of email addresses.

SetUserFullName

Set full name of MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user.
fullName string (optional) Full name of MailStore user.

SetUserPassword

Set password of MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user.
password string Password of MailStore user.

SetUserPop3UserNames

Set POP3 user name of MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user.
pop3UserNames string (optional) Comma seperated list of POP3 user names.

SetUserPrivileges

Set privileges of MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user.
privileges string Comma separated list of privileges.

SetUserPrivilegesOnFolder

Set privileges on folder for MailStore user.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
userName string User name of MailStore user.
folder string Folder name.
privileges string Comma separated list of folder privileges.

SyncUsersWithDirectoryServices

Sync users of MailStore instance with directory services.

Arguments

Name Type Description
instanceID string Unique ID of MailStore instance in which this command is invoked.
dryRun bool (optional) Simulate sync only.