Infoblox::Grid::MaxMindDBInfo - an MaxMind Database information object.
The object provides information about the MaxMind database.
This section describes all the methods in a Session module that you can apply to a MaxMindDBInfo object. Note that the object supports only the get method since there is only one such object in the database.
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 attribute to get a specific object:
binary_major_version - Optional. The major binary version of MaxMind database. binary_minor_version - Optional. The minor binary version of MaxMind database. build_time - Optional. The time at which the MaxMind database was built. database_type - Optional. The structure of data records. deployment_time - Optional. The time at which the current MaxMind database was deployed. topology_type - Optional. The MaxMind database topology type.
my @retrieved_objs = $session->get( object => 'Infoblox::DTC::Monitor::TCP', database_type => 'GeoLite2-Country', );
Use this method to upload MaxMind Database.
Apply the following attribute to upload a MaxMind Database:
path - Required. The path to a tar archive that contains the MaxMind Database.
The method returns "true" when an upload of a MaxMind Database has been performed successfully, and returns "false" when the operation fails.
#upload MaxMind DB my $res = $dtc->import_maxminddb(path => $path_to_maxminddb);
This section describes all the methods that you can use to set or retrieve the attribute values of the object.
Use this method to retrieve the major version of the MaxMind database binary format. This is a read-only attribute.
None
The method returns attribute value.
#get binary_major_version value my $binary_major_version = $maxminddbinfo->binary_major_version();
Use this method to retrieve the minor version of the MaxMind database binary format. This is a read-only attribute.
None
The method returns the attribute value.
#get binary_minor_version value my $binary_minor_version = $maxminddbinfo->binary_minor_version();
Use this method to retrieve the time when the MaxMind database was built. This is a read-only attribute.
None
The method returns attribute value.
#get build_time value my $build_time = $maxminddbinfo->build_time();
Use this method to retrieve the structure of MaxMind database records. This is a read-only attribute.
None
The method returns the attribute value.
#get database_type value my $database_type = $maxminddbinfo->database_type();
Use this method to retrieve the time when the current MaxMind database was deployed. This is a read-only attribute.
None
The method returns the attribute value.
#get deployment_time value my $deployment_time = $maxminddbinfo->deployment_time();
Use this method to retrieve the Grid member name on which the current MaxMind database was deployed. This is a read-only attribute.
None
The method returns the attribute value.
#Get member value my $value = $object->member();
Use this method to retrieve the MaxMind database topology type. This is a read-only attribute.
None
The method returns the attribute value. The valid return values are 'GEOIP' and 'EA'.
#get topology_type value my $topology_type = $maxminddbinfo->topology_type();
Infoblox Inc. http://www.infoblox.com/
Infoblox::Session, Infoblox::Session->get(), Infoblox::DTC->import_maxminddb()
Copyright (c) 2017 Infoblox Inc.