All Classes Files Functions Variables Pages
Snmp.idl
Go to the documentation of this file.
1 /**
2  * @file Snmp.idl
3  * @brief SNMP API
4  * @version 1
5  */
6 
7 #import <common.idl>
8 
9 module webadmin {
10 
11 enum SnmpVersion {
12  SnmpV2c,
13  SnmpV3
14 };
15 
16 struct SnmpSettings {
17  boolean enabled;
18  string location;
19  string contact;
20  SnmpVersion version;
21  Password community;
22  string username;
23  Password password;
24 };
25 
26 interface Snmp {
27 
28  /**
29  * Returns SNMP configuration
30  * @param settings - A structure containing all the settings of SNMP that are stored.
31  * @throws kerio::web::ApiException \n
32  * -32001 Session expired. - "The user is not logged in." \n
33  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
34  */
35  void get(out SnmpSettings settings);
36 
37  /**
38  * Stores SNMP configuration
39  * @param settings - A structure containing all the settings of SNMP that sould be stored.
40  * @throws kerio::web::ApiException \n
41  * -32001 Session expired. - "The user is not logged in." \n
42  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
43  */
44  void set(in SnmpSettings settings);
45 };
46 
47 };
48 
Common Kerio Control structures, enums and types.
Definition: Snmp.idl:16
Definition: Snmp.idl:26
Definition: common.idl:116
Definition: Accounting.idl:11