pem.addDomain
This method is supported by Operations starting from version 2.3.
This method creates a domain and adds all the available in Subscription hosting modules to the Domain created. Subscription should not contain conflicting hosting modules simultaneously, like QMail and Exchange.
Additionally, there is an ability to control which hosting modules to add to the Domain from the Subscription. Every Resource Type, which corresponds to the certain hosting, has the Auto host domains Activation Parameter. If this parameter has the Yes value, hosting will be added to the Domain during the call of method. If this parameter has the No value, hosting will not be added to the Domain during the call of method. This Activation Parameter controls the provisioning of the following hosting modules:
- Domain Parking Hosting (Apache)
- Exchange Hosting
- Apache Web Hosting
- CQMail Hosting
The method has the following input parameters:
Name |
Type |
Short Description |
---|---|---|
|
int |
ID of Subscription. |
|
int |
ID of Domain to create. This parameter is optional. |
|
string |
Name of Domain to create. |
|
int |
Initial registrar status for Domain. It can take the following values:
This parameter is optional. If it is omitted, then the value of the Domain registrar status default value System Property is used to set the registrar status for Domain. |
|
int |
Hosting type for new Domain. This parameter is optional. It can take the following values:
There are the following use cases:
|
|
int |
Type of domain parking. This parameter can be issued only if
If this parameter is omitted and |
|
string |
Path or URL to redirect. Parameter meaning depends on the hosting type:
|
|
boolean |
This parameter defines a type of DNS Hosting for domain. If parameter is specified and its value is set to 1 (true), Operations creates a domain having the external DNS Hosting type. |
|
boolean |
This parameter defines Domain creating mode. There are the following possible values:
|
The method has the following output parameter.
Name |
Type |
Short Description |
---|---|---|
|
int |
ID of Domain created. |
For XML-RPC sample of using this method see pem.addDomain Sample in the XML-RPC Samples Appendix.