Programming Guides › Programming Guide for Perl › CLI Policy Management Methods › IP Configuration Methods › GetType Method—Retrieves the Type of the IP Address Restriction
GetType Method—Retrieves the Type of the IP Address Restriction
The GetType method retrieves the type of the IP address restriction. An IP address restriction specifies where a request must originate before it can be honored.
Syntax
The GetType method has the following format:
Netegrity::PolicyMgtIPConfig‑>GetType()
Parameters
The GetType method accepts no parameters.
Return Value
The GetType method returns one of the following values:
- IPCFG_TYPE_SINGLEHOST (Value=1). The request must come from the specified IP address. This type of IP address restriction is created with the PolicyMgtAffiliate‑>CreateIPConfigSingleHost method.
- IPCFG_TYPE_HOSTNAME (Value=2). The request must come from a machine with a specific host name. This type of IP address restriction is created with the PolicyMgtAffiliate‑>CreateIPConfigHostName method.
- IPCFG_TYPE_SUBNETMASK (Value=3). The request must come from the specified subnet mask. This type of IP address restriction is created with the PolicyMgtPolicy‑>CreateIPConfigSubnetMask method.
- IPCFG_TYPE_RANGE (Value=4). The request must come from a range of IP addresses. This type of IP address restriction is created with the PolicyMgtAffiliate‑>CreateIPConfigRange method.
- undef if the call is unsuccessful