The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::ProfitBricks::DataCenter - Manage DataCenter

DESCRIPTION

Manages the virtual datacenters.

SYNOPSIS

 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");

METHODS

This class implements all methods from WebService::ProfitBricks and these additional ones.

wait_for_provisioning

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.

get_state

This method returns the current provisioning state of your virtual datacenter.