3.1.1.1.8.2.1 GetDnsZoneFromTable

The GetDnsZoneFromTable procedure can be used to retrieve the DnsZone for the specified record identifier. The following is the input parameter to this procedure.

Param_Id: The RecordId of the DNS zone for which the DnsZone data is being requested.

The following is the output parameter of this procedure.

Result_zone: This is the DnsZone corresponding to the specified record identifier.

The following processing steps are performed.

  1. Look up the ADM_DNSForwardLookupTable for the row with the RecordId value equal to Param_Id.

  2. Initialize Result_zone to DnsZone and assign the following values:

    1. Assign ParentId to Result_zone.ParentId.

    2. Assign Name to Result_zone.Name.

    3. Assign RecordId to Result_zone.RecordId.

  3. Copy the ForwardLookupZoneDetails to Result_zone.

  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.DNSForwardLookupZone.

    3. Param_accessScopeId.

    4. Param_objectInheritanceStatus.

    5. Param_inheritanceId.

  5. Assign Param_accessScopeId to Result_zone.AccessScopeId.

  6. Assign Param_objectInheritanceStatus to Result_zone.IsInheritedAccessScope.

  7. Return Result_zone as the output parameter of this procedure.