KSC Open API  13.1
Kaspersky Security Center API description
wstring SubnetMasks::CreateSubnet ( params  pSubnetSettings)

Create subnet for current server with specific parameters

Parameters:
pSubnetSettingsSubnet parameters (paramParams).
  • "nIpAddress" (paramLong) - Subnet IP
  • "nMask" (paramLong) - Subnet mask
  • "wstrSubnetName" (paramString) - Subnet name (not empty, maximum 100 unicode symbols)
  • "wstrComment" (paramString, optional) - Subnet description
Returns:
Real subnet name: if subnet with specified name already exist - new subnet renamed with repaired suffix name
Exceptions:
Throwexception if subnet (ip-mask pair) already exists or if subnet (ip-mask pair) not correct