Command Line Interface (API) |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|
As soon as a PWD user is authenticated, the CLI commands are accepted. For each CLI command the server checks the access rights of the authenticated user.
If a command produces some data, the data is sent after the protocol line with the positive response. The CR-LF combination is sent after the data.
Here is a sample PWD session with CLI commands:
Note: These Dictionary format syntax rules allow you to specify a string without the quotation marks if the string contains alphanumerical symbols only. You should use the quotation marks if a string contains the dot (.), comma (,), and other non-alphanumerical symbols.
In spite of the fact that the Dictionary format is multi-line, all arrays and dictionaries you specify as CLI parameters should be stored on one command line.
If a CLI command produces some output in the array or dictionary format, the output data can be presented on several lines.
This command can be used by a domain administrator only if the domain administrator has the CanCreateAccounts access right.
This command can be used by a domain administrator only if the domain administrator has the CanCreateAccounts access right.
Note: All users can send the GetAccount command for their own accounts.
If this command is used by a domain administrator, it will update only those account settings that the domain administrator is allowed to modify.
Note: All users can send the GetAccountEffectiveSettings command for their own accounts.
To use this command, the user should have the "Basic Settings" Domain Administration right for the target account domain.
To use this command, the user should have any Domain Administration right for the target account domain.
This command can be used by a domain administrator only if the domain administrator has the CanCreateAliases access right.
This command can be used by a domain administrator only if the domain administrator has the RulesAllowed access right.
This command can be used by a domain administrator only if the domain administrator has the CanModifyRPOP access right.
Note: All users can use the GetAccountInfo command to retrieve elements from their own account "info" data.
Note: All users can use the GetWebUser command to retrieve their own WebUser settings.
This command can be used by a domain administrator only if the domain administrator has the WebUserSettings access right.
Note: All users can use the GetEffectiveWebUser command to retrieve their own effective WebUser settings.
This command can be used by a domain administrator only if the domain administrator has the CanCreateGroups access right.
This command can be used by a domain administrator only if the domain administrator has the CanCreateGroups access right.
This command can be used by a domain administrator only if the domain administrator has the CanCreateGroups access right.
This command can be used by a domain administrator only if the domain administrator has the CanCreateForwarders access right.
This command can be used by a domain administrator only if the domain administrator has the CanCreateForwarders access right.
If this command is used by a domain administrator, it will update only those Domain Settings that this domain administrator is allowed to modify.
If this command is used by a domain administrator, it will update only those Default Account settings that the domain administrator is allowed to modify.
This command can be used by a domain administrator only if the domain administrator has the WebUserSettings access right.
If this command is used by a domain administrator, it will update only those Template settings that the domain administrator is allowed to modify.
This command can be used by a domain administrator only if the domain administrator has the RulesAllowed access right.
This command can be used by a domain administrator only if the domain administrator has the CentralDirectory access right.
This command can be used by a domain administrator only if the domain administrator has the CentralDirectory access right.
The following commands are available for the System Administrators only:
The following commands are available for the System Administrators only:
The authenticated user should be the account owner, or should have the Can Modify All Domains and Account Settings access right or the WebSite Domain Administration access right to use the Personal File Site Administration CLI commands.
Domain Administrators can use this command if they have the CanCreateLists Domain access right.
Domain Administrators can use this command if they have the CanCreateLists Domain access right.
Domain Administrators can use this command if they have the CanCreateLists Domain access right.
The following commands can be used by the mailing list owner, by a Domain Administrator with the CanAccessLists access right, or by a Server Administrator with Accounts and Domains access right.
Sample:
A dictionary describing a subscriber has the following elements:
If the subscriber does not exist, an empty dictionary is returned. Otherwise, the dictionary contains the following elements:
The command sets the posting mode the specified subsriber. If numberOfModerated (a number) is specified, the posting mode set requires moderation of the first numberOfModerated messages from this subscriber.
Use the FATAL keyword to emulate a "fatal" bounce. Otherwise the command emulates a non-fatal bounce.
A user should have the Account Settings access right or the CanModifySkins Domain Administration access right to modify the Domain Skins.
If the DATA keyword is specified and the Skin contains a file with the same name, the old file is deleted.
The file with the specified name is removed from the Skin Cache (in the Dynamic Cluster the file is removed from Skin caches on all cluster members).
The following commands are available for the System Administrators only:
If the DATA keyword is specified and the Skin contains a file with the same name, the old file is deleted.
The file with the specified name is removed from the Skin Cache (in the Dynamic Cluster the file is removed from Skin caches on all cluster members).
The optional WML or IMode keywords can be used to emulate login via a WML or I-Mode browser.
The authenticated user should have the Can Modify All Domains and Account Settings access right or the CanCreateWebUserSessions Domain Administration access right to create WebUser Sessions.
The authenticated user should have the Can Modify All Domains and Account Settings access right or the CanCreateWebUserSessions Domain Administration access right to use this command.
The authenticated user should have the Can Modify All Domains and Account Settings access right to retrieve WebUser Session data if the domainName parameter is not specified. If the domainName is specified, the authenitcated user should have the CanCreateWebUserSessions Domain Administration access right for the specified Domain.
This operation resets the WebUser session inactivity timer.
The authenticated user should have the Can Modify All Domains and Account Settings access right to terminate a WebUser Session if the domainName parameter is not specified. If the domainName is specified, the authenitcated user should have the CanCreateWebUserSessions Domain Administration access right for the specified Domain.
A user should have the Account Settings access right or the CanModifyPBXApps Domain Administration access right to modify the Domain Real-Time Application Environment.
If the DATA keyword is specified and the environment contains a file with the specified name, the old file is deleted.
The file with the specified name is removed from the Environment cache (in the Dynamic Cluster the file is removed from all cluster members caches).
The following commands are available for the System Administrators only:
If the DATA keyword is specified and the environment contains a file with the specified name, the old file is deleted.
The file with the specified name is removed from the Environment cache (in the Dynamic Cluster the file is removed from all cluster members caches).
A user should have the Server Settings access right or the Account Settings access right to use the following CLI commands.
This command produces an output - an array of three strings:
This command produces an output - a string with the server state element value.
The Account-Level Statistics data is collected if the Account Statistics option is enabled on the Obscure page in the Settings realm of the CommuniGate Pro WebAdmin Interface.
This command produces an output - a string with the specified statistical information, or (if the KEY keyword and the keyName parameter are not specified) a dictionary with all available statistical data.
If the statistical data for the specified key does not exist, an empty string is returned.
To use this command, the user should have the Domain Administration right for the target account domain. All users can retrieve the Account statistics data for their own accounts.
If the KEY keyword and the keyName parameter are not specified, all Account statistical entries are reset.
To use this command, the user should have the "Basic Settings" Domain Administration right for the target account domain.
The following Account statistics data keys are implemented:
|
This command produces an output - a string with the specified statistical information, or (if the KEY keyword and the keyName parameter are not specified) a dictionary with all available statistical data.
To use this command, the user should have the Domain Administration right for the target Domain.
If the KEY keyword and the keyName parameter are not specified, all Domain statistical entries are reset.
To use this command, the user should have the "Basic Settings" Domain Administration right for the target Domain.
The following Domain statistics data keys are implemented:
|
Log records generated with this command have the SYSTEM prefix.
To use this command, the user should have the "Can Monitor" Server Administration right.
In a Dynamic Cluster environment, this command releases the specified SMTP queue on all servers.
To use this command, the user should have the "Can Monitor" Server Administration right.
To use this command, the user should have the "Can Reject Queues" Server Administration right.
This command produces an output - a string with the Cluster Controller IP Address.
To use this command, the user should have the "Can Monitor" Server Administration right.
To use this command, the user should have the "Can Monitor" Server Administration right.
To use this command, the user should have the "Can Monitor" Server Administration right.
To use this command on other user subsets, the user should have the Domain Administration right.