pem.exchange.addMailboxWithTemplate
This method is supported by Operations starting from version 2.9
This method creates an Exchange Mailbox on the basis of a specified Mailbox Template.
There are the following use-cases of the method:
- Create a Mailbox and assign the Mailbox to an existing Service User. In this case the
user_id
parameter should be specified. Thenew_user
parameter should not be specified. - Create a Service User, create a Mailbox, and then assign the Mailbox to the created Service User. In this case the
new_user
parameter should be specified. Theuser_id
parameter should not be specified.
The method has the following input parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
ID of the existing Service User to which the Mailbox is assigned. Notes: |
|
struct |
It defines properties of the new Service User. Note: The |
|
int |
ID of the Subscription. Notes: |
|
string |
Login of the Service User. Note: If a Service User with the specified login already exists, Operations will try to assign the Mailbox to the existing Service User. |
|
string |
Password of the Service User. If the parameter is not specified, a password is generated by Operations. |
|
string |
Display Name of the Service User. If the parameter is not specified, the value of the |
|
string |
The name of the Mailbox Template. |
|
string |
It defines the alias of the Mailbox. |
|
string |
It defines the primary e-mail address of the Mailbox. This address appears in the "From:" and "Reply-To:" fields of e-mail messages sent from the Mailbox. |
|
array of string |
It defines the list of additional e-mail addresses of the Mailbox. These e-mail addresses should be based on domains, which belong to the Customer's Subscription. |
|
boolean |
Whether to skip mailbox initialization (initialization means setting up the locale and creating the folders hierarchy for the Mailbox). If the parameter is omitted, the 0 value is used. |
The method has the following output parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
Mailbox ID. |
Notes:
1. This method can also be called under Reseller permissions.
2. Service User ID is not displayed in Operations control panel. You may use the pem.getUserByLogin or pem.getUsers methods to obtain the ID of the required Service User. Also, you may use the Operations Public API methods, which contain Service User ID(s) in the list of the output parameters.