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.
Look up the ADM_DNSForwardLookupTable for the row with the RecordId value equal to Param_Id.
Initialize Result_zone to DnsZone and assign the following values:
Assign ParentId to Result_zone.ParentId.
Assign Name to Result_zone.Name.
Assign RecordId to Result_zone.RecordId.
Copy the ForwardLookupZoneDetails to Result_zone.
Call GetAccessScopeForObjectIdAndType of ADM_AccessScopeAssociationTable passing the following parameters:
Param_objectId is set to Param_Id.
Param_objectType is set to IpamObjectType.DNSForwardLookupZone.
Param_accessScopeId.
Param_objectInheritanceStatus.
Param_inheritanceId.
Assign Param_accessScopeId to Result_zone.AccessScopeId.
Assign Param_objectInheritanceStatus to Result_zone.IsInheritedAccessScope.
Return Result_zone as the output parameter of this procedure.