NAME
API::Plesk::Templates - extension module for obtaining information about the limitations of the template account.
SYNOPSIS
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'
);
DESCRIPTION
The module provides information extraction of the restrictions and permits from user account Templates. Creating templates via API possible, but not implemented.
METHODS
- get(%params)
-
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.
EXPORT
None.
SEE ALSO
Blank.
AUTHOR
Odintsov Pavel <nrg[at]cpan.org>
COPYRIGHT AND LICENSE
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.