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:

  1. Look up the row in the ADM_DhcpPolicyTable with PolicyId value being Param_PolicyId.

  2. Initialize Result_Policy with DhcpPolicyV4.

  3. Assign Result_Policy.PolicyId with PolicyId of the row.

  4. Copy the PolicyDetails into Result_Policy.

  5. Initialize Result_Policy.Server with DhcpServerV4.

  6. Assign Result_Policy.Server.RecordId with the Server of the row.

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

  8. Initialize Result_Policy.ScopeRecordId with the scope of the row.

  9. Initialize Result_Policy.ServerRecordId with the server of the row.

  10. Return Result_Policy as the output of the procedure.