KSC Open API
Kaspersky Security Center API description
KLEVerControl::ChangeCreatePackage ( array  vecDistribLocIdsToCreate,
array  vecDistribLocIdsNotToCreate,
params  parParams 
)

Initiates or cancels the distributive download and installation package registration from the storage of Kaspersky public distributives.

The distributives are identified by the db_loc_id parameter from the appropriate SrvView. For more information about the db_loc_id, see Kaspersky corporate product distributives available for download.

Administration Server publishes "KLEVER_PACKAGES_LIST_CHANGED" event with no parameters when packages are being created by calling method KLEVerControl::ChangeCreatePackage. To subscribe on it use ConEvents::Subscribe method.

Parameters:
vecDistribLocIdsToCreate(array) array of the db_loc_id values to download and create packages.
vecDistribLocIdsNotToCreate(array) array of the db_loc_id values to reset the creation of packages.
parParams(params) reserved parameter.