KSC Open API
Kaspersky Security Center API description
int Policy::AddPolicy ( params  pPolicyData)

Create new policy.

Creates a new policy with the specified attributes

Parameters:
pPolicyData(params) contains following attributes for policy creation
  • mandatory
    • KLPOL_DN
    • KLPOL_PRODUCT
    • KLPOL_VERSION
    • KLPOL_GROUP_ID
  • optional
    • KLPOL_ACTIVE (false by default)
    • KLPOL_ROAMING (false by default)
    • KLPOL_ACCEPT_PARENT (true by default)
    • KLPOL_FORCE_DISTRIB2CHILDREN (false by default)
    • KLPOL_HIDE_ON_SLAVES (false by default)
Returns:
(int) Id of the created policy (see KLPOL_ID)
See also:
List of policy attributes