Webservice::OVH::Cloud::Project::Network::Private::Subnet
use Webservice::OVH; my $ovh = Webservice::OVH->new_from_json("credentials.json"); my $projects = $ovh->cloud->projects; my $example_project = $projects->[0]; my $networks = $example_project->network->privates; foreach my $network (@$networks) { my $subnets = $network->subnets; foreach my $subnet (@$subnets) { print $subnet->name; } }
Gives access to subnet methods.
Internal Method to create the Subnet object. This method is not ment to be called directly.
Parameter: %params - key => value
Return: Webservice::OVH::Cloud::Project::Network::Private::Subnet
Synopsis: Webservice::OVH::Cloud::Project::Network::Private::Subnet->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module, id => $id );
Synopsis: Webservice::OVH::Cloud::Project::Network::Private::Subnet->_new(wrapper => $ovh_api_wrapper, project => $project, module => $module );
Root Project.
Return: Webservice::OVH::Cloud::Project
Synopsis: my $project = $subnet->project;
Root Network.
Return: Webservice::OVH::Cloud::Project::Network::Private
When this object is deleted on the api side, this method returns 0.
Return: VALUE
Synopsis: print "Valid" if $subnet->is_valid;
Intern method to check validity. Difference is that this method carps an error.
Synopsis: $subnet->_is_valid;
Returns the api id
Synopsis: my $id = $subnet->id;
Exposed property value.
Synopsis: my $gateway_ip = $subnet->gateway_ip;
Synopsis: my $cidr = $subnet->cidr;
Return: ARRAY
Synopsis: my $ip_pools = $subnet->ip_pools;
Deletes the object api sided and sets it invalid.
Synopsis: $subnet->delete;
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.