Net::Plesk::Method::client_ippool_add_ip - Perl extension for Plesk XML


Net-Plesk documentation Contained in the Net-Plesk distribution.

Index


Code Index:

NAME

Top

Net::Plesk::Method::client_ippool_add_ip - Perl extension for Plesk XML Remote API client ippool addition

SYNOPSIS

Top

  use Net::Plesk::Method::client_ippool_add_ip

  my $p = new Net::Plesk::Method::client_ippool_add_ip ( $clientID, $ipaddress );

DESCRIPTION

Top

This module implements an interface to construct a request for a ippool addition to a client using SWSOFT's Plesk.

METHODS

Top

init args ...

Initializes a Plesk client ippool_add_ip. The clientID and ipaddress options are required.

BUGS

Top

  Creepy crawlies.

SEE ALSO

Top

SWSOFT Plesk Remote API documentation (1.4.0.0 or later)

AUTHOR

Top

Jeff Finucane <jeff@cmh.net>

COPYRIGHT AND LICENSE

Top


Net-Plesk documentation Contained in the Net-Plesk distribution.
package Net::Plesk::Method::client_ippool_add_ip;

use strict;

use vars qw( $VERSION @ISA $AUTOLOAD $DEBUG );

@ISA = qw( Net::Plesk::Method );
$VERSION = '0.01';

$DEBUG = 0;

sub init {
  my ($self, $clientid, $ipaddress) = @_;
  $$self = join ( "\n", (
	            '<client>',
	            '<ippool_add_ip>',
	            '<client_id>',
	            $self->encode($clientid),
	            '</client_id>',
	            '<ip_address>',
	            $self->encode($ipaddress),
	            '</ip_address>',
	            '</ippool_add_ip>',
	            '</client>',
	          ));
}

1;