Infoblox::Grid::RIR - Regional Internet Registry (RIR) object.
Regional Internet Registry (RIR) object.
my $rir = Infoblox::Grid::RIR->new( communication_mode => 'API' | 'EMAIL' | 'NONE', # Required name => 'RIPE', # Optional, Default is 'RIPE' email => $string, # Optional override_email => 'true' | 'false', # Optional, Default is 'false' url => $string, # Optional override_url => 'true' | 'false', # Optional, Default is 'false' );
This section describes all the methods in an Infoblox::Session module that you can apply to a RIR object.
Support for RIR/SWIP must be enabled at the Grid level. See Infoblox::Grid->enable_rir_swip() method.
Use this method to retrieve all the matching objects from the Infoblox appliance. See Infoblox::Session->get() for parameters and return values.
Apply the following attributes to get a specific RIR object:
name - Optional. The RIR name.
my @retrieved_objs = $session->get( object => 'Infoblox::Grid::RIR', name => 'RIPE', );
Use this method to modify an object in the Infoblox appliance. See Infoblox::Session->modify() for parameters and return values.
# Use this method to modify email of a RIR object. $rir->email('support@infoblox.com'); # Submit modification my $response = $session->modify( $rir );
Use this method to search for RIR objects in the Infoblox appliance. See Infoblox::Session->search() for parameters and return values.
Apply the following attributes to search a specific RIR object:
name - Optional. The RIR name.
my @retrieved_objs = $session->search( object => 'Infoblox::Grid::RIR', name => 'RIPE', );
This section describes all the methods that you can use to configure and retrieve the attribute values of a RIR object.
Use this method to set or retrieve a communication mode for RIR.
Valid values are 'API', 'EMAIL' and 'NONE'. The default value is 'API'.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get attribute value my $value = $rir->communication_mode(); #Modify attribute value $rir->communication_mode('EMAIL');
Use this method to set or retrieve a name of RIR.
Valid value is 'RIPE'. The default value is 'RIPE'.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get attribute value my $value = $rir->name(); #Modify attribute value $rir->name('RIPE');
Use this method to set or retrieve an email address for RIR.
Email address in string format.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get attribute value my $value = $rir->email(); #Modify attribute value $rir->email('support@infoblox.com');
Use this method to set or retrieve the Web API URL for RIR.
Web API URL in string format.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get attribute value my $value = $rir->url(); #Modify attribute value $rir->url('http://www.infoblox.com');
Use this method to set or retrieve the override_email flag of RIR.
Specify "true" to override the predefined email address or "false" to use the predefined email address. The default value is "false".
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get attribute value my $value = $rir->override_email(); #Modify attribute value $rir->override_email('true');
Use this method to set or retrieve the override_url flag of RIR.
Specify "true" to override the predefined Web API URL or "false" to use the predefined Web API URL. The default value is "false".
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get attribute value my $value = $rir->override_url(); #Modify attribute value $rir->override_url('true');
Infoblox Inc. http://www.infoblox.com/
Infoblox::Session, Infoblox::Grid->enable_rir_swip()
Copyright (c) 2017 Infoblox Inc.