3.3.4.95 GetRangeByIPAddress
The GetRangeByIPAddress operation is used to retrieve the address ranges whose start address and end address are within the specified address range.
-
<wsdl:operation name="GetRangeByIPAddress"> <wsdl:input wsaw:Action="http://Microsoft.Windows.Ipam/IIpamServer/GetRangeByIPAddress" message="ipam:IIpamServer_GetRangeByIPAddress_InputMessage" /> <wsdl:output wsaw:Action="http://Microsoft.Windows.Ipam/IIpamServer/GetRangeByIPAddressResponse" message="ipam:IIpamServer_GetRangeByIPAddress_OutputMessage" /> </wsdl:operation>
Upon receiving the IIpamServer_GetRangeByIPAddress_InputMessage request message, the server performs the following processing steps. Upon successful completion of these steps, the server MUST respond with the IIpamServer_GetRangeByIPAddress_OutputMessage message. In the event of a failure, an appropriate SOAP fault MUST be sent to the client as specified in section 2.2.2.1:
If GetRangeByIPAddress.addressFamily is InterNetwork, the rest of the processing is done with the IPv4-specific tables. GetRangeByIPAddressResponse.GetRangeByIPAddressResult will consist of IPv4Range. Otherwise IPv6-specific tables are used for further processing. GetRangeByIPAddressResponse.GetRangeByIPAddressResult will consist of IPv6Range.
Enumerate the rows in the ADM_IPRangeTable that have the StartIPAddress and EndIPAddress between the GetRangeByIPAddress.startIP and GetRangeByIPAddress.endIP address range and also have PrefixLength greater than or equal to GetRangeByIPAddress.prefixLength.
For each row, call the procedure GetIPRangeFromTable by passing the record identifier of the row as Param_id input parameter and GetRangeByIPAddress.addressFamily as Param_addressfamily input parameter. Add the returned range information in result to GetRangeByIPAddressResponse.GetRangeByIPAddressResult.