A Megaport::Session objects is generally only instantiated via a Megaport object as it needs to be passed a valid and authenticated Megaport::Client object. This class contains shortcuts to the various resources available.
my $ports = $session->ports;
Returns a Megaport::Ports object which contains a list of what Megaport calls "partner ports". A partner port is effectively a Megaport on the network which is available to order a Virtual Cross Connect (VXC) to.
my $services = $session->services;
Returns a Megaport::Services object containing a list of services owned by the currently logged in user.
my $locations = $session->locations;
Returns a Megaport::Locations object containing a list of on-net datacentres for Megaport.
Cameron Daniel <email@example.com>
To install Megaport, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.