Net::XIPCloud - Perl extension for interacting with Internap's XIPCloud storage platform
use Net::XIPCloud;
my $xip = Net::XIPCloud->new( username => 'myusername', password => 'mypassword );
$xip->connect();
$xip->cp("fromcontainer","fromobject","tocontainer","toobject");
$xip->mv("fromcontainer","fromobject","tocontainer","toobject");
$xip->file("somecontainer","someobject");
$xip->file("somecontainer/some/pseudo/path/to/object");
$xip->ls();
$xip->ls("mycontainer");
$xip->ls("mycontainer/some/pseudo/path/");
$xip->mkdir("newcontainer");
$xip->mkdir("newcontainer/some/pseudo/path/");
$xip->rmdir("somecontainer");
$xip->du();
$xip->du("somecontainer");
my $data = $xip->get_value("somecontainer","someobject");
$xip->get_file("somecontainer","someobject","/tmp/someobject");
$xip->put_value("somecontainer","someobject",$data,"text/html");
$xip->put_file("somecontainer","someobject","/tmp/someobject","text/html");
$xip->get_fhstream("somecontainer","someobject",*STDOUT);
$xip->rm("somecontainer","someobject");
$xip->create_manifest("somecontainer","someobject");
$xip->chmod("somecontainer","public");
$xip->cdn("somecontainer","enable","logs",300);
$xip->cdn("somecontainer","disable");
$xip->cdn("somecontainer");
$xip->cdn();
This perl module creates an XIPCloud object, which allows direct manipulation of objects and containers within Internap's XIPCloud storage.
A valid XIPCloud account is required to use this module
Returns a reference to a new XIPCloud object. This method requires passing of a valid username and password.
Connects to XIPCloud using the username and password provids in the new() call.
Method returns 1 for success and undef for failure.
Depending on the calling arguments, this method returns the list of containers or list of objects within a single container as an array reference.
Limit and marker values may be provided (see API documentation) for pagination.
This call returns metadata about a specific object.
Copy the contents of one object to another
Rename an object, clobbering any existing object
This method creates a new container. It returns 1 for success and undef for failure.
This method removes a container and its contents. It returns 1 for success and undef for failure.
Depending on calling arguments, this method returns account or container-level statistics as a hash reference.
This method returns a scalar value, containing the body of the requested object.
This method places the contents of a passed scalar into the specified container and object.
Content-type may be specified, but is optional. It defaults to "text/plain"
This method places the contents of the requested object in a target location of the filesystem.
This method places the contents of a specified source file into an object.
This method takes a container, object and open file handle as arguments. It retrieves the object in chunks, which it writes to *FILE as they are received.
This method removes an object.
This method creates a manifest for large-object support
This method makes a container "public" or "private".
This method manages a container's cdn configuration.
Called with no arguments, it returns array reference, containing all cdn-enabled containers.
Called with just a container name, it returns a hash reference, containing the cdn metadata for a container.
Called with a container name and "disable", it disables the cdn extensions for that container.
Called with a container name, "enable", logging preference and TTL, it configures cdn extensions for a container.
Dennis Opacki, dopacki@internap.com
perl(1).
To install Net::XIPCloud, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::XIPCloud
CPAN shell
perl -MCPAN -e shell install Net::XIPCloud
For more information on module installation, please visit the detailed CPAN module installation guide.