API::Plesk::DatabaseUsers - extension module for managing database users.
Directly not used, calls via API::Plesk. use API::Plesk; use API::Plesk::Response; my $plesk_client = API::Plesk->new(%params); # See documentations for API::Plesk $plesk_client->Databases->create( 'name' => 'good_base', 'domain-id' => 12345, 'type' => 'MySQL', 'db-server-id' => 1, );
The method used to add database user to a certain Plesk database.
Params:
login - user name (lower case preferably), db-id - it specifies ID of the database where a new user will be created, password - it specifies the password of the database user.
Return:
response object with created user id in data filed.
Delete Plesk db user account from a certain base.
'db-id' - database id (del all users from a certain db) or 'id' - db user id in Plesk (del one user).
API::Plesk::Response object
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.