Webservice::OVH::Cloud::Project::Network
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; }
Bridge Object to private and in future public networks.
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 );
Shorthand to call $self->project directly for internal usage.
Return: Webservice::OVH::Cloud::Project
Synopsis: my $project = $project->network->project;
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);
Produces an array of all available private networks that are connected to the project.
Return: ARRAY
Synopsis: my $private_networks = $project->privates;
Returns a single object by id
Parameter: $network_id - api id
Return: Webservice::OVH::Cloud::Project::Network::Private
Synopsis: my $private_network = $project->private($id);
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' );
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.