3.1.1.1.4.2.2 GetIPBlockFromTable
This procedure is used to retrieve the IP address block information in the form of IPv4Block or IPv6Block. The type of the data returned being IPv4Block or IPv6Block is based on the simple table within the ADM_IPBlocksTable compound table against which the processing steps are performed.
The following are the input parameters to this procedure.
Param_blockId: This is a 64-bit signed integer that identifies the block for which the information is being retrieved.
Param_addressfamily: This is of type AddressFamily and it can be either Internet or InternetV6. The value Internet is used to specify the processing to be done on the IPv4-specific simple tables for any compound table involved during the processing. The value InternetV6 is used to specify the processing to be done on IPv6-specific simple tables for any compound table involved during the processing.
The following is the output parameter from this procedure.
result: This is the address block information in the form of IPv4Block or IPv6Block corresponding to the Param_blockId specified in the input parameter. If the Param_addressfamily is Internet, the procedure returns IPv4Block and if it is InternetV6, the procedure returns IPv6Block.
The following are the processing steps involved.
Lookup the ADM_IPBlocksTable for the row with the RecordId value being Param_blockId.
If the row is not found, return null. Otherwise initialize result to IPv4Block if the Param_addressfamily is Internet and IPv6Block if the Param_addressfamily is InternetV6.
Copy the BlockDetails to result.
Retrieve the custom field values for the address block object by calling the GetCustomFieldValues procedure of ADM_CustomFieldValuesAssociationTable passing the following parameters:
Param_ObjectType is set to EnumerationObjectTypes.IPBlock.
Param_addressFamily is passed as is.
Result.RecordId is passed as Param_ObjectRecordId.
Assign the Result_CustomFieldValueList to result.CustomFieldValues.
Assign the Result_CustomFieldPartialList to result.PartialCustomFieldValues.
Return result as the output of the procedure.