Expand operators are command-line utilities that perform operations on resources provided by the Expand API. The operators can be used to integrate Expand with third-party software and to automate management of Expand. This chapter describes functionality assigned to each operator and provides instructions on how to use it.
To perform a certain operation, do the following:
For the application scope of operators, refer to the tables below.
# /usr/local/psa/bin/<utility name> [operation data]
Here, [operation data] stands for details of operations to be performed. These details are passed as a request packet or a request statement. For instructions on how to form them, refer to the How to Use This Reference section.
Note: A client can run an operator from remote by issuing a specific HTTP message to Expand endpoint. For details on how to do it, refer to the Using External Endpoint to Invoke Operations section of the Expand API Developer Guide.
Upon successful execution, operator returns the 0 code. If an error occurs, an operator returns code 1 and writes the description of the encountered problem to stderr.
The following tables outline operations supported by each operator.
Operations on Plesk objects
Operator |
Full Name |
Scope |
|
Managing and scheduling backups of Plesk clients, domains, and servers. |
|
|
Creating/Removing Plesk client accounts, updating client account settings, adding/removing IP addresses to/from clients' IP pools. |
|
|
Retrieving information on limits, permissions and physical hosting services for any Plesk version and any supported operating system. |
|
|
Configuring DNS zones for domains registered in Expand. |
|
|
Creating/Removing domains, managing domain settings. |
|
|
Creating/Removing domain aliases and setting web services for them. |
|
|
Creating/Removing server groups, managing group settings (renaming groups, move servers from one group to another). |
|
|
Creating/Removing IP ranges, reserving IP addresses for Plesk clients, assigning IP addresses to domains, adding/removing exclusions to/from IP ranges. |
|
|
Registering Plesk servers in Expand, and controlling resources of all registered Plesk servers on the centralized basis. |
|
|
Retrieving/Updating sessions list, terminating sessions. |
|
|
Retrieving list of application packages installed on Plesk nodes registered in Expand. Adding/removing packages to/from a client's pool. |
|
|
Creating client templates, retrieving information on them, updating list of available client templates. |
|
|
Creating domain templates, retrieving information on them, updating list of available domain templates. |
Operations on Expand objects
Operator |
Full Name |
Scope |
|
Managing Expand users, viewing and configuring action log, updating system variables, managing custom buttons, and adjusting GUI configuration. |
|
|
Expand Event Handlers and Event Classes |
Configuring event classes and their handlers. |
|
Updating Expand license, rolling back to the previous license. |
|
|
Verifying data provided by Expand or Plesk users, and retrieving users' personal data. |
|
|
Registering, configuring and removing database servers. Assign/Unlink Plesk nodes to/from database servers. |
|
|
Adding, configuring and removing central DNS servers. Managing DNS services on DNS serves. |
|
|
Synchronizing central DNS zones and ACLs, ignoring/unignoring central DNS zones and ACEs, Resolve conflicts of DNS zones and DNS recursions. |
|
|
Registering and administering Central Help Desk server in Expand. |
|
|
Adding, configuring and removing central mail servers; assigning/Unlinking Plesk nodes to/from central mail server; migrate mail content from a Plesk mail server to a central mail server, etc. |
|
|
Migrating Plesk client and domain data from one to another Plesk node registered in Expand. |
|
|
Creating/Removing Expand client accounts, updating client account settings, adding/removing IP addresses to/from clients' IP pools, transforming a Plesk client account to Expand client account. |
|
|
Creating Expand client templates, updating/retrieving their settings, removing client templates. |
|
|
Creating Expand domain templates, updating/retrieving their settings, removing domain templates. |
Operations on Virtuozzo objects
Operator |
Full Name |
Scope |
|
Registering/Unlinking Virtuozzo Hardware Node (VHN) in/from Expand, updating VHN settings. |