Webservice::OVH::Cloud::Project::IP::Failover
use Webservice::OVH; my $ovh = Webservice::OVH->new_from_json("credentials.json"); my $projects = $ovh->cloud->projects; my $example_project = $projects->[0]; my $failover_ips = $project->ip->failovers; foreach my $ip (@$failover_ips) { print $ip->routed_to; }
Gives access to failover ip functionality.
Internal Method to create the SSH object. This method is not ment to be called directly.
Parameter: %params - key => value
Return: Webservice::OVH::Cloud::Project::IP::Failover
Synopsis: Webservice::OVH::Cloud::Project::IP::Failover->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module, id => $id );
Returns the api id
Return: VALUE
Synopsis: my $id = $failover_ip->id;
Root Project.
Return: Webservice::OVH::Cloud::Project
Synopsis: my $project = $failover_ip->project;
Returns the raw properties as a hash. This is the original return value of the web-api.
Return: HASH
Synopsis: my $properties = $failover->properties;
Exposed property value.
Synopsis: my $continent_code = $failover_ip->continent_code;
Synopsis: my $progress = $failover_ip->progress;
Synopsis: my $status = $failover_ip->status;
Synopsis: my $ip = $failover_ip->ip;
Synopsis: my $routed_to = $failover_ip->routed_to;
Synopsis: my $sub_type = $failover_ip->sub_type;
Synopsis: my $block = $failover_ip->block;
Synopsis: my $geoloc = $failover_ip->geoloc;
Attach failover ip to an instance.
Parameter: instance_id - instance id
Synopsis: $failover_ip->attach($instace_id);
To install Webservice::OVH, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Webservice::OVH
CPAN shell
perl -MCPAN -e shell install Webservice::OVH
For more information on module installation, please visit the detailed CPAN module installation guide.