NAME

Webservice::OVH::Cloud::Project::IP::Failover

SYNOPSIS

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;
}

DESCRIPTION

Gives access to failover ip functionality.

METHODS

_new

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

id

Returns the api id

  • Return: VALUE

  • Synopsis: my $id = $failover_ip->id;

project

Root Project.

properties

Returns the raw properties as a hash. This is the original return value of the web-api.

  • Return: HASH

  • Synopsis: my $properties = $failover->properties;

continent_code

Exposed property value.

  • Return: VALUE

  • Synopsis: my $continent_code = $failover_ip->continent_code;

progress

Exposed property value.

  • Return: VALUE

  • Synopsis: my $progress = $failover_ip->progress;

status

Exposed property value.

  • Return: VALUE

  • Synopsis: my $status = $failover_ip->status;

ip

Exposed property value.

  • Return: VALUE

  • Synopsis: my $ip = $failover_ip->ip;

routed_to

Exposed property value.

  • Return: VALUE

  • Synopsis: my $routed_to = $failover_ip->routed_to;

sub_type

Exposed property value.

  • Return: VALUE

  • Synopsis: my $sub_type = $failover_ip->sub_type;

block

Exposed property value.

  • Return: VALUE

  • Synopsis: my $block = $failover_ip->block;

geoloc

Exposed property value.

  • Return: VALUE

  • Synopsis: my $geoloc = $failover_ip->geoloc;

attach

Attach failover ip to an instance.

  • Parameter: instance_id - instance id

  • Synopsis: $failover_ip->attach($instace_id);