Kaspersky Industrial CyberSecurity for Networks API Developer's Guide

Getting Kaspersky Security Center agent configuration

This section explains how to obtain the Kaspersky Security Center agent configuration used by Kaspersky Industrial CyberSecurity for Networks.

Overview

Kaspersky Industrial CyberSecurity for Networks can be configured to provide configuration for Kaspersky Security Center agent.

You can get this configuration by using the ConfigurationProvider service methods. This service is defined in the configuration_provider_service.proto file. Messages and enumerations are defined in the configuration_provider.proto and configuration_provider_service.proto files.

The ConfigurationProvider service has the following method for getting Kaspersky Security Center agent configuration:

  • GetKscConfiguration

    Returns Kaspersky Security Center agent configuration.

Getting Kaspersky Security Center agent configuration (example)

To get Kaspersky Security Center agent configuration, use the GetKscConfiguration method. In the following example, a stub requests Kaspersky Security Center agent configuration.

configStub = configuration_provider_service_pb2_grpc.ConfigurationProviderStub(channel)

 

#rpc GetKscConfiguration(google.protobuf.Empty) returns(KscConfiguration);

 

response = configStub.GetKscConfiguration(google_dot_protobuf_dot_empty__pb2.Empty())

print(response)