NAME

Webservice::OVH::Cloud::Project::Network

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 to private and in future public networks.

METHODS

_new_existing

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

  • Parameter: %params - key => value

  • Return: Webservice::OVH::Cloud::Project::SSH

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

project

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

private_exists

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

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

  • Return: VALUE

  • Synopsis: print "network exists" if $project->network->private_exists($id);

privates

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

  • Return: ARRAY

  • Synopsis: my $private_networks = $project->privates;

private

Returns a single object by id

create_private

Creates a new network.

  • Parameter: %params - key => value (required) vlan_id name (optional) region

  • Return: <Webservice::OVH::Cloud::Project::Network::Private>

  • Synopsis: my $private_network = $project->create_private( vlan_id => 6, name => 'Test Network' );