Programming Guides › Programming Guide for Perl › CLI Policy Management Methods › IP Configuration Methods › GetIPAddress Method— Retrieves an IP address for an IP address restriction
GetIPAddress Method— Retrieves an IP address for an IP address restriction
The GetIPAddress method retrieves an IP address for an IP address restriction, as follows:
- For IPCFG_TYPE_SINGLEHOST IP addresses, retrieves the IP address of the machine where requests must originate for the policy to fire. See the PolicyMgtAffiliate‑>CreateIPConfigSingleHost method description for more information.
- For IPCFG_TYPE_RANGE IP address restrictions, retrieves the starting IP address in the range of accepted IP addresses. See the description of the PolicyMgtAffiliate‑>CreateIPConfigRange method for more information.
To determine the type of IP address restriction, call the GetType method.
Syntax
The GetIPAddress method has the following format:
Netegrity::PolicyMgtIPConfig‑>GetIPAddress()
Parameters
The GetIPAddress method accepts no parameters.
Return Value
The GetIPAddress method returns one of the following values:
- The IP address where requests must originate, or the starting address in a range of accepted addresses.
- undef if the call is unsuccessful