API::Plesk::Templates - extension module for obtaining information about the limitations of the template account.
Directly not used, calls via API::Plesk.
use API::Plesk; my $plesk_client = API::Plesk->new(%params); # See documentations for API::Plesk my $res1 = $plesk_client->Templates->get( name => 'tariff1', type => 'account' );
The module provides information extraction of the restrictions and permits from user account Templates. Creating templates via API possible, but not implemented.
Params:
name or id -- name or identifier desired template type can be 'domain' or 'account', has been implemented only account.
Template->get returned API::Plesk::Response object. Always returned arrref from response blocks (hash refs), if the request was alone, we need only the first element, ie $res->get_data->[0].
There are three result hash refs in this hash: limits, permissions and ip-pool. Ex: $res->get_data->[0]->{limits};
For more details, see the documentation for the Plesk.
None.
Blank.
Odintsov Pavel <nrg[at]cpan.org>
Copyright (C) 2008 by NRG
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install API::Plesk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm API::Plesk
CPAN shell
perl -MCPAN -e shell install API::Plesk
For more information on module installation, please visit the detailed CPAN module installation guide.