API-PleskExpand
view release on metacpan or search on metacpan
lib/API/PleskExpand/Domains.pm view on Meta::CPAN
#
# DESCRIPTION:
# Plesk Expand communicate interface. Static methods for managing domain accounts.
# AUTHORS:
# Pavel Odintsov (nrg) <pavel.odintsov@gmail.com>
#
#========================================================================
package API::PleskExpand::Domains;
use strict;
use warnings;
use API::Plesk::Methods;
use Data::Dumper;
our $VERSION = '1.04';
=head1 NAME
API::PleskExpand::Domains - extension module to support operations with Plesk domains (only create) from Plesk Expand.
=head1 SYNOPSIS
Directly not used, calls via API::Plesk.
use API::PleskExpand;
use API::Plesk::Response;
Some code
=head1 DESCRIPTION
The method used to add domain hosting account to a certain Plesk account from Plesk Expand.
=head1 METHODS
=over 3
=item 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' );
=back
=head1 EXPORT
None.
=cut
# Create element
# STATIC
( run in 0.402 second using v1.01-cache-2.11-cpan-39bf76dae61 )