Parallels Business Automation Standard - 4.2 User Manual

Page 1
Parallels
Parallels Business Automation Standard
Software Development Kit
Release 4.2. Revision 1.0
(c) 1999-2012
Page 2
Copyright Notice
Parallels IP Holdings, GmbH. c/o Parallels International GMbH. Parallels International GmbH Vordergasse 49 CH - 8200 Schaffhausen Switzerland Tel: + 49 (6151) 42996 - 0 Fax: + 49 (6151) 42996 - 255
Copyright © 1999-2012 Parallels IP Holdings GmbH. and its affiliates. All rights reserved. This product is protected by United States and international copyright laws. The product's underlying technology, patents, and trademarks are listed at http://www.parallels.com/trademarks Microsoft, Windows, Windows Server, Windows NT, Windows Vista, and MS-DOS are registered trademarks of Microsoft Corporation. Linux is a registered trademark of Linus Torvalds. Mac is a registered trademark of Apple, Inc. All other marks and names mentioned herein may be trademarks of their respective owners.
Page 3

Changes History

Date Revision Changes Description
June 19, 1012 1.0 CP Customization methods updated according to PBAS v.4.2.
Page 4
Contents
Changes History 3
Preface 9
Typographi cal Convent i ons .......................................................................................................................... 9
Feedback ..................................................................................................................................................... 10
Shell Prompts in Command Examples........................................................................................................ 10
General Conventions................................................................................................................................... 11
XML API 12
Introduction to Parallels Busin e ss Automation - Standard XML API ........................................................ 13
HSPC/API ................................................................................................................................................... 18
session_open .................................................................................................................................... 18
session_close ................................................................................................................................... 19
HSPC/API/HP............................................................................................................................................. 20
check_app_compat .......................................................................................................................... 20
check_license_compat ..................................................................................................................... 21
get_categorized_plan_list ................................................................................................................ 22
get_extended_plan_info ................................................................................................................... 23
Example of EXTENDED_HP_INFO Hash .......................................................................... 24
get_full_extended_plan_info ........................................................................................................... 31
get_plan_promotion_list .................................................................................................................. 32
get_promotion.................................................................................................................................. 32
get_sellable_plan_list ...................................................................................................................... 33
validate_plesk_login ........................................................................................................................ 34
HSPC/API/Billing ....................................................................................................................................... 35
calculate_order ................................................................................................................................ 35
Examples of ORD ER Hash .................................................................................................. 39
get_hosting_target_list..................................................................................................................... 49
place_order ...................................................................................................................................... 50
create_offline_payment ................................................................................................................... 56
Example of Test Code for create_offline_payment Function ............................................... 57
get_order_details ............................................................................................................................. 58
get_extended_attr_list ...................................................................................................................... 58
get_account_subscr .......................................................................................................................... 59
subscr_auth ...................................................................................................................................... 59
get_subscr_info ................................................................................................................................ 60
Example of get_subscr_info Returned Values ..................................................................... 64
create_custom_invoice .................................................................................................................... 97
get_account_campaigns ................................................................................................................... 98
HSPC/API/Account .................................................................................................................................... 99
create_customer ............................................................................................................................... 99
create_domain_contact .................................................................................................................. 101
create_reseller ................................................................................................................................ 102
get_account_info ........................................................................................................................... 103
Example of ACCOUNT_INFO Hash ................................................................................. 104
get_domain_contact_list ................................................................................................................ 106
get_reseller_terms .......................................................................................................................... 106
Page 5
validate_password ......................................................................................................................... 106
get_extended_attr_list .................................................................................................................... 107
get_person_list ............................................................................................................................... 108
HSPC/API/Person ..................................................................................................................................... 110
auth_person.................................................................................................................................... 110
get_person_info ............................................................................................................................. 113
HSPC/API/Domain ................................................................................................................................... 114
check_domain_list ......................................................................................................................... 114
check_domain_name_syntax ......................................................................................................... 115
get_domain_list ............................................................................................................................. 115
validate_ns_list .............................................................................................................................. 116
save_contact .................................................................................................................................. 117
validate_domain_data .................................................................................................................... 118
HSPC/API/Mailer ..................................................................................................................................... 119
send ................................................................................................................................................ 119
HSPC/API/PP ........................................................................................................................................... 120
get_saved_paymethod_list ............................................................................................................. 120
get_plugin_list ............................................................................................................................... 121
get_layout_hash ............................................................................................................................. 121
get_redirect_hash ........................................................................................................................... 122
pay ................................................................................................................................................. 123
get_status ....................................................................................................................................... 124
HSPC/API/Fraud ...................................................................................................................................... 124
get_warning_newpaymethod ......................................................................................................... 124
get_resume_newpaymethod .......................................................................................................... 125
get_safe_description ...................................................................................................................... 125
HSPC/API/Config ..................................................................................................................................... 126
get_provider_config....................................................................................................................... 126
HSPC/API/Campaign ............................................................................................................................... 130
get_campaign ................................................................................................................................. 130
get_account_campaigns ................................................................................................................. 131
HSPC/API/SSL ......................................................................................................................................... 131
get_cert_form ................................................................................................................................ 131
validate_cert_form ......................................................................................................................... 132
get_parsed_csr_data....................................................................................................................... 133
Online Store Customization and Integration 134
Integrating Store With Existing W e bsite .................................................................................................. 137
Customizing Default Store Installa tion ..................................................................................................... 138
Simple Customization of Default Stor e Installation ...................................................................... 139
Advanced Customization of De fau lt Store Installation ................................................................. 140
Selecting Store Files Customizable via Web Interface .................................................................. 141
Manual Store Installation on Re mote Server ............................................................................................ 143
Customizing Store Localization ................................................................................................................ 145
User Interface Customization 148
Screens Customization Overview ............................................................................................................. 148
Template Based Customization ................................................................................................................ 153
Customizing Vendor Control Ce nt er (PCC/RCC) .................................................................................... 153
Components Repository ................................................................................................................ 153
Components Repository Structure and Files ...................................................................... 154
The filter Function Sample ................................................................................................. 155
New Component Sample .................................................................................................... 156
Screen Aliases Based Customi z a tion in Control Centers .............................................................. 160
Control Center Screen Customization Module Sample ...................................................... 162
Customizing Customer Control Panel....................................................................................................... 162
Control Panel Screen Structure ...................................................................................................... 162
Page 6
Control Panel Top Frame and Tabs Customization ....................................................................... 166
Customizing Main Frame .............................................................................................................. 167
Customizing Control Panel Dashboa rd.......................................................................................... 169
Control Panel Dashboard Customization Module Location ............................................... 169
Control Panel Screens Customization Using Screen IDs .............................................................. 180
Customization API Methods .............................................................................................. 181
Discovering Screen ID and the Name of Screen Element to Customize ............................ 183
Customizing a Single Screen Form .................................................................................... 185
Customizing a Group of Screens ........................................................................................ 187
Examples of Screen ID Based Customization .................................................................... 187
Customizing Help Bar in Control Panel ........................................................................................ 190
Adding New Fields to Accounts Registration Form ................................................................................. 190
Extended Attributes Objects .......................................................................................................... 191
Custom Extended Attribute Code Samples ................................................................................... 191
Extending E-Mail Notification Te mplates ................................................................................................ 194
Placeholder Creation Tools ........................................................................................................... 195
Custom Placeholders Samples ....................................................................................................... 202
Creating Placeholders for Custom Extended Attributes ................................................................ 205
Customizing Language Packs ................................................................................................................... 206
Language Pack Customization Tools ............................................................................................ 206
Language Pack Customization Sample.......................................................................................... 210
Integration with External Helpdesk 213
External Helpdesk API ............................................................................................................................. 213
Adding New Language Pack 216
Parallels Business Automation - Standard Translation Capabilities ......................................................... 217
Preparing Directories and Files for New Language Pack ......................................................................... 218
Translating Interface ................................................................................................................................. 219
Translating General Labels and Messages..................................................................................... 220
Adding a new Translation .................................................................................................. 221
Translating ToolTips for M e nu Items ............................................................................................ 224
Translating the On-Screen Hints ................................................................................................... 224
Translating Help Files ................................................................................................................... 225
Translating the Context Help Pages for Control Panel ....................................................... 225
Translating the Online Help Pages for Control Centers ..................................................... 226
Translating Printable Documentatio n ................................................................................. 226
Plug-Ins Development 227
Plug-Ins Toolkit Methods ......................................................................................................................... 228
Anti-Fraud Plug-ins .................................................................................................................................. 229
Graphical Representation .............................................................................................................. 231
Middle Tier Module....................................................................................................................... 235
Header ................................................................................................................................ 235
Profile Hash ........................................................................................................................ 236
Class Info ........................................................................................................................... 238
Check Hand ler .................................................................................................................... 239
Post-Install Method ............................................................................................................ 240
Post-Installation Configuration Script ........................................................................................... 241
Anti-Fraud Manager Val ue Structure ............................................................................................ 242
Component repository configuration files ..................................................................................... 243
Anti-Fraud Plug-In Package Structure ........................................................................................... 243
Payment Method Plug-Ins Development Tools ........................................................................................ 244
Payment Method Plug-Ins Objects ................................................................................................ 244
Middle Tier Module....................................................................................................................... 245
Web Interface Module ................................................................................................................... 246
Page 7
Payment Pl ug-Ins Development Tools ..................................................................................................... 247
Payment Pl ug-Ins Namespaces ...................................................................................................... 247
Methods and Parameters Common for all Payment Plug-Ins ........................................................ 248
Online Payment Plug-In Methods ................................................................................................. 249
Bank Transfer Plug-In Methods .................................................................................................... 257
Payment Plug-Ins Graphical Presentation ..................................................................................... 258
Creating a New Promotion Plug-In ........................................................................................................... 258
Introductory Notes About Promotion Plug-Ins .............................................................................. 259
Promotion Plug-Ins Objects and Their Naming Conventions ....................................................... 261
Web Interface Module ................................................................................................................... 262
Middle Tier Module....................................................................................................................... 263
Constants ............................................................................................................................ 266
Registeri ng a Promotion Plug-In ................................................................................................... 268
Domain Registration Plug-I n Development Tools .................................................................................... 270
Domain Plug-In Namespaces ........................................................................................................ 270
HSPC::MT::Plugin::DM Meth ods ................................................................................................. 270
Domain Lookup ................................................................................................................. 270
Operations With Domains .................................................................................................. 273
Operations With Name Servers .......................................................................................... 277
Operations With Contacts and D omain Extended Information .......................................... 279
Supporting 'W HO IS Pri vacy' Feature ................................................................................. 282
Supporting 'Lock Do main' Feature ..................................................................................... 283
Supporting Offline Operations ........................................................................................... 285
HSPC::Plugin::DM Methods ......................................................................................................... 286
Operations With Contact and Domain Extended Information............................................ 286
DM Plug-In Installat ion and Configuration ....................................................................... 290
Required Toolkit Methods ............................................................................................................. 292
Common Functions ............................................................................................................ 293
parse_template .................................................................................................................... 293
purify_fromxml_data ......................................................................................................... 293
DM Related Checking, Converting, F ormatting Functions ................................................ 294
get_domain_info................................................................................................................. 295
Creating a New DNS Plug-In ................................................................................................................... 295
Introductory Notes About DNS Plug-In ........................................................................................ 295
DNS Plug-In Objec ts and Their Naming Conventions....................................................... 296
Registeri ng a DNS Plug -In ............................................................................................................ 297
Web Interface Module ................................................................................................................... 298
form_ns() ............................................................................................................................ 299
view_ns() ............................................................................................................................ 302
save_ns() ............................................................................................................................ 304
is_reinstall_ns() .................................................................................................................. 306
Middle Tier Module....................................................................................................................... 306
install() ............................................................................................................................... 307
sync_zones() ....................................................................................................................... 308
check_is_reachable() .......................................................................................................... 309
SSL Certificate Plug-In Developmet Tools .............................................................................................. 309
SSL Certificate Plug-In Namespaces ............................................................................................. 309
Middle Tier Module....................................................................................................................... 310
Configuration Information ................................................................................................. 310
SSL Certificate Issuing ....................................................................................................... 313
Graphical Presentation Module ..................................................................................................... 318
Plug-In Configuration ........................................................................................................ 318
SSL Certificate Configuration ............................................................................................ 320
Page 8
Building New Plug-In ............................................................................................................................... 324
Tools 327
Bulk Domain Registration / Transfer ........................................................................................................ 327
Credit Card Import .................................................................................................................................... 327
Bank Accounts Import .............................................................................................................................. 328
Migration from Parallels Plesk Billing ..................................................................................................... 328
Bulk Parallels Plesk Domains / Clients Resolving ................................................................................... 328
Script Checking Domain Renewal Date Using W HOIS Information ....................................................... 328
Cleaning Tool ........................................................................................................................................... 329
DNS Synchronization Tool ....................................................................................................................... 330
Parallels Virtuozzo Containers Integration ............................................................................................... 330
Virtuozzo Templates Installing Tool ............................................................................................. 331
Tools for Act ions Execut ion over/in Container ............................................................................. 333
Using Data Import and Export Command Line Tools .............................................................................. 334
Exporting Data into XML Files ..................................................................................................... 335
Importing Billing Data in the Form of XML File .......................................................................... 341
Importing Subscriptions Using XML API ..................................................................................... 343
Examples of XML Files Used for Billing Data Import ................................................................. 344
Account Data in XML File ................................................................................................. 345
Document Data in XML File .............................................................................................. 348
Example of XML File for Traffic Classes Import ......................................................................... 351
Example of XML File for Traffic Statistics Import ....................................................................... 353
Import-Data Script ......................................................................................................................... 356
Index 359
Page 9
9
Items you must select, such as menu options, command
Titles of chapters, sections,
Used to emphasize the importance of a point, to introduce a term or to designate a command line placeholder, which is to be
The names of commands,
The license file is located in
C
HAPTER
1

Preface

In This Chapter
Typographical Conventions .................................................................................................. 9
Feedback ............................................................................................................................... 10
Shell Prompts in Command Examples .................................................................................. 10
General Conventions ............................................................................................................. 11

Typographical Conventions

Before you start using this guide, it is important to understand the documentation conventions used in it.
The following kinds of formatting in the text identify special information.
Formatting convention Type of Information Example
Special Bold
buttons, or items in a list.
and subsect ions.
Italics
replaced with a real name or value.
Monospace
files, directories, and do main names.
Go to the System tab.
Read the Basic Administration chapter.
The system supports the so called wildcard character search.
the
http://docs/common/ licenses directory.
Page 10
Preface 10
Preformatted
On-screen computer output in
other programming
# ls –al /files
Preformatted Bold
What you type, contrasted
screen computer
# cd /root/rpms/php
Names of keys on the
Key combinations for which the user must press and hold
your command-line sessions; source code in XML, C++, or
languages.
with on­output.
total 14470
CAPITALS
keyboard.
KEY+KEY
down one ke y and the n press another.
SHIFT, CTRL, ALT
CTRL+P, ALT+F4

Feedback

If you have found a mistake in this guide, or if you have suggestions or ideas on how to improve this guide, please send your feedback using the online form at http://www.parallels.com/en/support/usersdoc/. Please include in your report the guide's title, chapter and section titles, and the fragment of text in which you have found an error.

Shell Prompts in Command Examples

Command line examples throughout this guide presume that you are using the Bourne-again shell (bash). Whenever a command can be run as a regular user, we will display it with a dollar sign prompt. When a command is meant to be run as root, we will display it with a hash mark prompt:
Bourne-again shell prompt
Bourne-again shell root prompt
$
#
Page 11
Preface 11

General Conventions

Be aware of the following conventions used in this book. Chapters in this guide are divided into sections, which, in turn, are subdivided into
subsections. For example, Documentation Conventions is a section, and General Conventions is a subsection.
When following steps or using examples, be sure to type double-quotes ("), left single-
quotes (`), and right single-quotes (') exactly as shown.
The key referred to as RETURN is labeled ENTER on some keyboards. The root path usually includes the /bin, /sbin, /usr/bin and /usr/sbin directories, so
the steps in this book show the commands in these directories without absolute path names. Steps that use commands in other, less common, directories show the absolute paths in the examples.
Page 12
12
HSPC/API/SSL ..................................................................................................................... 131
C
HAPTER
2

XML API

XML API has been developed to become primary point of integration with external shopping carts, billing, and accounting systems and other third-party components.
In This Chapter
Introduction to Parallels Business Automation - Standard XML API .................................. 13
HSPC/API ............................................................................................................................. 18
HSPC/API/HP ....................................................................................................................... 20
HSPC/API/Billing ................................................................................................................. 35
HSPC/API/Account .............................................................................................................. 99
HSPC/API/Person ................................................................................................................. 110
HSPC/API/Domain ............................................................................................................... 114
HSPC/API/Mailer ................................................................................................................. 119
HSPC/API/PP........................................................................................................................ 120
HSPC/API/Fraud ................................................................................................................... 124
HSPC/API/Config ................................................................................................................. 126
HSPC/API/Campaign ............................................................................................................ 130
Page 13
XML API 13

Introduction to Parallels Business Automation - Standard XML API

Parallels Business Automation - Standard XML API Gate is based on SOAP protocol, currently maintained by World Wide Web Consortium at http://www.w3c.org and supported by most of modern programming languages as framework for messages exchange and remote method calls.
Parallels Business Automation - Standard XML API Gate is implemented as mod_perl handler and inherits from SOAP::Transport::HTTP::Apache, i.e. is based on the functionality provided by SOAP::Lite module available from CPAN. Please, refer to SOAP::Lite documentation for general information and this section provides implementation details and examples.
Module namespaces are package names with '::' included are replaced with '/' - see examples below.
Security There are two different strategies used by Parallels Business Automation - St andard XML API
Gate in defining security requirements: For requests coming from a local machine (directly to backend server without involving
frontend, i.e. originating from the same address space and using http://localhost:8080 or https://localhost:8443 as Parallels Business Automation - Standard XML API Gate proxy URL).
For requests coming from remote machines (using frontend for proxying requests to
backend).
Safe packages and methods:
local requests: all packages are considered safe and all their methods are public remote requests: only packages with namespace starting with HSPC/API are considered as
safe
Authentication and sessions handling: local requests: authentication by password is possible, but not required, authentication is
possible by account number only,
remote requests: authentication by password is required. Authentication is done with call to session_open() interface in HSPC/API (on page 18)
namespace and relies on functionality provided by Security Manager.
Interfaces in HSPC/API namespace: session_open()
Parameters: account_no, e-mail, password Performs authentication with given parameters (required for remote requests and optional
for local, except for account_no or server_name) and initializes session.
Page 14
XML API 14
If account_no is set to 0, first account which user has roles in is chosen automatically, but in this case e-mail and password must be set as well.
If server_name is passed and account_no is empty or missing, account_no is located by vendor's server name located in server_name parameter.
Returns either unique value to be used as HSPC-SID in next requests (see examples of clients) or SOAP fault envelope with error message.
session_close()
Performs cleanup of session identified by HSPC-SID header. Returns undef or SOAP fault envelope with error message.
Configuration Parallels Business Automation - Standard XML API Gate intended for requests from both
local and remote machines is pre-configured at /hspc/xml-api location. backend
/etc/hspcd/conf/hspc_xml-api.conf
<Location /hspc/xml-api> SetHandler perl-script PerlHandler HSPC::XMLAPI Order Allow,Deny Allow from all </Location>
frontend
/etc/httpd/conf/hspc_frontend.conf:
Page 15
XML API 15
<VirtualHost _default_:443> ... SSLEngine on ... <Location /hspc/xml-api> Order Deny,Allow Allow from all </VirtualHost>
<Location /hspc/xml-api> Order Deny,Allow Deny from all </Location>
Security limitation is set by explicitly allowing /hspc/xml-api location for HTTPS connections and denying for HTTP connections, so that plain text SOAP envelopes couldn't be read by intruders.
Parallels Business Automation - Standard XML API Gate could be opened at another locations as well by configuring backend and frontend server in the same way as described above, i.e. by adding more Location blocks to backend and frontend servers' configurations.
Servers Exported methods of packages providing API through Parallels Business Automation - Standard
XML API Gate should rely on the following rules: in order to be available for remote requests, a package name should start from
HSPC::API:: prefix and have its version set:
our $VERSION = 1.0;
first parameter of each call to exported method is always package name, not reference or
whatever;
$ENV{session} is valid only for requests including session ID returned by
session_open() call, i.e. could be valid for local and always valid for remote requests;
$ENV{security_obj} is valid only for requests including session ID and contains valid
account and user IDs identified by call to session_open() (on page 18);
die with error message to immediately return it in SOAP fault envelope with message as
description, using the call like this:
## return fault with: ## - error code 'ErrorCode' ## - error message die HSPC::API->fault('ErrorCode', 'Error description.');
Notes for HSPstore: If error code starts with the User prefix, its description is shown to PHP Store visitor, so it
must be localized:
die HSPC::API->fault('UserPassword', string('passwords_do_not_match'));
If error code does not start with the User prefix, its description is not shown to PHP Store visitor and is only logged to vendor's local log file, so it must not be localized:
Page 16
XML API 16
die HSPC::API->fault('AuthenRequired', 'Authentication required.');
feel free to return any data structures that you can theo retically ser ialize to XML - and do not expect an object to arrive at remote side by just returning its blessed reference (guess why it's just ridiculous).
Examples
HSPC/Test.pm (local requests):
package HSPC::Test; use strict; use Data::Dumper; ## returns dump of parameters list, including class name sub method { return Dumper(\@_); } 1;
HSPC/API/Test.pm (remote requests):
package HSPC::API::Test; use strict; our $VERSION = 1.0; ## gets/sets parameter with key passed as a parameter sub param { my (undef, $key, $value) = @_; return defined $value ? $ENV{session}->{$key} = $value : $ENV{session}->{$key}; } 1;
Clients In order to initialize stable communi cation with Parallels Business Automation - Standard XML
API Gate, first call session_open() in HSPC/API (on page 18) namespace to receive HSPC-SID value and then add HSPC-SID to either HTTP or SOAP headers to each request before sending SOAP envelope.
Examples
local.pl:
use SOAP::Lite; use strict; my $result = SOAP::Lite
->proxy('http://127.0.0.1:8080/hspc/xml-api') ## Gate URL
->ns('HSPC/Test') ## package namespace
->method ## method name ('param1', {param2 => 'test', param3 => [1, 2, 3]}, 0); ## parameters print $result->fault ? 'Fault: ' . $result->faultstring : 'Result: ' . $result->result;
local.php:
<? require_once('nusoap.php'); $client = new soap_client('http://127.0.0.1:8080/hspc/xml-api'); // Gate URL $result = $client->call( 'method', // method name array ("param1", array ("param2" => "test", "param3" => array (1, 2, 3)),
0), // parameters 'HSPC/Test' // package namespace
Page 17
XML API 17
); if ($client->fault) die("Fault: {$client->faultstring}"); echo $result; ?>
remote.pl:
use strict; use SOAP::Lite; my $client = SOAP::Lite
->proxy('https://192.168.0.100/hspc/xml-api')
->on_fault(sub {die 'Fault: ' . $_[1]->faultstring}); ## pass authentication and receive session ID my $sid = $client->ns('HSPC/API/1.0')->session_open({ email => 'email@provider.com', password => 'password' })->result->{session_id}; ## put session ID to outgoing requests' HTTP headers $client->transport->http_request->header('HSPC-SID' => $sid); ## make session-dependent calls $client->ns('HSPC/API/Test/1.0'); $client->param('key' => 'value'); print $client->param('key')->result; $client->ns('HSPC/API/1.0')->session_close;
remote.php
<? require_once('nusoap.php'); $client = new soap_client('https://192.168.0.100/hspc/xml-api'); // Gate URL ## pass authentication and receive session ID $sid_result = $client->call('session_open', array ( array ('email' => 'root@provider.com', 'password' => '1q2w3e') ), 'HSPC/API/1.0'); $sid = $sid_result['session_id']; if ($client->fault) die("Fault: {$client->faultstring}"); ## put session ID to outgoing requests' SOAP headers $client­>setHeaders("<HSPC-SID>$sid</HSPC-SID>"); ## make session-dependent calls $client->call('param', array ('key', 'value'), 'HSPC/API/Test/1.0'); if ($client->fault) die("Fault: {$client->faultstring}"); echo $client->call('param', array ('key'), 'HSPC/API/Test/1.0') . "\n"; if ($client->fault) die("Fault: {$client->faultstring}"); $client->call('session_close', undef, 'HSPC/API/1.0'); if ($client->fault) die("Fault: {$client->faultstring}"); ?>
Page 18
XML API 18

HSPC/API

ID of a vendor account a session is to be
parameter is to be passed in
case of a local Store installation. Optional
Vendor server name used for authentication. This parameter is to be passed in case of a local
rameter in case
mail. Parameter is to be
specified in case of the Store remote
Registered person password. Parameter is to be
e of the Store remote
The numerical identifier of an account a session has been opened for. Account ID is
account ID is

session_open

The function opens session with Parallels Business Automation - Standard XML API server. The input parameters composition depends on the store installation: (local, i.e. Store is installed on the same server as Parallels Business Automation - Standard or remote, i.e., the Store installed on a remote server).
In the function call the namespace must be followed by API version number, e.g. HSPC/API/1.0
Note: Sess ion ID return ed by session_open must be included in HTTP Headers or SOAP Headers for all the other methods called in the frame of each session.
Parameters:
account_id
opened for. This
parameter in case server_name is specified.
server_name
Store installation. Optional pa account_id is specified.
email Registered person e-
installation together with the password parameter.
password
specified in cas installation together with the email parameter.
Returns: {
account_id =>
session_id => }
Parameter Means
account_id
returned in any case, a vendor then used by the other Store API functions.
session_id The identifier of the opened session.
Page 19
XML API 19
Common SOAP Faults codes:
Mandatory parameter missing from SOAP
Mandatory parameter missing from SOAP
UserError
method call
WrongParams Invalid method parameters
No specific SOAP Faults codes.

session_close

The function closes session.
In the method call the namespace must be followed by API version number, e.g. HSPC/API/1.0
The function usage is not necessary but recommended.
No parameters.
No return value.
Common SOAP Faults codes:
UserError
method call
WrongParams Invalid method parameters
No specific codes.
Page 20
XML API 20

HSPC/API/HP

Optional parameter: ID of OS template selected for a hosing plan. If not passed, then
return the result as if OS template with the lowest ID (from OSes included in hosting plan) was passed as
Hosting plan passed as an argument does not
Application(s) passed are incompatible with

check_app_compat

The function checks applications compatibility in Plesk and Virtuozzo Container hosting plans.
Parameters:
hp_sid
app_list
os_tmpl
Returns: result => 1 on success or Fault
SOAP Faults codes:
HPNoApplicationSupport
UserAppIncompat
Hosting plan series key
The list of application templates IDs.
the method will
os_tmpl.
support an application.
each other.
Page 21
XML API 21

check_license_compat

Hosting plan does not support at least one
The function checks licenses compatibility in hosting plans.
Parameters:
hp_sid
lic_list
Hosting plan series key
The list of licenses IDs
Returns: result => 1 on success or Fault
SOAP Faults codes:
HPNoLicClassSupport
license
HPBaseLicConflict
HPNoBaseForAddon
Base licenses specified are incompatible.
No base license has been specified for an add­on license.
Page 22
XML API 22

get_categorized_plan_list

Optional parameter: The ID of hosting plan Optional parameter: ID of promotion to be
Optional parameter: ID of account the prices
Optional parameter: Trial site ID. The
efined on redirect from
Optional parameter:Sitebuilder node numeric
Provider account ID is used to get hosting
The method returns the list of hosting plans grouped by categories. Only the basic information is returned.
The method is similar to get_sellable_plan_list (on page 33). Input parameters are the same, but output parameters differ: the list of returned hosting plans is grouped by categories.
Parameters:
type_id
type. Only hosting plans of the type specified will be returned .
promo_id
applied to hosting plans prices.
account_id
are to be calculated for.
sb_sid
parameter is pred Sitebuilder.
sb_node
Returns: plan _l is t => HP li st
SOAP Faults codes:
HPProviderNotAllowed
ID assigned in PBAS.
plan details. Only customer or reseller account ID is allowed as parameter.
Page 23
XML API 23

get_extended_plan_info

Optional parameter: Hosting plan series key. If not specified, the information about default
Optional parameter: The ID of promotion to be
account the prices
Optional parameter: Subscription period the
Optional parameter: If this parameter is
ons (custom
Optional parameter: ID of OS template selected for a hosing plan. If not passed, then the method will return the result as if OS template with the lowest ID (from OSes included in hosting plan) was passed as
The for_trial parameter has been specified, but
Hosting plan series key is not specified and
Provider account ID is used to get hosting plan details. Only customer or reseller account ID is
The function returns extended information about a hosting plan. Extended information is all the data not shown in hosting plans listing.
Parameters:
hp_sid
domain hosting plan will be returned.
promo_id
applied to hosting plan prices.
account_id
Optional parameter: ID of are to be calculated for.
period
discounts are to be calculated for.
for_trial
specified then zero prices for add­attributes, applications, etc.) will be returned.
os_tmpl
os_tmpl.
Returns: EXTENDED_HP_INFO (on page 24)
SOAP Faults codes:
HPNoTrial
a hosting plan does not support trial periods.
HPNotFound The hosting plan specified is not found.
HPNoDefaultDMPlan
default domain hosting plan does exist.
HPProviderNotAllowed
allowed as parameter.
Page 24
XML API 24
Example of EXTENDED_HP_INFO Hash
$VAR1 = { 'dns_hosting' => { 'is_unlim' => '0', 'included_value' => '5', 'max_value' => '10', 'overuse_rate' => { 'is_discount' => '0', 'promo_period' => undef, 'promo_percent' => undef, 'is_promo' => '0', 'discount_percent' => undef, 'discount_amount' => undef, 'promo_amount' => undef, 'price_original' => { 'price' => '1.00',
'is_complimentary' => '0' }, 'price' => '439182056', 'full_discount_period' => undef, 'promo_name' => undef } }, 'assigned_dm_plan' => '2', 'is_trial' => '0', 'vendor_id' => '1', 'name' => 'Domain Registration Support', 'provider_id' => '1', 'description' => '', 'question_list' => [ { 'question' => 'How do you like services included in your subscription?', 'answer' => undef, 'id' => '1' } ], 'custom_attribute_list' => [ { 'is_exclusive' => '1', 'cat_name' => 'Support' 'cat_id' => '1' 'cat_sort_order' => '1' 'option_list' => [ { 'is_default' => '0', 'sort_order' => '17', 'name' => 'Support by phone', 'is_included' => '0', 'upgrade_fee' => {
'is_discount' => '0',
'promo_period' => undef,
'promo_percent' => undef,
'is_promo' => '0',
'discount_percent' => undef,
Page 25
XML API 25
'discount_amount' => undef,
'promo_amount' => undef,
'price_original' => {
'price' => '50.0000',
'is_complimentary' => '0'
},
'price' => '437640876',
'full_discount_period' => undef,
'promo_name' => undef }, 'setup_fee' => {
'is_discount' => '0',
'promo_period' => undef,
'promo_percent' => undef,
'is_promo' => '0',
'discount_percent' => undef,
'discount_amount' => undef,
'promo_amount' => undef,
'price_original' => {
'price' => '20.0000',
'is_complimentary' => '0'
},
'price' => '382151368',
'full_discount_period' => undef,
'promo_name' => undef }, 'subscr_fee' => {
'is_discount' => '0',
'promo_period' => undef,
'promo_percent' => undef,
'is_promo' => '0',
'discount_percent' => undef,
'discount_amount' => undef,
'promo_amount' => undef,
'price_original' => {
Page 26
XML API 26
'price' => '50.0000',
'is_complimentary' => '0'
},
'price' => '440264964',
'full_discount_period' => undef,
'promo_name' => undef }, 'id' => '17' }, { 'is_default' => '0', 'sort_order' => '18', 'name' => 'ICQ Consultant', 'is_included' => '0', 'upgrade_fee' => {
'is_discount' => '0',
'promo_period' => undef,
'promo_percent' => undef,
'is_promo' => '0',
'discount_percent' => undef,
'discount_amount' => undef,
'promo_amount' => undef,
'price_original' => {
'price' => '30.0000',
'is_complimentary' => '0'
},
'price' => '438862184',
'full_discount_period' => undef,
'promo_name' => undef }, 'setup_fee' => {
'is_discount' => '0',
'promo_period' => undef,
'promo_percent' => undef,
'is_promo' => '0',
'discount_percent' => undef,
'discount_amount' => undef,
Page 27
XML API 27
'promo_amount' => undef,
'price_original' => {
'price' => '20.0000',
'is_complimentary' => '0'
},
'price' => '440650072',
'full_discount_period' => undef,
'promo_name' => undef }, 'subscr_fee' => {
'is_discount' => '0',
'promo_period' => undef,
'promo_percent' => undef,
'is_promo' => '0',
'discount_percent' => undef,
'discount_amount' => undef,
'promo_amount' => undef,
'price_original' => {
'price' => '30.0000',
'is_complimentary' => '0'
},
'price' => '439183520',
'full_discount_period' => undef,
'promo_name' => undef }, 'id' => '18' } ], 'sort_order' => '0', 'is_required' => '0', 'name' => 'Miscellaneous', 'id' => '6' } ], 'summary' => '', 'fee_list' => [ { 'setup_fee' => { 'is_discount' => '0', 'promo_period' => undef, 'promo_percent' => undef, 'is_promo' => '0', 'discount_percent' => undef, 'discount_amount' => undef, 'promo_amount' => undef,
Page 28
XML API 28
'price_original' => { 'price' => '10.0000',
'is_complimentary' => '0' }, 'price' => '440550508', 'full_discount_period' => undef, 'promo_name' => undef }, 'subscr_fee' => { 'is_discount' => '0', 'promo_period' => undef, 'promo_percent' => undef, 'is_promo' => '0', 'discount_percent' => undef, 'discount_amount' => undef, 'promo_amount' => undef, 'price_original' => { 'price' => '5.0000',
'is_complimentary' => '0' }, 'price' => '440553148', 'full_discount_period' => undef, 'promo_name' => undef }, 'period' => '2592000' }, { 'setup_fee' => { 'is_discount' => '0', 'promo_period' => undef, 'promo_percent' => undef, 'is_promo' => '0', 'discount_percent' => undef, 'discount_amount' => undef, 'promo_amount' => undef, 'price_original' => { 'price' => '20.0000',
'is_complimentary' => '0' }, 'price' => '439338076', 'full_discount_period' => undef, 'promo_name' => undef }, 'subscr_fee' => { 'is_discount' => '0', 'promo_period' => undef, 'promo_percent' => undef, 'is_promo' => '0', 'discount_percent' => undef, 'discount_amount' => undef, 'promo_amount' => undef, 'price_original' => { 'price' => '10.0000',
'is_complimentary' => '0' }, 'price' => '440307792', 'full_discount_period' => undef, 'promo_name' => undef },
Page 29
XML API 29
'period' => '7776000' }, { 'setup_fee' => { 'is_discount' => '0', 'promo_period' => undef, 'promo_percent' => undef, 'is_promo' => '0', 'discount_percent' => undef, 'discount_amount' => undef, 'promo_amount' => undef, 'price_original' => { 'price' => '30.0000',
'is_complimentary' => '0' }, 'price' => '439238836', 'full_discount_period' => undef, 'promo_name' => undef }, 'subscr_fee' => { 'is_discount' => '0', 'promo_period' => undef, 'promo_percent' => undef, 'is_promo' => '0', 'discount_percent' => undef, 'discount_amount' => undef, 'promo_amount' => undef, 'price_original' => { 'price' => '15.0000',
'is_complimentary' => '0' }, 'price' => '440439372', 'full_discount_period' => undef, 'promo_name' => undef }, 'period' => '15552000' }, { 'setup_fee' => { 'is_discount' => '0', 'promo_period' => undef, 'promo_percent' => undef, 'is_promo' => '0', 'discount_percent' => undef, 'discount_amount' => undef, 'promo_amount' => undef, 'price_original' => { 'price' => '40.0000',
'is_complimentary' => '0' }, 'price' => '438988552', 'full_discount_period' => undef, 'promo_name' => undef }, 'subscr_fee' => { 'is_discount' => '0', 'promo_period' => undef, 'promo_percent' => undef, 'is_promo' => '0', 'discount_percent' => undef, 'discount_amount' => undef,
Page 30
XML API 30
'promo_amount' => undef, 'price_original' => { 'price' => '20.0000',
'is_complimentary' => '0' }, 'price' => '440380584', 'full_discount_period' => undef, 'promo_name' => undef }, 'period' => '31104000' } ], 'id' => '21', 'category' => undef, 'type' => { 'summary' => 'Miscellaneous hosting plans designed for selling any arbitrary services. It gives highest flexibility together with Custom Attributes and Questionnaire.', 'name' => 'Miscellaneous', 'id' => '7', 'description' => '' }, 'qos_list' => [ { 'is_unlim' => '0', 'incl_amount' => '5', 'max_amount' => '10', 'overuse_rate' => { 'is_discount' => '0', 'promo_period' => undef, 'promo_percent' => undef, 'is_promo' => '0', 'discount_percent' => undef, 'discount_amount' => undef, 'promo_amount' => undef, 'price_original' => { 'price' => '1.00',
'is_complimentary' => '0' }, 'price' => '439020192', 'full_discount_period' => undef, 'promo_name' => undef }, 'id' => '4000', 'name' => 'Number of domains with DNS hosting provided', 'is_metered' => '0', 'short_name' => 'numdnshosting', 'units' => 'domain(s)', 'is_rateable' => '1', 'multiplier' => '1' } ], 'series_key' => '3' };
Page 31
XML API 31

get_full_extended_plan_info

Optional parameter: Hosting plan series key. If not specified, the information about default
Optional parameter: The ID of promotion to be
Optional parameter: ID of account the prices
Optional parameter: Subscription period the
Optional parameter: If this parameter is
ons (custom
Optional parameter: ID of OS template selected for a hosing plan. If not passed, then
turn the result as if OS template with the lowest ID (from OSes included in hosting plan) was passed as
The for_trial parameter has been specified, but
Hosting plan series key is not specified and
details. Only customer or reseller account ID is
The method returns extended information about a hosting plan. Extended information is all the data not shown in hosting plans listing.
The method is similar to the get_extended_plan_info (on page 23).
The difference between these methods is: the get_extended_plan_info method returns resources and applications for a specified OS. The get_full_extended_plan_info method returns resources and applications for all OSes enabled for a hosting plan.
Parameters:
hp_sid
domain hosting plan will be returned.
promo_id
applied to hosting plan prices.
account_id
are to be calculated for.
period
discounts are to be calculated for.
for_trial
specified then zero prices for add­attributes, applications, etc.) will be returned.
os_tmpl
the method will re
os_tmpl.
Returns: EXTENDED_HP_INFO (on page 24)
SOAP Faults codes:
HPNoTrial
a hosting plan does not support trial periods.
HPNotFound The hosting plan specified is not found.
HPNoDefaultDMPlan
default domain hosting plan does exist.
HPProviderNotAllowed Provider account ID is used to get hosting plan
allowed as parameter.
Page 32
XML API 32

get_plan_promotion_list

The function returns the list of promotions applicable to a hosting plan.
Parameters:
hp_sid Hosting plan series key.
Returns: PROMOTION list
SOAP Faults codes:
HPNoPromoFound No promotions are applied to a hosting plan.

get_promotion

The function returns information about a promotion by a promotion ID.
Parameters:
promo_id Promotion ID.
Returns: PROMOTION:
SOAP Faults codes:
HPNoPromoSeriesFound No promotion with ID specified exists.
Page 33
XML API 33

get_sellable_plan_list

Optional parameter: The ID of hosting plan Optional parameter: ID of promotion to be
Optional parameter: Trial site ID. The parameter is predefined on redirect from
Optional parameter: Sitebuilder node
Provider account ID is used to get hosting
The function returns the list of hosting plans for sale. The base information only is returned.
Parameters:
type_id
type. Only hosting plans of the type specified will be returned .
promo_id
applied to hosting plans prices.
account_id Optional parameter: ID of account the prices
are to be calculated for.
sb_sid
Sitebuilder.
sb_node
numeric ID assigned in PBAS.
Returns: plan _l is t => HP li st
SOAP Faults codes:
HPProviderNotAllowed
plan details. Only customer or reseller account ID is allowed as parameter.
Page 34
XML API 34

validate_plesk_login

Optional parameter: Plesk Administrator
Optional parameter: Plesk Administrator
The function checks Plesk Administrator login, password, and forward URL.
Parameters:
login
login.
password
password.
forward_url Optional parameter: Plesk forwarding URL.
Returns: result => 1 on success, Fault otherwise
SOAP Faults codes:
PleskLoginInvalid Plesk Administrator login invalid.
PleskPasswordInvalid Plesk Administrator password invalid.
UserPleskForwardURLInvalid Plesk forwarding URL invalid.
Page 35
XML API 35

HSPC/API/Billing

iod is trial (for_trial
parameter is specified) or if a domain hosting plan is
Optional parameter: The ID of promotion to be applied to
Optional parameter: The parameter is to be used only if
ready exists, the Sitebuilder site alias
must be passed. If a new Sitebuilder site is to be created,

calculate_order

The function calculates prices in an order.
Parameters:
account_id ID of account the prices are to be calculated for.
hp_sid Optional parameter: Hosting plan series key.
hp_id Optional parameter: Hosting plan ID.
period Optional parameter in case a per
purchased. Subscription period.
promo_id
hosting plan prices.
domain_hash Optional parameter: The list of domains.
app_list Optional para meter: The list of application temp late s ID s.
attribute_list The list of custom attributes.
sb_plan
Sitebuilder service is included in a hosting plan.
If a Sitebuilder site al
the 'new' value must be passed.
Page 36
XML API 36
license_list
Optional parameter: List of licenses included in a hosting
}
The parameters composition depends upon hosting plan
The list of answers on a hosting plan questionnaire. Each answer is a list consisting of a question ID and an answer
esources
'res_id_1003' => {'res_id' =>
'res_id_1012' => {'res_id' =>
plan. The list of licences is presented as the following hash:
'license_list' => { 'plugin_1' => { 'SITEBUILDER' => { 'feature_list' => [ '500_SITES', '1YR_PREMIUM_SUPPORT_PACK', 'MULTI_SERVER_CAPABILITY', '1YR_EMAIL_SUPPORT_PACK' ] }, 'PLESK_75_RELOADED' => { 'addon_list' => { 'PLESK_BATTLEFIELD' => { 'feature_list' => [ '5_BATTLEFIELD_SERVERS' ] }, 'PLESK_CS_GAMESERVER' => { 'feature_list' => [] } }, 'feature_list' => [ '100_DOMAINS', 'TROUBLE_TICKETING_SYSTEM', '1YR_PREMIUM_SUPPORT_PACK', 'COLDFUSION', 'INEXPENSIVE_SERVER', 'EXPENSIVE_SERVER' ] } }
login Optional parameter: The list can include three parameters:
passwordloginforwarding URL
type.
answer_list
string.
qos_list Optional parameter. The list of billable r
presented as the following hash:
{
'1003','value' => '2','multiplier' => '1'},
'1012','value' => '1','multiplier' => '1'}, ...
Page 37
XML API 37
}
gned in the
is an additional resource value ordered over the
Hosting plan requires a domain registration, but no
Applications specified are not supported by a hosting
No more domains allowed for a hosting plan. Allowed
Sitebuilder service specified is not supported by a hosting
A domain hosting plan does not support secure whois
A domain specified is not available for transfer in a
Errors connected with Sitebuilder site have occurred
Where: res_id - is a resource numerical identifier assi
Parallels Business Automation - Standard d atab ase
multiplier - is a resource units
value -
included value.
Returns: ORDER (on page 39).
SOAP Faults codes:
AFMdenied Anti-Fraud Manager has stopped an order.
AuthzError Authorization error.
DomainRequired
domains were registered.
HPNoApps
plan.
HPNoDomainAction A domain operation specified is not supported.
HPNoDomainAvailable A domain name is not available for registration.
HPNoDomainReg Hosting plan does not support domain registration.
HPNoDomainSubscrAllowed
limit for domains registration is used up.
HPNoLicClasses Licenses specified are not supported by a hosting plan.
HPNoSB
plan.
HPNoSecureWhois
service.
HPNoTransferDomainAvailab le
particular hosting plan.
HPNoTrial Hosting plan does not support trial periods.
HPSBErrors
during order processing.
InvalidDomain Invalid domain name was specified.
NoOrderForProvider Provider tries to place order for themselves.
Page 38
XML API 38
NoPointerAllowed
Domain pointer operation is not available for a domain
or an answer
Subdomain creation is not available for a domain
A subscription a domain registration is to be added to
n period specified does not
Container password does not meet the password strength
specified.
NoQuestion No question exists in a hosting plan f
specified.
NoSubdomain
specified.
OrderFailed Order creation err or.
SubscrNotFound
does not exist.
TLDNoSuchPeriod A domain registratio
supported for a TLD.
UserNoVPSPasswd No password specified for Container.
UserVPSPasswdWeak
requirements.
NoHPSidOrID Hosting plan sid or id is not set.
NOPersonId Require person_id but not set in request
Page 39
XML API 39
Examples of ORDER Hash
ount' =>
Example 1:
$VAR1 = { 'time_stamp' => '2006-08-07 10:34:59', 'doc_balance_print' => '15.0000', 'detail_list' => [ { 'count' => undef, 'period' => '0', 'taxfree_amount' => '10.0000', 'quantity' => undef,
'taxfree_gross_am '10.0000',
'duration' => '0', 'discount' => '0.00', 'rate' => '10.000001', 'amount' => '10.0000', 'unit' => '0',
'comment' => 'Dedicated Server hosting plan setup fee',
'gross_amount' => '10.0000', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '2592000', 'taxfree_amount' => '5.0000', 'quantity' => undef, 'taxfree_gross_amount' => '5.0000',
Page 40
XML API 40
'duration' => '0', 'discount' => '0.00', 'rate' => '5.000001', 'amount' => '5.0000', 'unit' => '0',
'comment' => 'Dedicated Server hosting plan subscription fee',
'gross_amount' => '5.0000', 'multiplier' => undef } ], 'rperiod' => '2592000', 'order_type' => '100', 'doc_status_txt' => 'open', 'plan_type' => '3', 'added_by_account' => '3', 'bhp_id' => '1', 'doc_total' => '15.0000', 'id' => '354057', 'doc_balance' => '15.0000', 'doc_subtotal_print' => '15.0000', 'subscr_end_date' => undef, 'period' => '2592000', 'is_tax_included' => undef, 'name' => 'order', 'doc_subscr_prices' => undef,
'description' => 'Order on purchase Dedicated Hosting',
'plan_id' => '1',
Page 41
XML API 41
'doc_type' => 'OR' };
Example 2:
Page 42
XML API 42
$VAR1 = { 'doc_balance_print' => '0.0000', 'time_stamp' => '2007-12-14 16:04:12', 'detail_list' => [ { 'count' => undef, 'period' => '0', 'taxfree_amount' => '5.0000', 'quantity' => '', 'taxfree_gross_amount' => '5.0000', 'duration' => '', 'discount' => '0.00', 'rate' => '4.240000', 'amount' => '4.2400', 'unit' => '', 'comment' => 'Virtuozzo Container with lics hosting plan setup fee', 'gross_amount' => '4.2400', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '2592000', 'taxfree_amount' => '5.0000', 'quantity' => '', 'taxfree_gross_amount' => '5.0000', 'duration' => '1 month(s)', 'discount' => '0.00', 'rate' => '4.240000', 'amount' => '4.2300', 'unit' => '', 'comment' => 'Virtuozzo Container with lics hosting plan subscription fee', 'gross_amount' => '4.2400', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '31104000', 'taxfree_amount' => '10.0000', 'quantity' => '', 'taxfree_gross_amount' => '10.0000', 'duration' => '1 year(s)', 'discount' => '0.00', 'rate' => '8.470000', 'amount' => '8.4800', 'unit' => '', 'comment' => 'Domain testdomain.com registration for 1 year', 'gross_amount' => '8.4700', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '0',
Page 43
XML API 43
'taxfree_amount' => '123.0000', 'quantity' => '', 'taxfree_gross_amount' => '123.0000', 'duration' => '', 'discount' => '0.00', 'rate' => '104.240000', 'amount' => '104.2400', 'unit' => '', 'comment' => 'Workgroup Administrator Control Panel setup fee', 'gross_amount' => '104.2400', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '2592000', 'taxfree_amount' => '11.0000', 'quantity' => '', 'taxfree_gross_amount' => '11.0000', 'duration' => '1 month(s)', 'discount' => '0.00', 'rate' => '9.320000', 'amount' => '9.3200', 'unit' => '', 'comment' => 'Workgroup Administrator Control Panel monthly fee', 'gross_amount' => '9.3200', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '0', 'taxfree_amount' => '33.0000', 'quantity' => '', 'taxfree_gross_amount' => '33.0000', 'duration' => '', 'discount' => '0.00', 'rate' => '27.970000', 'amount' => '27.9600', 'unit' => '', 'comment' => 'Php As3 setup fee', 'gross_amount' => '27.9700', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '2592000', 'taxfree_amount' => '21.0000', 'quantity' => '', 'taxfree_gross_amount' => '21.0000', 'duration' => '1 month(s)', 'discount' => '0.00', 'rate' => '17.800000', 'amount' => '17.8000', 'unit' => '', 'comment' => 'Php As3 monthly fee',
Page 44
XML API 44
'gross_amount' => '17.8000', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '0', 'taxfree_amount' => '23.0000', 'quantity' => '', 'taxfree_gross_amount' => '23.0000', 'duration' => '', 'discount' => '0.00', 'rate' => '19.490000', 'amount' => '19.4900', 'unit' => '', 'comment' => 'Psa Sb Publish As3 setup fee', 'gross_amount' => '19.4900', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '2592000', 'taxfree_amount' => '3.0000', 'quantity' => '', 'taxfree_gross_amount' => '3.0000', 'duration' => '1 month(s)', 'discount' => '0.00', 'rate' => '2.540000', 'amount' => '2.5500', 'unit' => '', 'comment' => 'Psa Sb Publish As3 monthly fee', 'gross_amount' => '2.5400', 'multiplier' => undef }, { 'count' => undef, 'period' => '0', 'taxfree_amount' => '5.0000', 'quantity' => '', 'taxfree_gross_amount' => '5.0000', 'duration' => '', 'discount' => '0.00', 'rate' => '4.240000', 'amount' => '4.2300', 'unit' => '', 'comment' => '512 MB DDR setup fee', 'gross_amount' => '4.2400', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '2592000', 'taxfree_amount' => '6.0000', 'quantity' => '', 'taxfree_gross_amount' => '6.0000', 'duration' => '1 month(s)',
Page 45
XML API 45
'discount' => '0.00', 'rate' => '5.080000', 'amount' => '5.0900', 'unit' => '', 'comment' => '512 MB DDR monthly fee', 'gross_amount' => '5.0800', 'multiplier' => undef }, { 'count' => undef, 'period' => '0', 'taxfree_amount' => '2.0000', 'quantity' => '', 'taxfree_gross_amount' => '2.0000', 'duration' => '', 'discount' => '0.00', 'rate' => '1.690000', 'amount' => '1.6900', 'unit' => '', 'comment' => '80 GB setup fee', 'gross_amount' => '1.6900', 'multiplier' => undef }, { 'count' => '1.000000', 'period' => '2592000', 'taxfree_amount' => '2.0000', 'quantity' => '', 'taxfree_gross_amount' => '2.0000', 'duration' => '1 month(s)', 'discount' => '0.00', 'rate' => '1.690000', 'amount' => '1.7000', 'unit' => '', 'comment' => '80 GB monthly fee', 'gross_amount' => '1.6900', 'multiplier' => undef }, { 'count' => undef, 'period' => '2592000', 'taxfree_amount' => '8.0000', 'quantity' => '2', 'taxfree_gross_amount' => '8.0000', 'duration' => '1 month(s)', 'discount' => '0.00', 'rate' => '3.390000', 'amount' => '6.7800', 'unit' => 'domain', 'comment' => 'Number of domains with DNS hosting provided monthly fee', 'gross_amount' => '6.7800', 'multiplier' => '1.000000' }, {
Page 46
XML API 46
'count' => undef, 'period' => '2592000', 'taxfree_amount' => '2.0000', 'quantity' => '1', 'taxfree_gross_amount' => '2.0000', 'duration' => '1 month(s)', 'discount' => '0.00', 'rate' => '1.690000', 'amount' => '1.6900', 'unit' => 'ip(s)', 'comment' => 'Number of Static IP addresses monthly fee', 'gross_amount' => '1.6900', 'multiplier' => '1.000000' }, { 'count' => undef, 'period' => '0', 'taxfree_amount' => '2.0000', 'quantity' => '', 'taxfree_gross_amount' => '2.0000', 'duration' => '', 'discount' => '0.00', 'rate' => '1.690000', 'amount' => '1.7000', 'unit' => '', 'comment' => 'Plesk 7.5 Plus setup fee', 'gross_amount' => '1.6900', 'multiplier' => undef }, { 'count' => undef, 'period' => '2592000', 'taxfree_amount' => '3.0000', 'quantity' => '1', 'taxfree_gross_amount' => '3.0000', 'duration' => '1 month(s)', 'discount' => '0.00', 'rate' => '2.540000', 'amount' => '2.5400', 'unit' => '', 'comment' => 'Plesk 7.5 Plus monthly fee', 'gross_amount' => '2.5400', 'multiplier' => undef }, { 'count' => undef, 'period' => '0', 'taxfree_amount' => '2.0000', 'quantity' => '', 'taxfree_gross_amount' => '2.0000', 'duration' => '', 'discount' => '0.00', 'rate' => '1.690000', 'amount' => '1.6900', 'unit' => '',
Page 47
XML API 47
'comment' => 'Unlimited Domains w/1 yr SUS (Plesk 7.5 Plus) setup fee', 'gross_amount' => '1.6900', 'multiplier' => undef }, { 'count' => undef, 'period' => '2592000', 'taxfree_amount' => '3.0000', 'quantity' => '1', 'taxfree_gross_amount' => '3.0000', 'duration' => '1 month(s)', 'discount' => '0.00', 'rate' => '2.540000', 'amount' => '2.5500', 'unit' => '', 'comment' => 'Unlimited Domains w/1 yr SUS (Plesk 7.5 Plus) monthly fee', 'gross_amount' => '2.5400', 'multiplier' => undef }, { 'count' => undef, 'period' => '0', 'taxfree_amount' => '5.0000', 'quantity' => '', 'taxfree_gross_amount' => '5.0000', 'duration' => '', 'discount' => '0.00', 'rate' => '4.240000', 'amount' => '4.2300', 'unit' => '', 'comment' => '1 yr E-mail Support Package (Plesk 7.5 Plus) setup fee', 'gross_amount' => '4.2400', 'multiplier' => undef }, { 'count' => undef, 'period' => '2592000', 'taxfree_amount' => '4.0000', 'quantity' => '1', 'taxfree_gross_amount' => '4.0000', 'duration' => '1 month(s)', 'discount' => '0.00', 'rate' => '3.390000', 'amount' => '3.3900', 'unit' => '', 'comment' => '1 yr E-mail Support Package (Plesk 7.5 Plus) monthly fee', 'gross_amount' => '3.3900', 'multiplier' => undef }, { 'count' => undef,
Page 48
XML API 48
'period' => '0', 'taxfree_amount' => '0.0000', 'quantity' => '', 'taxfree_gross_amount' => '0.0000', 'duration' => '', 'discount' => '0.00', 'rate' => '0.000000', 'amount' => '42.4100', 'unit' => '', 'comment' => '+ NDS 18.00 %', 'gross_amount' => '42.4100', 'multiplier' => undef } ], 'rperiod' => '2592000', 'subscr_id' => '240', 'order_type' => '100', 'doc_date' => '2007-12-14 16:03:26', 'doc_subtotal' => '235.5900', 'subscriptions' => [ { 'ar_doc_id' => '745', 'subscr_status' => '1', 'applied' => '1', 'start_date' => '2007-12-14 16:03:56', 'id' => '240' }, { 'ar_doc_id' => '745', 'subscr_status' => '1', 'applied' => '1', 'start_date' => '2007-12-14 16:04:06', 'id' => '241' } ], 'added_by_account' => '2', 'doc_status_txt' => 'ds_completed', 'plan_type' => '1', 'plan_type_txt' => 'Virtuozzo Container', 'domain' => 'testdomain.com', 'bhp_id' => '314', 'doc_balance' => '0.0000', 'doc_total' => '278.0000', 'id' => '745', 'provider_tax_ex_number' => '', 'doc_subtotal_print' => '235.5900', 'period' => '2592000', 'subscr_end_date' => undef, 'is_tax_included' => '1', 'name' => 'order', 'order_id' => '745', 'doc_num' => '1336', 'description' => 'Order on the Container creation', 'plan_id' => '314', 'doc_type' => 'OR',
Page 49
XML API 49
'added_by_ip' => '10.30.64.209', 'plan_name' => 'Virtuozzo Container with lics' };

get_hosting_target_list

The function returns the list of subscriptions that already exist for an account.
Parameters:
account_id Account ID.
Returns: {hosting_target_list => {id => ID, name => STRING, plan_name => STRING, sites_available => NUMBER} }
SOAP Faults codes:
No specific codes.
Page 50
XML API 50

place_order

Optional parameter in case a period is trial (for_trial parameter is specified) or if a domain hosting plan is
). When user is redirected
to store via a Campaign link, redirector adds
Redirection is done to URL
In this way store gets campaign ID. When order is placed, campaign ID must be send back to
Optional parameter: The ID of promotion to be applied to
The function places order.
Parameters:
account_id ID of account the prices are to be calculated for.
hp_sid Hosting plan series key.
period
purchased. Subscription period.
campaign Optional parameter. ID of campaign (Marketing Director >
Campaign Manager > Campaigns
HSPC_MM=<campaign_id> parameter to store URL.
Example:
Redirect To URL: http://mystore.host.com Campaign ID: 25
http://mystore.host.com?HSPC_MM=25
the server, to add this order to campaign report.
promo_id
hosting plan prices.
Page 51
XML API 51
domain_hash
The list of domains. Each domain in this list is presented
use manual registration yes|no. Use
expire_time => Expiration date for domain. Use when importing domains. Format: Use any string parsable by
contact_hash => {admin => 45, billing => 0, owner =>
mapping of contact types to use for domain to
contact IDs. If contact id is 'undef' or '0', it will be created
Subscription number, for
If 1, this domain is specified as the
ext_data => { purpose of domaun usage => 'Business', ... }
any additional information required by a registrar. This
by the following hash:
{'domain1' => {
domain_name => 'example.com' -- self-explanatory
dm_action => 'register_new' -- action over domain
period => 2, -- registration period in years
whois_privacy => 1|0 -- use whois privacy yes|no
is_manual => 1| 0 -­when importing domain subscription.
Date::Manip (which is, well, just about anything).
undef} --
on the basis of account contact information
create_site => 1|0 - create site for this domain or no.
hosting_destination => 56 ­which this domain is bought.
is_default => 1|0 -­default one in the order.
ns_list => [[HOSTNAME, IP], [HOSTNAME, IP], ...] -­list of nameservers for domain. If present, no DNS hosting service will be provided.
},
'domain2' => { ... },
-­parameter is always the only one in the hash.
}
app_list The list of application templates IDs.
Page 52
XML API 52
attribute_list The list of custom attributes.
Optional parameter: The parameter is to be used only if
If a Sitebuilder site already exists, the Sitebuilder site alias must be passed. If a new Sitebuilder site is to be created,
The parameters composition depends upon hosting plan
The list of answers on a hosting plan questionnaire. Each answer is a list consisting of a question ID and an answer
sb_plan
Sitebuilder service is included in a hosting plan.
the 'new' value must be passed.
license_list List of licenses included in a hosting plan.
login The list can include three parameters:
password
login
forwarding URL
type.
answer_list
string.
for_trial If an order is for trial period.
initiator_email E-mail of a person that has added an order.
initiator_ip IP address of a person that has added an order.
description Optional parameter. Order description.
Page 53
XML API 53
is_free 1 - yes or 0 - no. Optional parameter that can
be used by provider only. The parameter specifies whether an order should be free (1) or not (0). If yes, the balance of an order created on a subscription import is adjusted to zero, that is a special 'balance correction' string is added to an order.
s parameter can be used, for example if a provider
wants to import a a subscription or a number of
Standard and it is necessary that a corresponding orders to
f a zero
parameter. If this paramet er is used by a reseller, this will result in SOAP fault (see the list of SOAP Fault Codes
nal parameter. The list of billable resources
'res_id_1003' => {'res_id' =>
'res_id_1012' => {'res_id' =>
a resource numerical identifier assigned in the
is an additional resource value ordered over the
Hosting plan requires a domain registration, but no
Thi
subscriptions into Parallels Business Automation -
be generated for these subscriptions will be o amount.
Note: Only provider is allowed to use the is_free
below this table).
ext_data
List of extended attributes
qos_list Optio
presented as the following hash:
{
'1003','value' => '2','multiplier' => '1'},
'1012','value' => '1','multiplier' => '1'}, ... }
Where: res_id - is
Parallels Business Automation - Standard d atab ase
multiplier - is a resource units value -
included value.
Returns: ORDER (on page 39).
SOAP Faults codes:
AFMdenied Anti-Fraud Manager has stopped an order.
AuthzError Authorization error.
DomainRequired
domains were registered.
HPNoApps Applications specified are not supported by a hosting
plan.
Page 54
XML API 54
HPNoDomainAction A domain operation specified is not supported.
lowed for a hosting plan. Allowed
Parallels Sitebuilder service specified is not supported by
in hosting plan does not support secure whois
A domain specified is not available for transfer in a
allels Sitebuilder site have
Domain pointer operation is not available for a domain
No question exists in a hosting plan for an answer
Subdomain creation is not available for a domain
A subscription a domain registration is to be added to
A domain registration period specified does not
HPNoDomainAvailable A domain name is not available for registration.
HPNoDomainReg Hosting plan does not support domain registration.
HPNoDomainSubscrAllowed No more domains al
limit for domains registration is used up.
HPNoLicClasses Licenses specified are not supported by a hosting plan.
HPNoSB
a hosting plan.
HPNoSecureWhois A doma
service.
HPNoTransferDomainAvailab le
particular hosting plan.
HPNoTrial Hosting plan does not support trial periods.
HPSBErrors Errors connected with Par
occurred during order processing.
InvalidDomain Invalid domain name was specified.
NoOrderForProvider Provider tries to place order for themselves.
NoPointerAllowed
specified.
NoQuestion
specified.
NoSubdomain
specified.
OrderFailed Order creation err or.
OrderFreeDenied The is_free parameter is used not by provider (for
example, reseller tries to create a free order).
OrderExtData Extended attribute addition error.
SubscrNotFound
does not exist.
TLDNoSuchPeriod
supported for a TLD.
UserNoVPSPasswd No password specified for Container.
Page 55
XML API 55
UserVPSPasswdWeak
Container password does not meet the password strength
requirements.
Page 56
XML API 56

create_offline_payment

Optional parameter. List of IDs of documents a payment
Optional parameter that defines the function behavior in case of error, depending of a value assigned to this
y error that occurs will stop payment
processing and produce SOAP fault DocAdjustError.
If 0, then in case errors occur, the function will keep trying to pay documents, but all the errors will be
This function allows creating an offline payment and, at the same moment, applying this payment to a number of documents.
Note: The payment created by this function can be applied to documents with Open or Overdue status. The payment can be applied only to the following types of documents: Order, Invoice, Debit Adjustment, and Payment Request. A payment can be applied only to documents assigned to an account a payment was issued for.
Parameters:
amount A payment total amount.
account_id ID of account a payment is issued for.
ref_num A payment reference number.
doc_list
is to be applied to.
adjust_error_fatal
parameter :
If 1, then an
Errors will be placed into SOAP details.
returned.
Returns:
{ result => 1 } if no errors occurred, and offline payment has been placed successfully.
or
{ result => 0, error_info => ARRAYREF } if adjust_error_fatal=0 and some errors occurred.
Example of returned value:
{ 'error_info' => [ { 'error_message' => 'Document 103 has been paid', 'document' => '103', 'error_code' => 'DocPaid'
Page 57
XML API 57
}
Document %DOCID% was not added by the account
], 'result' => '0' };
SOAP Faults codes:
DocAdjustError Error adjusting documents!
Document type specific errors:
DocInvalidAccount
trying to pay for it.
DocPaid Document %DOCID% has been paid
DocNotOpen Document %DOCID% is not open
DocWrongType Document %DOCID% is of an inappropriate type.
Example of Test Code for create_offli ne_payment Function
#!/usr/bin/perl
use strict; use SOAP::Lite; use Data::Dumper;
my $client = SOAP::Lite
->proxy('https://hspc_mn_server_name/hspc/xml-api')
->on_fault(sub {die 'Fault: '.$_[1]->faultstring.' '.$_[1]->faultcode.' '.$_[1]->faultdetail}); my $sid = $client->ns('HSPC/API/1.0')->session_open( { email => 'someuser@somehost', password => 'somepassword' } )->result->{session_id};
$client->transport->http_request->header('HSPC-SID' => $sid);
my %h = ( amount => 5, account_id => 2, ref_num => 'test offline payment', doc_list => [103], adjust_error_fatal => 1, );
my $obj = $client->ns('HSPC/API/Billing/1.0')->create_offline_payment(%h)­>result;
print "\nResult: " . Dumper($obj);
$client->ns('HSPC/API/1.0')->session_close;
Page 58
XML API 58

get_order_details

An order numerical identifier assigned in the
Order not found. This means that no order with the
Order type: corresponds to a hosting plan type, the parameter value (constant) is a hosting plan code used
This function allows getting the full information about an order by an order ID.
Parameters:
order_id
Parallels Business Automation - Standard database.
doc_num An order reference number (optional). Returns: ORDER (on page 39), see Example 2.
Note: The function can be used to get details of other types of documents, for example, invoice. To use the function this way, a document ID is to be passed. In this case, th parameter name remains the same, order_id.
SOAP Faults codes:
OrderNotFound
ID specified.
AuthzError Access Denied.

get_extended_attr_list

The function returns extended attributes available for a particular hosting plan type.
Parameters:
order_type
in Store.
Returns value: [ { view_name=>, title=>, value=>, type=> }, .. ]
SOAP Faults codes:
No specific codes.
Page 59
XML API 59

get_account_subscr

Function is called by a person not logged in or
. Access to
Access to account information is denied in case a reseller uses this function, but account belongs to another reseller. Another match is the si tuation when
ormation about
Subscription belongs to another account or in case a
The function returns the list of account subscriptions.
Parameters:
account_id ID of account the list of subscriptions is requested.
Returns an array of hashes:
{'plan_type_txt' => STRING, 'plan_type' => INT, 'status' => STRING, 'plan_name' => STRING, 'subscr_name' => STRING, 'subscr_id' => ID }
SOAP Faults codes:
MissingAccount No accounts with passed ID has been found.
AccessDenied
logged in with insufficient permissions account information is denied.
AccountAccessDenied
a user is logged in and requests inf account that does not belong to him/her.

subscr_auth

The function authorizes an account against subscription ID.
Parameters:
account_id ID of account the list of subscriptions is requested.
subscr_id ID of subscription.
Returns:
is_authorized => 1 or 0
SOAP Faults codes:
SubscrNotFound No subscription with ID passed.
AuthzError
reseller uses this function, to another reseller.
Page 60
XML API 60

get_subscr_info

Subscription status in text form ( Active, On Hold,
been renewed, next subscription
The function returns full subscription information.
Parameters:
subscr_id ID of subscription.
account_id Optional parameter. ID of account subscription belongs
to.
If account_id is provided, subscription is verified for belonging to the account.
Returns:
Various outputs depending on Subscription type, see examples (on page 64).
In general, the following parameters are returned.
All subscriptions:
Common output fields for all subscription types:
id ID of subscription.
name Subscription name.
account_no ID of account.
status_txt
etc.).
status ID of subscription status.
prev_status Subscription previous status ID.
plan_type Hosting plan ID.
plan_type_txt Hosting plan type in text.
plan_id Hosting plan ID.
plan_sid Hosting plan series key.
plan_name Hosting plan name in text.
create_order_id ID of order placed for subscription.
period Subscription period duration (given in seconds).
next_period If subscription has
period.
Page 61
XML API 61
renewal_policy Renewal policy code:
Generate renewal order automatically and try to
Generate renewal order automatically and do
If subscription is trial, then trial period duration in
Custom subscription fee (if such has been set for
If subscription is in Graced status, the grace period start
If subscription has been terminated, subscription
ed, the deletion date is
If promotion has been applied to subscription,
if promotion has been
Promotion period end date (if promotion has been
estionnaire) for subscription, if
0 - Do not generate renewal order automatically; 1 -
pay it.
2. -
not to pay it.
trial_period
seconds is returned.
custom_subscr_fee
subscription).
start_date Subscription start date.
end_date Subscription end date.
grace_date
date.
expiration_date Subscription expiration date.
termination_date
termination date is returned.
goaway_date If subscription has been delet
returned.
Common returned parameters for all subscription types except for Domain registration ones:
prom_id
promotion ID is returned.
prom_start_date Promotion period start date (
applied).
prom_end_date
applied).
res_info All resources included in subscription.
bm_attr Custom attributes assigned to subscription (if any).
questions Questions specified (Qu
any.
assigned_domains Domains assigned to subscription, if any.
The following subscription types have some extra output fields:
Domain registration subscription returned parameters:
Page 62
XML API 62
domain Hash containing information about domain zone.
Traffic class ID, if such has been configured for
Traffic class ID, if such has been configured for
Plesk platform ID (name as for Virtuozzo Container
regdomain Hash containing information about domain registration.
Virtuozzo Container subscription:
platform_id ID of Container platform:
-1 - Unknown 0 - All 1 - Linux Vz2.0 3 - Linux Vz3.x 4 - Windows Vz3.x 5 - Linux Vz3.x EM64T 6 - Linux Vz3.x IA64 100 - Non-VZ 201 - Plesk for Unix 202 - Plesk for Windows
platform Platform name in text form.
traf_class
subscription.
app_resources Applications available for subscription.
is_root_access If root access allowed for Container.
ve_id Container ID.
ve Container name.
Plesk Client subscription:
traf_class
subscription.
plesk_client Hash containing information about Plesk client (ID,
node, status, etc.)
platform_id
subscription.
platform Plesk platform name in text form.
app_resources Applications available for subscription.
Plesk Domain subscription:
Page 63
XML API 63
traf_class Traffic class
ID, if such has been configured for
Hash containing information about Plesk domain (ID,
Plesk platform ID (name as for Virtuozzo Container
Hash containing information about server
Server platform ID (name as for Virtuozzo Container
Traffic class ID, if such has been configured for
out server
Subscription belongs to another account or in case a
subscription.
plesk_domain
node, status, etc.)
platform_id
subscription.
platform Plesk platform name in text form.
app_resources Applications available for subscription.
Plesk Dedicated Server subscription:
hw_id Server ID assigned in Parallels Business Automation.
server_properties
configuration.
Dedicated Server subscription:
platform_id
subscription.
platform Platform name in text form.
traf_class
subscription.
server_properties Hash containing information ab
configuration.
hw_id Server ID assigned in Parallels Business Automation.
SOAP Faults codes:
SubscrNotFound No subscription with ID passed.
AuthzError
reseller uses this function, to another resel le r.
Page 64
XML API 64
Example of get_subscr_info Returned Values
Examples of get_subscr_info function output depending on a subscription type are presented in this topic.
Dedicated server
{ 'goaway_date' => undef, 'prom_start_date' => '2007-09-10 08:54:12', 'trial_period' => '0', 'traf_class' => undef, 'plan_type' => '3', 'plan_type_txt' => 'Dedicated Server', 'account_no' => '3', 'renewal_policy' => '1', 'assigned_domains' => [], 'id' => '7', 'bm_attr' => [ { 'group_id' => '1', 'group_name' => 'Hard Disk', 'bm_attr_id' => '2', 'name' => '80 GB', 'subscr_id' => '7', 'is_complimentary' => '0' }, { 'group_id' => '2', 'group_name' => 'Memory', 'bm_attr_id' => '5', 'name' => '512 MB DDR', 'subscr_id' => '7', 'is_complimentary' => '0' }, { 'group_id' => '3', 'group_name' => 'Processor', 'bm_attr_id' => '8', 'name' => 'AMD Athlon64 3000', 'subscr_id' => '7', 'is_complimentary' => '0' }, { 'group_id' => '5', 'group_name' => 'Operating System', 'bm_attr_id' => '14', 'name' => 'Windows Server 2003', 'subscr_id' => '7', 'is_complimentary' => '0' } ], 'period' => '2592000', 'prom_id' => '0', 'name' => 'DS1234', 'questions' => [], 'prom_end_date' => undef, 'custom_subscr_fee' => undef, 'is_traffic_overused' => '0', 'end_date' => '2008-11-30 00:00:00', 'plan_name' => 'DS', 'next_period' => '2592000', 'base_date' => '2000-01-30 00:00:00', 'res_info' => [ {
Page 65
XML API 65
'short_name' => 'numstaticip', 'is_unlim' => '0', 'is_advanced' => '0', 'id' => '7', 'value' => '1', 'name' => 'Number of Static IP addresses', 'is_domain' => '0', 'is_countable' => '1', 'max_value' => '1048576', 'overuse_rate' => '0.000000', 'is_ve_related' => '0', 'is_metered' => '0', 'res_id' => '201', 'is_reducible' => '1', 'multiplier' => '1', 'units' => 'ip(s)' }, { 'short_name' => 'numdnshosting', 'is_unlim' => '0', 'id' => '7', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of domains with DNS hosting provided', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1048576', 'is_metered' => '0', 'res_id' => '208', 'is_reducible' => '0', 'units' => 'domain', 'multiplier' => '1' } ], 'server_properties' => { 'port' => '', 'identification' => 'DS1234', 'switch_id' => '0', 'ipaddresses' => [ '12.13.14.15', '12.13.14.16' ], 'comment' => 'test dedicated', 'switch' => undef, 'rack' => undef, 'id' => '3', 'attributes' => [ { 'attr_id' => '6', 'name' => '1024 MB DDR' }, { 'attr_id' => '11', 'name' => 'VIRUS Protection' }, { 'attr_id' => '3', 'name' => '120 GB' }, { 'attr_id' => '13', 'name' => 'ROOT Access' },
Page 66
XML API 66
{ 'attr_id' => '9', 'name' => 'Dual Intel Xeon D 2.8 GHz' }, { 'attr_id' => '12', 'name' => 'Development Tools' }, { 'attr_id' => '15', 'name' => 'Fedora Linux' } ], 'form_factor' => '45' }, 'plan_sid' => '16', 'status' => '1', 'is_upgrade' => undef, 'is_notify' => undef, 'prev_status' => '10', 'create_order_id' => '31', 'status_txt' => 'active', 'grace_date' => '2008-05-14 08:48:21', 'billable_items' => [], 'start_date' => '2007-09-10 08:54:12', 'platform' => 'Non-VZ', 'termination_date' => undef, 'hw_id' => '3', 'expiration_date' => '2008-10-26 00:00:00', 'plan_id' => '16', 'platform_id' => '100' };
Miscellaneous Subscription
{ 'goaway_date' => undef, 'prom_start_date' => '2008-04-29 11:25:58', 'trial_period' => '0', 'plan_type' => '7', 'plan_type_txt' => 'Miscellaneous', 'account_no' => '2', 'renewal_policy' => '1', 'assigned_domains' => [ 'fdgfdgdfg.com' ], 'id' => '166', 'bm_attr' => [], 'period' => '2592000', 'prom_id' => '0', 'name' => 'Miscellaneous (34)', 'questions' => [ { 'question' => 'Question 1', 'value' => 'answer 1', 'question_id' => '1', 'hp_id' => '238', 'subscr_id' => '166' }, { 'question' => 'Question 2', 'value' => 'answer 2', 'question_id' => '2', 'hp_id' => '238', 'subscr_id' => '166' },
Page 67
XML API 67
{ 'question' => 'Question 3', 'value' => 'answer 3', 'question_id' => '3', 'hp_id' => '238', 'subscr_id' => '166' } ], 'prom_end_date' => undef, 'custom_subscr_fee' => undef, 'end_date' => '2008-05-29 00:00:00', 'plan_name' => 'Misc 21', 'next_period' => '7776000', 'base_date' => '2008-05-29 00:00:00', 'res_info' => [ { 'short_name' => 'numdnshosting', 'is_unlim' => '0', 'is_advanced' => '0', 'id' => '166', 'value' => '10', 'name' => 'Number of domains with DNS hosting provided', 'is_domain' => '0', 'is_countable' => '1', 'max_value' => '1048576', 'overuse_rate' => '1.000000', 'is_ve_related' => '0', 'is_metered' => '0', 'res_id' => '4000', 'is_reducible' => '0', 'multiplier' => '1', 'units' => 'domain' } ], 'plan_sid' => '127', 'status' => '1', 'is_upgrade' => undef, 'is_notify' => undef, 'prev_status' => '3', 'create_order_id' => '922', 'status_txt' => 'active', 'grace_date' => undef, 'billable_items' => [], 'start_date' => '2008-04-29 11:25:58', 'termination_date' => undef, 'expiration_date' => undef, 'plan_id' => '241' };
Plesk Client Subscription
{ 'goaway_date' => '2008-03-08 00:00:00', 'prom_start_date' => '2007-12-21 13:31:32', 'trial_period' => '0', 'traf_class' => undef, 'plan_type' => '10', 'plan_type_txt' => 'Plesk Client', 'account_no' => '4', 'renewal_policy' => '0', 'assigned_domains' => [ 'sub-cli-2.com' ], 'id' => '36', 'bm_attr' => [], 'period' => '2592000', 'prom_id' => '0',
Page 68
XML API 68
'name' => 'Dr. John Lector (4-1047)', 'questions' => [], 'app_resources' => [], 'prom_end_date' => undef, 'plesk_client' => { 'status' => '0', 'status_txt' => 'active', 'subscr_id' => '36', 'hw_id' => '1', 'id' => '244', 'plesk_status' => '0', 'plesk_id' => '26', 'plesk_name' => 'Dr. John Lector (4-1047)' }, 'custom_subscr_fee' => undef, 'is_traffic_overused' => '0', 'end_date' => '2008-02-21 13:37:43', 'plan_name' => 'PC Win Uniq HN', 'next_period' => '2592000', 'base_date' => '2007-12-21 13:37:43', 'res_info' => [ { 'short_name' => 'pc_diskquota', 'is_unlim' => '0', 'is_advanced' => '0', 'id' => '36', 'value' => '100', 'name' => 'Disk space quota', 'is_domain' => '0', 'is_countable' => '1', 'max_value' => '1024000', 'overuse_rate' => '0.000000', 'is_ve_related' => '0', 'is_metered' => '0', 'res_id' => '1300', 'is_reducible' => '0', 'multiplier' => '1048576', 'units' => 'MB' }, { 'short_name' => 'pc_numwebusers', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of web users', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1302', 'is_reducible' => '0', 'units' => 'users', 'multiplier' => '1' }, { 'short_name' => 'pc_nummailbox', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mailboxes', 'is_ve_related' => '0',
Page 69
XML API 69
'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1304', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_mailboxquota', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Mailbox quota', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '102400', 'is_metered' => '0', 'res_id' => '1305', 'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576' }, { 'short_name' => 'pc_nummailredir', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mail redirects', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1306', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_nummailgrp', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mail groups', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1307', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_nummailautoresp', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0',
Page 70
XML API 70
'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mail autoresponders', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1308', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_nummaillist', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mailing lists', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1309', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_numwebapp', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of web applications', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1310', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_numsubdomains', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of subdomains', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1311', 'is_reducible' => '0', 'units' => 'subdomains', 'multiplier' => '1' },
Page 71
XML API 71
{ 'short_name' => 'pc_numdomains', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '2', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of domains', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1312', 'is_reducible' => '0', 'units' => 'domains', 'multiplier' => '1' }, { 'short_name' => 'pc_numips', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '0', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of IP', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1313', 'is_reducible' => '0', 'units' => 'ip(s)', 'multiplier' => '1' }, { 'short_name' => 'pc_mysqldbquota', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '100', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'mysql database quota', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1024000', 'is_metered' => '0', 'res_id' => '1321', 'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576' }, { 'short_name' => 'pc_micsqldbquota', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '100', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'microsoft sql database quota', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1024000', 'is_metered' => '0',
Page 72
XML API 72
'res_id' => '1322', 'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576' }, { 'short_name' => 'pc_micsqlnumdb', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'maximum number of microsoft sql serever databases', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1024', 'is_metered' => '0', 'res_id' => '1323', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_sslshlinksnumber', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'maximum number of shared ssl links', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1000', 'is_metered' => '0', 'res_id' => '1324', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_subftpusers', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of FTP subaccounts', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1000', 'is_metered' => '0', 'res_id' => '1325', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_fpseusers', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1',
Page 73
XML API 73
'is_domain' => '0', 'name' => 'Maximum number of Microsoft FrontPage subaccounts', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1000', 'is_metered' => '0', 'res_id' => '1326', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_numodbc', 'is_unlim' => '1', 'id' => '36', 'is_advanced' => '0', 'value' => '0', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of ODBC connections', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '0', 'is_metered' => '0', 'res_id' => '1327', 'is_reducible' => '1', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_numiispools', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of IIS application pools', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1024', 'is_metered' => '0', 'res_id' => '1331', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pc_mysqlnumdb', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'maximum number of MySQL databases', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1024', 'is_metered' => '0', 'res_id' => '1332', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, {
Page 74
XML API 74
'short_name' => 'pc_numdomainalias', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'maximum number of domain aliases', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1333', 'is_reducible' => '0', 'units' => 'alias(es)', 'multiplier' => '1' }, { 'short_name' => 'pc_totalmailbquota', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Total mailboxes quota', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '102400', 'is_metered' => '0', 'res_id' => '1334', 'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576' }, { 'short_name' => 'numdnshosting', 'is_unlim' => '0', 'id' => '36', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of domains with DNS hosting provided', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1048576', 'is_metered' => '0', 'res_id' => '1335', 'is_reducible' => '0', 'units' => 'domain', 'multiplier' => '1' }, { 'short_name' => 'pc_numcfdsn', 'is_unlim' => '1', 'id' => '36', 'is_advanced' => '0', 'value' => '0', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of ColdFusion DSN connections', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '0',
Page 75
XML API 75
'is_metered' => '0', 'res_id' => '1336', 'is_reducible' => '1', 'units' => 'unit', 'multiplier' => '1' } ], 'plan_sid' => '49', 'status' => '11', 'is_upgrade' => undef, 'is_notify' => undef, 'add_params' => '76', 'prev_status' => '10', 'create_order_id' => '151', 'billable_items' => [], 'grace_date' => '2008-03-08 00:00:00', 'status_txt' => 'expired', 'start_date' => '2007-12-21 13:31:32', 'platform' => 'Plesk for Windows', 'termination_date' => undef, 'expiration_date' => '2009-03-08 00:00:00', 'plan_id' => '51', 'platform_id' => '202' };
Plesk Domain Subscription
{ 'goaway_date' => undef, 'prom_start_date' => '2008-03-03 12:35:00', 'trial_period' => '0', 'traf_class' => undef, 'plan_type_txt' => 'Plesk Domain', 'plan_type' => '9', 'account_no' => '5', 'renewal_policy' => '0', 'assigned_domains' => [ 'hadelen.com' ], 'id' => '90', 'bm_attr' => [], 'period' => '31104000', 'prom_id' => '0', 'name' => 'hadelen.com', 'questions' => [], 'app_resources' => [], 'prom_end_date' => undef, 'custom_subscr_fee' => undef, 'is_traffic_overused' => '0', 'end_date' => '2009-11-14 00:00:00', 'plan_name' => 'PD check webmail', 'next_period' => '31104000', 'base_date' => '2009-11-14 00:00:00', 'res_info' => [ { 'short_name' => 'pd_diskquota', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '100', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Disk space quota', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1024000', 'is_metered' => '0', 'res_id' => '1200',
Page 76
XML API 76
'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576' }, { 'short_name' => 'pd_numwebusers', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of web users', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1202', 'is_reducible' => '0', 'units' => 'users', 'multiplier' => '1' }, { 'short_name' => 'pd_nummailbox', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mailboxes', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1204', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_mailboxquota', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Mailbox quota', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '102400', 'is_metered' => '0', 'res_id' => '1205', 'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576' }, { 'short_name' => 'pd_nummailredir', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mail redirects',
Page 77
XML API 77
'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1206', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_nummailgrp', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mail groups', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1207', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_nummailautoresp', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mail autoresponders', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1208', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_nummaillist', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mailing lists', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1209', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_numwebapp', 'is_unlim' => '0', 'id' => '90',
Page 78
XML API 78
'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of web applications', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1210', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_numsubdomains', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of subdomains', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1211', 'is_reducible' => '0', 'units' => 'subdomains', 'multiplier' => '1' }, { 'short_name' => 'pd_ip', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '0', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Dedicated IPs', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1', 'is_metered' => '0', 'res_id' => '1212', 'is_reducible' => '0', 'units' => 'IP', 'multiplier' => '1' }, { 'short_name' => 'pd_harddiskquota', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '100', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Hard disk space quota', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1024000', 'is_metered' => '0', 'res_id' => '1219', 'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576'
Page 79
XML API 79
}, { 'short_name' => 'pd_numdomainalias', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '0', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of domain aliases', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '1220', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_mysqldbquota', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '100', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Mysql database quota', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1024000', 'is_metered' => '0', 'res_id' => '1221', 'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576' }, { 'short_name' => 'pd_micsqldbquota', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '100', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Microsoft sql database quota', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1024000', 'is_metered' => '0', 'res_id' => '1222', 'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576' }, { 'short_name' => 'pd_micsqlnumdb', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of microsoft sql serever databases', 'is_ve_related' => '0', 'overuse_rate' => '0.000000',
Page 80
XML API 80
'max_value' => '1024', 'is_metered' => '0', 'res_id' => '1223', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_sslshlinksnumber', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of shared ssl links', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1000', 'is_metered' => '0', 'res_id' => '1224', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_mysqlnumdb', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of MySQL databases', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1024', 'is_metered' => '0', 'res_id' => '1225', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_totalmailboxquota', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Total mailboxes quota', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '102400', 'is_metered' => '0', 'res_id' => '1226', 'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576' }, { 'short_name' => 'numdnshosting', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1',
Page 81
XML API 81
'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of domains with DNS hosting provided', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1048576', 'is_metered' => '0', 'res_id' => '1227', 'is_reducible' => '0', 'units' => 'domain', 'multiplier' => '1' }, { 'short_name' => 'pd_subftpusers', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of FTP subaccounts', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1000', 'is_metered' => '0', 'res_id' => '1228', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_fpseusers', 'is_unlim' => '0', 'id' => '90', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of Microsoft FrontPage subaccounts', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '1000', 'is_metered' => '0', 'res_id' => '1229', 'is_reducible' => '0', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'pd_numodbc', 'is_unlim' => '1', 'id' => '90', 'is_advanced' => '0', 'value' => '0', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of ODBC connections', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '0', 'is_metered' => '0', 'res_id' => '1230', 'is_reducible' => '1', 'units' => 'unit', 'multiplier' => '1'
Page 82
XML API 82
}, { 'short_name' => 'pd_numcfdsn', 'is_unlim' => '1', 'id' => '90', 'is_advanced' => '0', 'value' => '0', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Maximum number of ColdFusion DSN connections', 'is_ve_related' => '0', 'overuse_rate' => '0.000000', 'max_value' => '0', 'is_metered' => '0', 'res_id' => '1231', 'is_reducible' => '1', 'units' => 'unit', 'multiplier' => '1' } ], 'plan_sid' => '113', 'status' => '1', 'is_upgrade' => undef, 'is_notify' => undef, 'add_params' => '90', 'prev_status' => '3', 'create_order_id' => '424', 'status_txt' => 'active', 'grace_date' => undef, 'billable_items' => [], 'start_date' => '2008-03-03 12:35:00', 'platform' => 'Plesk for Windows', 'plesk_domain' => { 'status' => '0', 'hw_id' => '10', 'subscr_id' => '90', 'plesk_status' => '0', 'plesk_id' => '102', 'plesk_ip' => '10.26.0.97', 'status_txt' => 'active', 'id' => '206', 'plesk_name' => 'hadelen.com' }, 'termination_date' => undef, 'expiration_date' => undef, 'plan_id' => '113', 'platform_id' => '202' };
Virtuozzo Container Subscription
{ 'goaway_date' => undef, 'prom_start_date' => '2008-03-31 13:09:36', 'is_root_access' => '1', 'trial_period' => '0', 'traf_class' => undef, 'plan_type_txt' => 'Container', 'plan_type' => '1', 'account_no' => '3', 'renewal_policy' => '1', 'assigned_domains' => [ 'app.ssl.lmtest.ru' ], 'id' => '129', 'bm_attr' => [], 'period' => '2592000',
Page 83
XML API 83
'prom_id' => '0', 'name' => 'Plesk', 'questions' => [], 'app_resources' => [ { 'name' => 'Majordomo with Autoresponder', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'autoresponder-majordomo-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '0', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Awstats Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'awstats-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '1', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Jdk Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'jdk-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '0', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Jre Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'jre-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '0', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Mod Perl Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'mod_perl-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '1', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Mod Ssl Fc4', 'is_upgrade' => '0',
Page 84
XML API 84
'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'mod_ssl-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '1', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Mysql Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'mysql-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '1', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Openwebmail Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'openwebmail-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '0', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Php Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'php-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '1', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Phpmyadmin Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'phpmyadmin-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '1', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'PostgreSQL', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'postgresql-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '0', 'type' => '1', 'id' => '129',
Page 85
XML API 85
'cid' => '1' }, { 'name' => 'Proftpd Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'proftpd-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '0', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Psa Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'psa-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '1', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'SSH 3.1', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'ssh', 'subscr_fee' => '0.00', 'is_complementary' => '1', 'type' => '4', 'id' => '129', 'cid' => '3' }, { 'name' => 'Usermin Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'usermin-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '0', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'Webmin Fc4', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00', 'app_key' => 'webmin-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '0', 'type' => '1', 'id' => '129', 'cid' => '1' }, { 'name' => 'ZendOptimizer', 'is_upgrade' => '0', 'is_notify' => '0', 'setup_fee' => '0.00',
Page 86
XML API 86
'app_key' => 'zend-optimizer-fc4', 'subscr_fee' => '0.00', 'is_complementary' => '0', 'type' => '1', 'id' => '129', 'cid' => '1' } ], 'prom_end_date' => undef, 'custom_subscr_fee' => undef, 'is_traffic_overused' => '0', 'end_date' => '2008-06-01 08:18:06', 'plan_name' => '99026 test', 've_id' => '1027', 'next_period' => '2592000', 'base_date' => '2008-05-01 08:18:06', 'res_info' => [ { 'short_name' => 'numstaticip', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of Static IP addresses', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '1048576', 'is_metered' => '0', 'res_id' => '25', 'is_reducible' => '0', 'units' => 'ip(s)', 'multiplier' => '1' }, { 'short_name' => 'nummailbox', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '0', 'value' => '1024', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of mailboxes', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '1048576', 'is_metered' => '0', 'res_id' => '38', 'is_reducible' => '0', 'units' => 'mailbox', 'multiplier' => '1' }, { 'short_name' => 'numwebsites', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of websites', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '1048576', 'is_metered' => '0', 'res_id' => '69',
Page 87
XML API 87
'is_reducible' => '0', 'units' => 'website', 'multiplier' => '1' }, { 'short_name' => 'numdbs', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of databases', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '1048576', 'is_metered' => '0', 'res_id' => '72', 'is_reducible' => '0', 'units' => 'database', 'multiplier' => '1' }, { 'short_name' => 'numbks', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of backups', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '1048576', 'is_metered' => '0', 'res_id' => '74', 'is_reducible' => '0', 'units' => 'backup', 'multiplier' => '1' }, { 'short_name' => 'sizebks', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '0', 'value' => '100', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Total size of all backups', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '1048576', 'is_metered' => '0', 'res_id' => '76', 'is_reducible' => '0', 'units' => 'MB', 'multiplier' => '1048576' }, { 'short_name' => 'numdnshosting', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '0', 'value' => '1', 'is_countable' => '1', 'is_domain' => '0',
Page 88
XML API 88
'name' => 'Number of domains with DNS hosting provided', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '1048576', 'is_metered' => '0', 'res_id' => '100', 'is_reducible' => '0', 'units' => 'domain', 'multiplier' => '1' }, { 'short_name' => 'kmemsize', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '10800', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Size of unswappable kernel memory', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2097151', 'is_metered' => '0', 'res_id' => '101', 'is_reducible' => '1', 'units' => 'KB', 'multiplier' => '1024' }, { 'short_name' => 'lockedpages', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '256', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Unswappable user pages', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '102', 'is_reducible' => '1', 'units' => 'pages', 'multiplier' => '1' }, { 'short_name' => 'vmguarpages', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '6144', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Memory allocation guarantee', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '103', 'is_reducible' => '1', 'units' => 'pages', 'multiplier' => '1' }, { 'short_name' => 'shmpages',
Page 89
XML API 89
'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '21504', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Total size of SysV IPC shared memory', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '104', 'is_reducible' => '1', 'units' => 'pages', 'multiplier' => '1' }, { 'short_name' => 'privvmpages', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '655360', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Total size of private pages', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '105', 'is_reducible' => '1', 'units' => 'pages', 'multiplier' => '1' }, { 'short_name' => 'numproc', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '240', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of processes', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '32000', 'is_metered' => '0', 'res_id' => '106', 'is_reducible' => '1', 'units' => '', 'multiplier' => '1' }, { 'short_name' => 'physpages', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '2147483647', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Total number of physical memory pages', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '107', 'is_reducible' => '1',
Page 90
XML API 90
'units' => 'pages', 'multiplier' => '1' }, { 'short_name' => 'oomguarpages', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '6144', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Guaranteed allocating address space', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '108', 'is_reducible' => '1', 'units' => 'pages', 'multiplier' => '1' }, { 'short_name' => 'numfile', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '9312', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of open files', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '109', 'is_reducible' => '1', 'units' => '', 'multiplier' => '1' }, { 'short_name' => 'numtcpsock', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '360', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of TCP/IP sockets', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '110', 'is_reducible' => '1', 'units' => '', 'multiplier' => '1' }, { 'short_name' => 'numflock', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '206', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of file locks', 'is_ve_related' => '1',
Page 91
XML API 91
'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '111', 'is_reducible' => '1', 'units' => '', 'multiplier' => '1' }, { 'short_name' => 'numpty', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '16', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of pseudo-terminals', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '112', 'is_reducible' => '1', 'units' => '', 'multiplier' => '1' }, { 'short_name' => 'numsiginfo', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '256', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of siginfo structures', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2560', 'is_metered' => '0', 'res_id' => '113', 'is_reducible' => '1', 'units' => '', 'multiplier' => '1' }, { 'short_name' => 'tcpsndbuf', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '1680', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Total size of TCP send buffers', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2095171', 'is_metered' => '0', 'res_id' => '114', 'is_reducible' => '1', 'units' => 'KB', 'multiplier' => '1024' }, { 'short_name' => 'tcprcvbuf', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1',
Page 92
XML API 92
'value' => '1680', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Total size of TCP receive buffers', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2095171', 'is_metered' => '0', 'res_id' => '115', 'is_reducible' => '1', 'units' => 'KB', 'multiplier' => '1024' }, { 'short_name' => 'othersockbuf', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '2048', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Total size of other socket buffers', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2097151', 'is_metered' => '0', 'res_id' => '116', 'is_reducible' => '1', 'units' => 'KB', 'multiplier' => '1024' }, { 'short_name' => 'dgramrcvbuf', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '256', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Total size of UDP receive buffers', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2097151', 'is_metered' => '0', 'res_id' => '117', 'is_reducible' => '1', 'units' => 'KB', 'multiplier' => '1024' }, { 'short_name' => 'numiptent', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '128', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of entries in IP tables', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '3000', 'is_metered' => '0', 'res_id' => '118', 'is_reducible' => '1', 'units' => '', 'multiplier' => '1' },
Page 93
XML API 93
{ 'short_name' => 'netrateguar', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '0', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Guaranteed network rate', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '1024', 'is_metered' => '0', 'res_id' => '119', 'is_reducible' => '1', 'units' => 'MBit/sec', 'multiplier' => '1024' }, { 'short_name' => 'diskspace', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '0', 'value' => '1024', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Disk space quota', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '4194303', 'is_metered' => '0', 'res_id' => '121', 'is_reducible' => '1', 'units' => 'MB', 'multiplier' => '1024' }, { 'short_name' => 'diskinodes', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '200000', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Disk inode quota', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '122', 'is_reducible' => '1', 'units' => 'inodes', 'multiplier' => '1' }, { 'short_name' => 'cpuunits', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '0', 'value' => '1000', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'CPU usage', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '500000', 'is_metered' => '0',
Page 94
XML API 94
'res_id' => '124', 'is_reducible' => '1', 'units' => 'unit', 'multiplier' => '1' }, { 'short_name' => 'dcachesize', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '3624960', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Size of busy dentry/inode cache', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147482624', 'is_metered' => '0', 'res_id' => '125', 'is_reducible' => '1', 'units' => 'bytes', 'multiplier' => '1' }, { 'short_name' => 'quotaugidlimit', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '100', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Limit of user quotas', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '126', 'is_reducible' => '1', 'units' => '', 'multiplier' => '1' }, { 'short_name' => 'numothersock', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '360', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'Number of sockets other than TCP/IP', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '2147483647', 'is_metered' => '0', 'res_id' => '127', 'is_reducible' => '1', 'units' => '', 'multiplier' => '1' }, { 'short_name' => 'rate_bound', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '0', 'is_countable' => '0', 'is_domain' => '0',
Page 95
XML API 95
'name' => 'Guaranteed network rate is network rate limit', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '1', 'is_metered' => '0', 'res_id' => '178', 'is_reducible' => '1', 'units' => '', 'multiplier' => '1' }, { 'short_name' => 'cpulimit', 'is_unlim' => '0', 'id' => '129', 'is_advanced' => '1', 'value' => '100', 'is_countable' => '1', 'is_domain' => '0', 'name' => 'CPU limit', 'is_ve_related' => '1', 'overuse_rate' => '0.000000', 'max_value' => '100', 'is_metered' => '0', 'res_id' => '181', 'is_reducible' => '1', 'units' => '%', 'multiplier' => '1' } ], 'plan_sid' => '100', 'status' => '1', 'is_upgrade' => undef, 'is_notify' => undef, 'add_params' => undef, 'prev_status' => '3', 'create_order_id' => '696', 'status_txt' => 'active', 'grace_date' => undef, 'billable_items' => [], 'start_date' => '2008-03-31 13:09:36', 'platform' => 'Linux Vz3.x', 'termination_date' => undef, 'expiration_date' => undef, 'plan_id' => '206', 'platform_id' => '3', 've' => { 'slm_mode' => '0', 'hn_ip_address' => '10.30.64.248', 'status' => 'running', 'apps' => undef, 'qos' => undef, 'hn_vz_interface' => '2', 'ips' => undef, 'offline_management' => '0', 'status_txt' => 'running', 'id' => '1027', 'is_root_pwd_syncd' => '1', 'ip_address' => '10.25.41.34', 'vza_status' => 'running', 'is_bandwidth_limited' => undef, 'is_custom_resolver' => undef, 'vendor_id' => '1', 'hw_id' => '2', 'os_tmpl_id' => '56', 'hn_service_ve_ip' => '10.24.8.101', 'account_id' => '3',
Page 96
XML API 96
'utf_ve_name' => 'Plesk', 'platform_id' => '3', 've_name' => 'Plesk' } };
Domain Registration Subscription
{ 'goaway_date' => undef, 'plan_sid' => '185', 'status' => '1', 'is_notify' => undef, 'prev_status' => '3', 'create_order_id' => '884', 'plan_type' => '6', 'plan_type_txt' => 'Domain Registration', 'account_no' => '6', 'domain' => { 'domain' => 'ros-test-851.cc', 'dns_enabled' => '1', 'added_by' => '1', 'nsset_id' => '1', 'ns_info' => undef, 'action' => '2', 'utf_domain' => 'ros-test-851.cc' }, 'renewal_policy' => '1', 'status_txt' => 'active', 'grace_date' => undef, 'id' => '163', 'start_date' => '2008-04-22 16:52:41', 'period' => '31104000', 'name' => 'ros-test-851.cc', 'termination_date' => undef, 'expiration_date' => undef, 'regdomain' => { 'real_expire_time_check' => undef, 'reg_status' => '1', 'period' => '1', 'plugin_name' => 'WebNIC', 'real_expire_time' => undef, 'reg_time' => '2008-04-22 16:52:42', 'domain' => 'ros-test-851.cc', 'id_protect' => undef, 'registrar' => 'WebNIC', 'action' => '2', 'reg_status_txt' => 'registered', 'expire_time' => '2009-04-22 16:52:42' }, 'plan_id' => '189', 'custom_subscr_fee' => undef, 'end_date' => '2009-04-22 16:52:41', 'plan_name' => '[WebNIC] Domain Registration', 'next_period' => '31104000', 'base_date' => '1941-04-01 13:38:32' };
Page 97
XML API 97

create_custom_invoice

Optional parameter: ID of subscription. Optional
other items included in an invoice.
item provisioning start date. Optional
er. If not specified, invoice creation date is
registered for an account that stands as vendor in
person that places an order
The function allows adding an invoice manually, without aforegoing orders. A custom includes custom items and fees.
Parameters
subscr_id
parameter.
vendor_id ID of vendor account.
description Invoice description text.
account_no ID of account an invoice is created for.
items Services or any
Array of hashes of the following kind:
{
rate - fee for an item; quantity - number of items (optional), 1 by default; comment - item name or comment to an item; start_time ­paramet used.
}
amount Invoice total amount. Optional parameter.
Returns:
In case of success, ID of added invoice is returned.
In case of error, error message is returned.
SOAP Faults codes:
NoOrderForProvider Provider tries to place invoice for them selv es.
InvalidAccount A person logged in and trying to place an invoice is not
respect to an account an invoice is placed for.
Initiator Failed to find a registered
by initiator_email passed.
Page 98
XML API 98
InvoiceFailed
A list of invoice items has been passed, but amount specified for at least one of items is negative. In this
amount passed is zero. In this case, an invoice amount
case, fees for all invoice items must be positive.
'Wrong amount value' A list of invoice items has not been passed and invoice
must be either positive or negative (for credit invoice).

get_account_campaigns

The function allows getting the information about marketing campaigns applied to a given account.
Parameters:
account_id ID of account the list of campaigns is needed.
Returns:
List o f arrays, each array consists of campaign ID (in database) and campaign digest (campaign ID used in campaign URL):
Example of returned value:
return [
[3,'97651bf001'],....]
SOAP Faults codes:
No specific codes.
Page 99
XML API 99

HSPC/API/Account

Optional parameter: If specified, account is
Optional parameter: A flag that defines whether

create_customer

The function adds a new customer account and person.
Parameters:
address1 Address line 1.
address2 Optional parameter: Address line 2.
city City.
comment Comment to account.
company_name
business.
country Customer country.
email Customer administrative e-mail.
fax_src Customer fax number.
first_name Customer first name.
fraud_check
an account is to be checked by anti-fraud manager or not.
gender Customer gender.
insertion Customer name insertion.
lang Customer personal language.
last_name Customer last name.
middle_name Customer middle name.
mobile_src Customer mobile phone.
password Customer personal password.
phone_src Customer phone number.
prefix Customer name prefix.
Page 100
XML API 100
state Customer state of residence.
suffix Customer name suffix.
tax_ex_number Customer VAT number.
zip Customer address zip code.
ext_data List of extended attributes
timezone Customer time zone.
Returns: {account_id => NUMBER}
SOAP Faults codes:
NewAccountsDenied New accounts creation is denied.
UserExtData Extended attribute addition error.
UserAccount Account creation error.
Loading...