...
my $easy = new NetMRI_Easy(api_version => 2, nios_api => 1, port => 443);
The Constructor constructor for NetMRI_Easy takes a hash reference for options.
api_version => $version | Specifies which API version to use. See NetMRI::API for details For more information, see the NetMRI API documentation on the Tools icon > Network > API Documentation page. |
nios_api => 1 | Load the Infoblox API before connecting to the API. Using this option is the same as
NetMRI_Easy ensures that the Infoblox API is loaded before LWP::UserAgent. This is necessary because the Infoblox API requires a different version of LWP::UserAgent, and will fail if modules are loaded in the wrong order. |
nios_ipaddress => $ip_address | The IP address of the NIOS device to download the Infoblox API and connect to when using the nios_session method. This option is necessary when connecting to a NIOS that is not registered with NetMRI. |
nios_username => $username | The username that is used to connect to the NIOS device. This option is necessary when connecting to a NIOS appliance that is not registered with NetMRI or to connect with different credentials. |
nios_password => $secret | The password that is used to connect to the NIOS device. This option is necessary when connecting to a NIOS appliance that has not been registered with NetMRI, or to connect with different credentials. |
or
| Connects the sandbox to NetMRI Allows NetMRI_Easy.pm to connect to the NetMRI API over port 443. If the port is not specified, the sandbox automatically connects to NetMRI over NetMRI_Easy.pm uses port 80 to connect. |