All Classes Files Functions Variables Pages
ActiveConnections.idl
Go to the documentation of this file.
1 /**
2  * @file ActiveConnections.idl
3  * @brief Active Connections API
4  * @version 2
5  */
6 
7 #import <kerio/web/idl/SharedStructures.idl>
8 
9 module webadmin {
10 
11 enum ConnectionDirection {
12  ConnectionDirectionInbound,
13  ConnectionDirectionOutbound,
14  ConnectionDirectionLocal
15 };
16 
18  string host;
19  kerio::web::IpAddress ip;
20  long port;
21 };
22 
24  kerio::web::KId id;
25  ConnectionPoint src;
26  ConnectionPoint dst;
27  string protocol;
28  long timeout;
29  long age;
30  string rx; /**< in KB, obsolete */
31  string tx; /**< in KB, obsolete */
32  double rxNum; /**< in KB */
33  double txNum; /**< in KB */
34  string info;
35  boolean active;
36  ConnectionDirection direction;
37  string trafficRule;
38  string service;
39  string internetLink;
40  string bandwidthRuleName;
41 };
42 
43 typedef sequence<ActiveConnection> ActiveConnectionList;
44 
45 interface ActiveConnections {
46 
47  /**
48  * Returns Active Connections data
49  *
50  * @param list - output data
51  * @param totalItems - all data count
52  * @param query - filter/sort query \n
53  * Hide local connections is solved as: \n
54  * operandValue = 'direction' \n
55  * isColumnName = true \n
56  * comparator = NotEq \n
57  * operandValue = ConnectionDirectionLocal \n
58  * isColumnName = false
59  *
60  * @param refresh - true in case, that data snapshot have to be refreshed
61  * @param hostId - return data only for this host id
62  * @throws kerio::web::ApiException \n
63  * -32001 Session expired. - "The user is not logged in." \n
64  * 1004 Access denied - "Insufficient rights to perform the requested operation."
65  */
66  void get(out ActiveConnectionList list, out long totalItems, in kerio::web::SearchQuery query, in boolean refresh, in kerio::web::KId hostId);
67 
68  /**
69  * Kills connections specified in ids list
70  *
71  * @throws kerio::web::ApiException \n
72  * -32001 Session expired. - "The user is not logged in." \n
73  * 1004 Access denied - "Insufficient rights to perform the requested operation."
74  */
75  void kill(in kerio::web::KIdList ids);
76 
77 };
78 
79 };//webadmin
80 
double txNum
Definition: ActiveConnections.idl:33
Definition: SharedStructures.idl:139
Definition: ActiveConnections.idl:23
double rxNum
Definition: ActiveConnections.idl:32
Definition: ActiveConnections.idl:45
string tx
Definition: ActiveConnections.idl:31
Definition: Accounting.idl:11
string rx
Definition: ActiveConnections.idl:30
Definition: ActiveConnections.idl:17