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:

  1. Look up ADM_DNSServerReverseLookupZoneTable for the row with RecordId being Param_recordId.

  2. If the row is not found, set Result_reverseLookupZone to NULL and return.

  3. Set the following values from the row entry to Result_reverseLookupZone:

    1. Result_reverseLookupZone.RecordId is assigned RecordId.

    2. Result_reverseLookupZone.Name is assigned Name.

    3. Copy ZoneDetails from the row to Result_reverseLookupZone.

  4. Call GetAccessScopeForObjectIdAndType of ADM_AccessScopeAssociationTable passing the following parameters:

    1. Param_objectId is set to Param_Id.

    2. Param_objectType is set to IpamObjectType.DNSReverseLookupZone.

    3. Param_objectInheritanceStatus.

    4. Param_inheritanceId.

  5. Assign Param_accessScopeId to Result_reverseLookupZone.AccessScopeId.

  6. Assign Param_objectInheritanceStatus to Result_reverseLookupZone.IsInheritedAccessScope.

  7. Return Result_reverseLookupZone from the procedure.