Net::Akamai(3pm) User Contributed Perl Documentation Net::Akamai(3pm)NAME
Net::Akamai - Utility to interface with Akamai's API
SYNOPSIS
my $data = new Net::Akamai::RequestData(
email=>'my@email.com',
user => 'myuser',
pwd => 'mypass'
);
$data->add_url('http://www.myurl.com');
$data->add_url('http://www.myurl.com/somethingelse');
my $ap = new Net::Akamai(req_data=>$data);
my $res = $ap->purge;
if (!$res->accepted) {
die "$res";
}
elsif ($res->warning) {
warn "$res";
}
DESCRIPTION
Handles akamai purge request of multiple URLs
Patches welcome for extra functionality
Attributes
soap_version
SOAP::Lite version
proxy
akamai purge proxy
uri
akamai purge uri
soap
SOAP::Lite object
req_data
Net::Akamai::RequestData object to hold data associated with an akamai request
res_data
Net::Akamai::ResponseData object holds data associated with an akamai response
Methods
purge
initiate the purge request
TODO
more tests and doc
support to read urls from file
better error checking and failure reporting
AUTHOR
John Goulah <jgoulah@cpan.org>
CONTRIBUTORS
Aran Deltac <bluefeet@cpan.org>
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-12-22 Net::Akamai(3pm)
Check Out this Related Man Page
Net::Akamai::ResponseData(3pm) User Contributed Perl Documentation Net::Akamai::ResponseData(3pm)NAME
Net::Akamai::ResponseData - Object to hold response data
DESCRIPTION
Data container for an akamai purge response
Attributes
uri_index
Identifies the index of the first failed URL in the array. A value of -1 indicates no bad URLs, or error before parsing them.
result_code
Indicates sucess or failure of request
est_time
Estimated time for request to be processed in seconds
session_id
Unique id for request
result_msg
Explains result code
Methods
successful
Returns true if the result code is of the 1xx (successful) variety.
warning
Returns true if the result code is of the 2xx (warning) variety. The Akamai documentation states that "The remove request has been
accepted" even when a warning response is sent.
accepted
Returns true if the result code is of the 1xx (successful) or 2xx (warning) varieties. This indicates that the remove request was accepted
by Akamai. You should still check to see if there was a warning, and if their was report it.
message
if (!$res_data->accepted()) {
# These do the same thing:
die "$res_data";
die $res_data->message();
}
Returns a nicely formatted string containing the result_code and result_msg.
AUTHOR
John Goulah <jgoulah@cpan.org>
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-12-22 Net::Akamai::ResponseData(3pm)
Hi,
Need to change the following command to also purge the child directories after /data/tmp within one command (recursively check for X number of days old files and purge accordingly)?
e.g. /data/tmp/a, /data/tmp/a/b, /data/tmp/log.
find /data/tmp -type f -mtime +7 -exec rm -f {} \;
... (2 Replies)
Hi,
I have here a script which is used to purge older files/directories based on defined purge period. The script consists of 45 find commands, where each command will need to traverse through more than a million directories. Therefore a single find command executes around 22-25 mins... (7 Replies)
Hi, I have a purge directory called /b02/purge which has backed up directories like this
drwxrwxr-x 17 root root 4096 Jan 5 15:33 purge1
drwxrwxr-x 17 root root 4096 Jan 5 16:21 purge.new1
drwxrwxr-x 15 root root 4096 Jan 5 16:21 purge.new2
drwxrwxr-x 17 root root 4096 Jan 12... (3 Replies)
Hello,
I'm new to SCO and I require some help...
I have an OLD HD which is about to die and I want to replace it with a new HD.
When I clone the HD with either Acronis or Ghost it wont allow me to resize the UNIX partition and I'm stuck with 80% of the new drive as unused space.
I... (7 Replies)