WebService::ProfitBricks::DataCenter - Manage DataCenter
Manages the virtual datacenters.
use WebService::ProfitBricks qw/DataCenter/; WebService::ProfitBricks->auth($user, $password); my $dc = DataCenter->new(dataCenterName => "DC1", region => "EUROPE"); $dc->save; $dc->wait_for_provisioning; my $dc = DataCenter->find("DC1");
This class implements all methods from WebService::ProfitBricks and these additional ones.
Call this function if you modified something in your virtual datacenter (like adding a new server, new storage, ...). This will block until your modification is done.
This method returns the current provisioning state of your virtual datacenter.
To install WebService::ProfitBricks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::ProfitBricks
CPAN shell
perl -MCPAN -e shell install WebService::ProfitBricks
For more information on module installation, please visit the detailed CPAN module installation guide.