The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Webservice::OVH::Cloud::Project::IP;

SYNOPSIS

    use Webservice::OVH;
    
    my $ovh = Webservice::OVH->new_from_json("credentials.json");
    
    my $projects = $ovh->cloud->projects;
    my $example_project = $projects->[0];
    
    my $networks = $project->network->privates;
    
    foreach my $network (@$networks) {
        
        print @$networks->status;
    }

DESCRIPTION

Bridge Object failover ips

METHODS

_new_existing

Internal Method to create the object. This method is not ment to be called directly.

  • Parameter: %params - key => value

  • Return: Webservice::OVH::Cloud::Project::IP

  • Synopsis: Webservice::OVH::Cloud::Project::IP->_new( wrapper => $ovh_api_wrapper, project => $project, module => $module );

project

Shorthand to call $self->project directly for internal usage.

failover_exists

Returns 1 if failover is available for the connected account, 0 if not.

  • Parameter: $failover_id - api id, $no_recheck - (optional)only for internal usage

  • Return: VALUE

  • Synopsis: print "failover exists" if $project->ip->failover_exists(1234);

failovers

Produces an array of all available failovers that are connected to the project.

  • Return: ARRAY

  • Synopsis: my $ips = $project->ip->failovers;

failover

Returns a single failover by id