3.1.1.1.30.2.1 GetPolicyById
The GetPolicyById procedure is used to retrieve the DhcpPolicyV4 instance from ADM_DhcpPolicyTable.
The following is the input parameter to this procedure.
Param_PolicyId: Of type signed 64-bit integer, which represents a PolicyId for a DhcpPolicyV4.
The following is the output parameter from this procedure.
Result_Policy: This is of type DhcpPolicyv4, which has the same PolicyId of the row as specified by Param_PolicyId.
The following are the processing steps involved:
Look up the row in the ADM_DhcpPolicyTable with PolicyId value being Param_PolicyId.
Initialize Result_Policy with DhcpPolicyV4.
Assign Result_Policy.PolicyId with PolicyId of the row.
Copy the PolicyDetails into Result_Policy.
Initialize Result_Policy.Server with DhcpServerV4.
Assign Result_Policy.Server.RecordId with the Server of the row.
If scope of row is not NULL, then initialize Result_Policy.Scope with DhcpScopeV4 and set Result_Policy.Scope.RecordId to the scope of the row.
Initialize Result_Policy.ScopeRecordId with the scope of the row.
Initialize Result_Policy.ServerRecordId with the server of the row.
Return Result_Policy as the output of the procedure.