Infoblox::Grid::MaxMindDBInfo - an MaxMind Database information object.


NAME

Infoblox::Grid::MaxMindDBInfo - an MaxMind Database information object.


DESCRIPTION

The object provides information about the MaxMind database.


SESSION METHODS

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.

Infoblox::Session->get( )

Use this method to retrieve all the matching objects from the Infoblox appliance. See Infoblox::Session->get() for parameters and return values.

Key Reference
 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.
Example
 my @retrieved_objs = $session->get(
     object => 'Infoblox::DTC::Monitor::TCP',
     database_type => 'GeoLite2-Country',
 );


MODULE METHODS

Infoblox::DTC->import_maxminddb( )

import_maxminddb( )

Use this method to upload MaxMind Database.

Key Reference
 Apply the following attribute to upload a MaxMind Database:
     path - Required. The path to a tar archive that contains the MaxMind Database.
Returns

The method returns "true" when an upload of a MaxMind Database has been performed successfully, and returns "false" when the operation fails.

Example
 #upload MaxMind DB
 my $res = $dtc->import_maxminddb(path => $path_to_maxminddb);


METHODS

This section describes all the methods that you can use to set or retrieve the attribute values of the object.

binary_major_version( )

Use this method to retrieve the major version of the MaxMind database binary format. This is a read-only attribute.

Parameter

None

Returns

The method returns attribute value.

Example
 #get binary_major_version value
 my $binary_major_version = $maxminddbinfo->binary_major_version();

binary_minor_version( )

Use this method to retrieve the minor version of the MaxMind database binary format. This is a read-only attribute.

Parameter

None

Returns

The method returns the attribute value.

Example
 #get binary_minor_version value
 my $binary_minor_version = $maxminddbinfo->binary_minor_version();

build_time( )

Use this method to retrieve the time when the MaxMind database was built. This is a read-only attribute.

Parameter

None

Returns

The method returns attribute value.

Example
 #get build_time value
 my $build_time = $maxminddbinfo->build_time();

database_type( )

Use this method to retrieve the structure of MaxMind database records. This is a read-only attribute.

Parameter

None

Returns

The method returns the attribute value.

Example
 #get database_type value
 my $database_type = $maxminddbinfo->database_type();

deployment_time( )

Use this method to retrieve the time when the current MaxMind database was deployed. This is a read-only attribute.

Parameter

None

Returns

The method returns the attribute value.

Example
 #get deployment_time value
 my $deployment_time = $maxminddbinfo->deployment_time();

member( )

Use this method to retrieve the Grid member name on which the current MaxMind database was deployed. This is a read-only attribute.

Parameter

None

Returns

The method returns the attribute value.

Example
 #Get member value
 my $value = $object->member();

topology_type( )

Use this method to retrieve the MaxMind database topology type. This is a read-only attribute.

Parameter

None

Returns

The method returns the attribute value. The valid return values are 'GEOIP' and 'EA'.

Example
 #get topology_type value
 my $topology_type = $maxminddbinfo->topology_type();


AUTHOR

Infoblox Inc. http://www.infoblox.com/


SEE ALSO

Infoblox::Session, Infoblox::Session->get(), Infoblox::DTC->import_maxminddb()


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.