All Classes Files Functions Variables Pages
ReverseProxy.idl
Go to the documentation of this file.
1 /**
2  * @file ReverseProxy.idl
3  * @brief API for Reverse Proxy
4  * @version 1
5  */
6 
7 #import <kerio/web/idl/SharedStructures.idl>
8 #import <common.idl>
9 
10 module webadmin {
11 
12 enum HttpsServerMode {
13  HttpsServerModeDisabled,
14  HttpsServerModeDefaultCertificate,
15  HttpsServerModeCustomCertificate
16 };
17 
19  /*@{ server match */
20  string serverHostname;
21  boolean serverHttp; // server on standard HTTP port 80
22  HttpsServerMode httpsMode;// server on standard HTTPS port 443
23  IdReference customCertificate;// HTTPS server certificate ID
24 
25  /*@{ target connection */
26  string targetServer;// hostname/IPv4/IPv6 + optionally ":<port>"
27  boolean targetHttps;
28 
29  /*@{ actions */
30  boolean antivirus;
31 
32  /*@{ misc */
33  boolean enabled;
34  string description;
35  kerio::web::KId id;
36 };
37 
38 typedef sequence<ReverseProxyRule> ReverseProxyRuleList;
39 
41  boolean enabled;
42  IdReference defaultCertificate;
43  ReverseProxyRuleList rules;
44 };
45 
46 interface ReverseProxy {
47 
48  /**
49  * @param config - reverse proxy config (enabled, default cert.)
50  * @throws kerio::web::ApiException \n
51  * -32001 Session expired. - "The user is not logged in." \n
52  * 1004 Access denied. - "Insufficient rights to perform the requested operation."
53  */
54  void get(out ReverseProxyConfig config);
55 
56  /**
57  * @param errors - list of errors TODO Write particular values
58  * @param config - reverse proxy config (enabled, default cert.)
59  * @throws kerio::web::ApiException \n
60  * -32001 Session expired. - "The user is not logged in." \n
61  * 1004 Access denied. - "Insufficient rights to perform the requested operation." \n
62  * 8002 Database error. - "Unable to modify rule for hostname '%1'." \n
63  * 8002 Database error. - "Unable to create rule for hostname '%1'." \n
64  * 8002 Database error. - "Unable to delete rule for hostname '%1'."
65  */
66  void set(out kerio::web::ErrorList errors, in ReverseProxyConfig config);
67 
68 };
69 
70 }; //webadmin
Definition: ReverseProxy.idl:46
Common Kerio Control structures, enums and types.
Definition: ReverseProxy.idl:18
Definition: common.idl:28
Definition: ReverseProxy.idl:40
Definition: Accounting.idl:11