3.1.1.1.9.2.1 GetDnsReverseLookupZoneFromTable
The GetDnsReverseLookupZoneFromTable procedure can be used to retrieve the DnsReverseLookupZone with the specified RecordId. The following is the input parameter to this procedure.
Param_recordId: The record identifier for which the DnsReverseLookupZone data is required.
The following is the output parameter of this procedure.
Result_reverseLookupZone: This is of type DnsReverseLookupZone containing the data for the requested reverse lookup zone from the IPAM data store.
The following are the steps involved:
Look up ADM_DNSServerReverseLookupZoneTable for the row with RecordId being Param_recordId.
If the row is not found, set Result_reverseLookupZone to NULL and return.
Set the following values from the row entry to Result_reverseLookupZone:
Result_reverseLookupZone.RecordId is assigned RecordId.
Result_reverseLookupZone.Name is assigned Name.
Copy ZoneDetails from the row to Result_reverseLookupZone.
Call GetAccessScopeForObjectIdAndType of ADM_AccessScopeAssociationTable passing the following parameters:
Param_objectId is set to Param_Id.
Param_objectType is set to IpamObjectType.DNSReverseLookupZone.
Param_objectInheritanceStatus.
Param_inheritanceId.
Assign Param_accessScopeId to Result_reverseLookupZone.AccessScopeId.
Assign Param_objectInheritanceStatus to Result_reverseLookupZone.IsInheritedAccessScope.
Return Result_reverseLookupZone from the procedure.