
QualysGuard::Request - Simple interface to QualysGuard API

Version 0.04

use QualysGuard::Request;
$QualysGuard::Request::Username = "username";
$QualysGuard::Request::Password = "password";
my $qualys_request = QualysGuard::Request->new( 'map_report_list' );
# - provide map_report_list function arguments
$qualys_request->attributes({
'last' => 'yes',
'domain' => 'example.com',
});
# - qualys_response is a QualysGuard::Response::MapReportList object
my $qualys_response = $qualys_request->submit();
if ( $qualys_response->is_error() ) {
die $qualys_response->get_error();
}
# - QualysGuard::Response is a subclass of XML::XPath which allows
# - XML::XPath functionality in each of the QualysGuard::Response subclasses.
# - In short you can extract data using the XML::XPath interface.
my @map_refs = $qualys_response->findnodes('/SOME/XPATH/');
...

Each XML response from the QualysGuard API has an associated doctype definition (DTD). Therefore each DTD has an associated subclass of QualysGuard::Response. Below is a list of the QualysGuard functions supported by QualysGuard::Request.

Returns a new QualysGuard::Request object.
The attributes method takes a single hashref argument. The hashref should contain all of the needed QualysGuard function arguments. Refer to the QualysGuard API documentation for list of arguments for each of the available functions.
Submits the request and returns a new subclass of QualysGuard::Response.

Patrick Devlin, <pdevlin at cpan.org>

Please report any bugs or feature requests to bug-qualysguard-request at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=QualysGuard::Request. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.
perldoc QualysGuard::Request
You can also look for information at:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=QualysGuard::Request


Copyright 2008 Patrick Devlin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Qualys and the QualysGuard product are registered trademarks of Qualys, Inc.