API::PleskExpand::Domains - extension module to support operations with Plesk domains (only create) from Plesk Expand.


API-PleskExpand documentation  | view source Contained in the API-PleskExpand distribution.

Index


NAME

Top

API::PleskExpand::Domains - extension module to support operations with Plesk domains (only create) from Plesk Expand.

SYNOPSIS

Top

 Directly not used, calls via API::Plesk.

 use API::PleskExpand;
 use API::Plesk::Response;

 Some code

DESCRIPTION

Top

The method used to add domain hosting account to a certain Plesk account from Plesk Expand.

METHODS

Top

create()

Params:

  dname              => 'yandex.ru',   # domain name
  client_id          => 9,             # add domain to client with certain id
  'template-id'      => 1,             # domain template id
  ftp_login          => 'nrgsdasd',    # username for ftp 
  ftp_password       => 'dasdasd',     # password for ftp account
  attach_to_template => 1,             # attach domain to template ? 1 -- yes, 0 -- no

Return:

  $VAR1 = bless( {
    'answer_data' => [ {
        'server_id'     => '1',
        'status'        => 'ok',
        'expiration'    => '-1',
        'tmpl_id'       => '1',
        'client_id'     => '16',
        'id' => '15'
    } ],
        'error_codes' => ''
  }, 'API::Plesk::Response' );




EXPORT

Top

None.

AUTHOR

Top

Odintsov Pavel <nrg[at]cpan.org>

COPYRIGHT AND LICENSE

Top


API-PleskExpand documentation  | view source Contained in the API-PleskExpand distribution.