API::Plesk::Templates - extension module for obtaining information about the limitations of the template account.


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

Index


NAME

Top

API::Plesk::Templates - extension module for obtaining information about the limitations of the template account.

SYNOPSIS

Top

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

Top

The module provides information extraction of the restrictions and permits from user account Templates. Creating templates via API possible, but not implemented.

METHODS

Top

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.

SEE ALSO

Top

Blank.

AUTHOR

Top

Odintsov Pavel <nrg[at]cpan.org>

COPYRIGHT AND LICENSE

Top


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