This Kaspersky Security Center OpenAPI reference guide is designed to assist in the following tasks:
You can use the search field in the right part of the screen to locate the information you need in the OpenAPI reference guide.
Samples of scripts
The OpenAPI reference guide contains samples of the Python scripts listed in the table below. The samples show how you can call OpenAPI methods and automatically accomplish various tasks for protecting your network, for instance, create a "primary/secondary" hierarchy, run tasks in Kaspersky Security Center, or assign distribution points. You can run the samples as is or create your own scripts based on the samples.
To call the OpenAPI methods and run scripts:
You can call the OpenAPI methods, run the samples and your own scripts only on devices where Administration Server and the KlAkOAPI package are installed.
Matching between user scenarios and samples of Kaspersky Security Center OpenAPI methods
Sample |
Purpose of the sample |
Scenario |
---|---|---|
You can extract and process data by using the The sample output may be present in different ways. You can get the data to send an HTTP method or to use it in your code. |
Monitoring and reporting |
|
You can add a secondary Administration Server and establish a "primary/secondary" hierarchy. Alternately, you can disconnect the secondary Administration Server from the hierarchy. |
||
You can assign managed devices as distribution points (previously known as update agents). |
||
You can perform various actions with administration groups. The sample shows how to do the following:
|
||
You can find out the following information:
You can also run a task. By default, the sample runs a task after it outputs statistics. |
Monitoring task execution |
|
You can create a task. Specify the following task parameters in the sample:
By default, the sample creates a task with the "Show message" type. You can run this task for all managed devices of Administration Server. If necessary, you can specify your own task parameters. |
Creating a task |
|
You can get a list of all the active license keys for Kaspersky applications installed on managed devices of Administration Server. The list contains detailed data about every license key, such as a name, type, or expiration date. |
Viewing information about license keys in use |
|
You can create an account for further work. |
Selecting the account to start Administration Server |
|
You can create the application category with the needed parameters. |
Creating an application category with content added manually |
|
You can use the SrvView class to request detailed information from the Kaspersky Security Center 13 Linux Administration Server. For instance, you can get a list of users by using this sample. |
Managing user accounts |