3.1.1.1.31.2.1 GetPolicyConditionsForPolicyId

The GetPolicyConditionsForPolicyId procedure retrieves all the DHCP policy conditions that are associated with a specific DHCP policy.

The following input parameter is used.

Param_policyId: This is a signed 64-bit integer.

The following is the output parameter from this procedure.

Result_PolicyConditions: This is a collection of type DhcpPolicyConditionV4.

The following steps are involved:

  1. Enumerate the rows in ADM_DhcpPolicyConditionTable having PolicyId being Param_policyId.

  2. Initialize Result_PolicyConditions.

  3. For each row meeting the criteria mentioned in step 1, perform the following steps:

    1. Create an instance of DhcpPolicyConditionV4 with the following assignments and add it to the Result_PolicyConditions collection.

    2. Copy the PolicyConditionDetails to DhcpPolicyConditionV4 instance.

  4. Return Result_PolicyConditions as the output of the procedure.