]> git.proxmox.com Git - pmg-docs.git/blame - api-viewer/apidata.js
gen-pmg.conf.5-opts.pl - skip digest and delete properties
[pmg-docs.git] / api-viewer / apidata.js
CommitLineData
410dc2c9
DM
1var pmgapi = [
2 {
3 "children" : [
4 {
5 "children" : [
d7cd791b
DM
6 {
7 "info" : {
8 "GET" : {
9 "description" : "Returns the rule database digest. This is used internally for cluster synchronization.",
10 "method" : "GET",
11 "name" : "ruledb_digest",
12 "parameters" : {
13 "additionalProperties" : 0
14 },
732d76e1
DM
15 "permissions" : {
16 "check" : [
17 "admin",
18 "audit"
19 ]
20 },
d7cd791b
DM
21 "returns" : {
22 "type" : "string"
23 }
24 }
25 },
26 "leaf" : 1,
27 "path" : "/config/ruledb/digest",
28 "text" : "digest"
29 },
410dc2c9 30 {
f245a28c
DM
31 "children" : [
32 {
33 "children" : [
34 {
35 "info" : {
36 "GET" : {
37 "description" : "Get common rule properties.",
38 "method" : "GET",
39 "name" : "config",
40 "parameters" : {
41 "additionalProperties" : 0,
42 "properties" : {
43 "id" : {
44 "description" : "Rule ID.",
45 "type" : "integer",
46 "typetext" : "<integer>"
47 }
48 }
49 },
732d76e1
DM
50 "permissions" : {
51 "check" : [
52 "admin",
53 "audit"
54 ]
55 },
f245a28c
DM
56 "proxyto" : "master",
57 "returns" : {
58 "properties" : {
59 "active" : {
60 "type" : "boolean"
61 },
62 "direction" : {
63 "type" : "integer"
64 },
65 "id" : {
66 "type" : "integer"
67 },
68 "name" : {
69 "type" : "string"
70 },
71 "priority" : {
72 "type" : "integer"
73 }
74 },
75 "type" : "object"
76 }
77 },
78 "PUT" : {
79 "description" : "Set rule properties.",
80 "method" : "PUT",
81 "name" : "update_config",
82 "parameters" : {
83 "additionalProperties" : 0,
84 "properties" : {
85 "active" : {
86 "description" : "Flag to activate rule.",
87 "optional" : 1,
88 "type" : "boolean",
89 "typetext" : "<boolean>"
90 },
91 "direction" : {
92 "description" : "Rule direction. Value `0` matches incomming mails, value `1` matches outgoing mails, and value `2` matches both directions.",
93 "maximum" : 2,
94 "minimum" : 0,
95 "optional" : 1,
96 "type" : "integer",
97 "typetext" : "<integer> (0 - 2)"
98 },
99 "id" : {
100 "description" : "Rule ID.",
101 "type" : "integer",
102 "typetext" : "<integer>"
103 },
104 "name" : {
105 "description" : "Rule name",
106 "optional" : 1,
107 "type" : "string",
108 "typetext" : "<string>"
109 },
110 "priority" : {
111 "description" : "Rule priotity.",
112 "maximum" : 100,
113 "minimum" : 0,
114 "optional" : 1,
115 "type" : "integer",
116 "typetext" : "<integer> (0 - 100)"
117 }
118 }
119 },
732d76e1
DM
120 "permissions" : {
121 "check" : [
122 "admin"
123 ]
124 },
f245a28c
DM
125 "protected" : 1,
126 "proxyto" : "master",
127 "returns" : {
128 "type" : "null"
129 }
130 }
131 },
132 "leaf" : 1,
133 "path" : "/config/ruledb/rules/{id}/config",
134 "text" : "config"
135 },
136 {
137 "children" : [
138 {
139 "info" : {
140 "DELETE" : {
141 "description" : "Delete group from 'from' list.",
142 "method" : "DELETE",
143 "name" : "delete_from_group",
144 "parameters" : {
145 "additionalProperties" : 0,
146 "properties" : {
147 "id" : {
148 "description" : "Rule ID.",
149 "type" : "integer",
150 "typetext" : "<integer>"
151 },
152 "ogroup" : {
153 "description" : "Groups ID.",
154 "type" : "integer",
155 "typetext" : "<integer>"
156 }
157 }
158 },
732d76e1
DM
159 "permissions" : {
160 "check" : [
161 "admin"
162 ]
163 },
f245a28c
DM
164 "protected" : 1,
165 "proxyto" : "master",
166 "returns" : {
167 "type" : "null"
168 }
169 }
170 },
171 "leaf" : 1,
172 "path" : "/config/ruledb/rules/{id}/from/{ogroup}",
173 "text" : "{ogroup}"
174 }
175 ],
176 "info" : {
177 "GET" : {
178 "description" : "Get 'from' group list.",
179 "method" : "GET",
180 "name" : "from",
181 "parameters" : {
182 "additionalProperties" : 0,
183 "properties" : {
184 "id" : {
185 "description" : "Rule ID.",
186 "type" : "integer",
187 "typetext" : "<integer>"
188 }
189 }
190 },
732d76e1
DM
191 "permissions" : {
192 "check" : [
193 "admin",
194 "audit"
195 ]
196 },
f245a28c
DM
197 "proxyto" : "master",
198 "returns" : {
199 "items" : {
200 "properties" : {
201 "id" : {
202 "type" : "integer"
203 }
204 },
205 "type" : "object"
206 },
207 "type" : "array"
208 }
209 },
210 "POST" : {
211 "description" : "Add group to 'from' list.",
212 "method" : "POST",
213 "name" : "add_from_group",
214 "parameters" : {
215 "additionalProperties" : 0,
216 "properties" : {
217 "id" : {
218 "description" : "Rule ID.",
219 "type" : "integer",
220 "typetext" : "<integer>"
221 },
222 "ogroup" : {
223 "description" : "Groups ID.",
224 "type" : "integer",
225 "typetext" : "<integer>"
226 }
227 }
228 },
732d76e1
DM
229 "permissions" : {
230 "check" : [
231 "admin"
232 ]
233 },
f245a28c
DM
234 "protected" : 1,
235 "proxyto" : "master",
236 "returns" : {
237 "type" : "null"
238 }
239 }
240 },
241 "leaf" : 0,
242 "path" : "/config/ruledb/rules/{id}/from",
243 "text" : "from"
244 },
245 {
246 "children" : [
247 {
248 "info" : {
249 "DELETE" : {
250 "description" : "Delete group from 'to' list.",
251 "method" : "DELETE",
252 "name" : "delete_to_group",
253 "parameters" : {
254 "additionalProperties" : 0,
255 "properties" : {
256 "id" : {
257 "description" : "Rule ID.",
258 "type" : "integer",
259 "typetext" : "<integer>"
260 },
261 "ogroup" : {
262 "description" : "Groups ID.",
263 "type" : "integer",
264 "typetext" : "<integer>"
265 }
266 }
267 },
732d76e1
DM
268 "permissions" : {
269 "check" : [
270 "admin"
271 ]
272 },
f245a28c
DM
273 "protected" : 1,
274 "proxyto" : "master",
275 "returns" : {
276 "type" : "null"
277 }
278 }
279 },
280 "leaf" : 1,
281 "path" : "/config/ruledb/rules/{id}/to/{ogroup}",
282 "text" : "{ogroup}"
283 }
284 ],
285 "info" : {
286 "GET" : {
287 "description" : "Get 'to' group list.",
288 "method" : "GET",
289 "name" : "to",
290 "parameters" : {
291 "additionalProperties" : 0,
292 "properties" : {
293 "id" : {
294 "description" : "Rule ID.",
295 "type" : "integer",
296 "typetext" : "<integer>"
297 }
298 }
299 },
732d76e1
DM
300 "permissions" : {
301 "check" : [
302 "admin",
303 "audit"
304 ]
305 },
f245a28c
DM
306 "proxyto" : "master",
307 "returns" : {
308 "items" : {
309 "properties" : {
310 "id" : {
311 "type" : "integer"
312 }
313 },
314 "type" : "object"
315 },
316 "type" : "array"
317 }
318 },
319 "POST" : {
320 "description" : "Add group to 'to' list.",
321 "method" : "POST",
322 "name" : "add_to_group",
323 "parameters" : {
324 "additionalProperties" : 0,
325 "properties" : {
326 "id" : {
327 "description" : "Rule ID.",
328 "type" : "integer",
329 "typetext" : "<integer>"
330 },
331 "ogroup" : {
332 "description" : "Groups ID.",
333 "type" : "integer",
334 "typetext" : "<integer>"
335 }
336 }
337 },
732d76e1
DM
338 "permissions" : {
339 "check" : [
340 "admin"
341 ]
342 },
f245a28c
DM
343 "protected" : 1,
344 "proxyto" : "master",
345 "returns" : {
346 "type" : "null"
347 }
348 }
349 },
350 "leaf" : 0,
351 "path" : "/config/ruledb/rules/{id}/to",
352 "text" : "to"
353 },
354 {
355 "children" : [
356 {
357 "info" : {
358 "DELETE" : {
359 "description" : "Delete group from 'when' list.",
360 "method" : "DELETE",
361 "name" : "delete_when_group",
362 "parameters" : {
363 "additionalProperties" : 0,
364 "properties" : {
365 "id" : {
366 "description" : "Rule ID.",
367 "type" : "integer",
368 "typetext" : "<integer>"
369 },
370 "ogroup" : {
371 "description" : "Groups ID.",
372 "type" : "integer",
373 "typetext" : "<integer>"
374 }
375 }
376 },
732d76e1
DM
377 "permissions" : {
378 "check" : [
379 "admin"
380 ]
381 },
f245a28c
DM
382 "protected" : 1,
383 "proxyto" : "master",
384 "returns" : {
385 "type" : "null"
386 }
387 }
388 },
389 "leaf" : 1,
390 "path" : "/config/ruledb/rules/{id}/when/{ogroup}",
391 "text" : "{ogroup}"
392 }
393 ],
394 "info" : {
395 "GET" : {
396 "description" : "Get 'when' group list.",
397 "method" : "GET",
398 "name" : "when",
399 "parameters" : {
400 "additionalProperties" : 0,
401 "properties" : {
402 "id" : {
403 "description" : "Rule ID.",
404 "type" : "integer",
405 "typetext" : "<integer>"
406 }
407 }
408 },
732d76e1
DM
409 "permissions" : {
410 "check" : [
411 "admin",
412 "audit"
413 ]
414 },
f245a28c
DM
415 "proxyto" : "master",
416 "returns" : {
417 "items" : {
418 "properties" : {
419 "id" : {
420 "type" : "integer"
421 }
422 },
423 "type" : "object"
424 },
425 "type" : "array"
426 }
427 },
428 "POST" : {
429 "description" : "Add group to 'when' list.",
430 "method" : "POST",
431 "name" : "add_when_group",
432 "parameters" : {
433 "additionalProperties" : 0,
434 "properties" : {
435 "id" : {
436 "description" : "Rule ID.",
437 "type" : "integer",
438 "typetext" : "<integer>"
439 },
440 "ogroup" : {
441 "description" : "Groups ID.",
442 "type" : "integer",
443 "typetext" : "<integer>"
444 }
445 }
446 },
732d76e1
DM
447 "permissions" : {
448 "check" : [
449 "admin"
450 ]
451 },
f245a28c
DM
452 "protected" : 1,
453 "proxyto" : "master",
454 "returns" : {
455 "type" : "null"
456 }
457 }
458 },
459 "leaf" : 0,
460 "path" : "/config/ruledb/rules/{id}/when",
461 "text" : "when"
462 },
463 {
464 "children" : [
465 {
466 "info" : {
467 "DELETE" : {
468 "description" : "Delete group from 'what' list.",
469 "method" : "DELETE",
470 "name" : "delete_what_group",
471 "parameters" : {
472 "additionalProperties" : 0,
473 "properties" : {
474 "id" : {
475 "description" : "Rule ID.",
476 "type" : "integer",
477 "typetext" : "<integer>"
478 },
479 "ogroup" : {
480 "description" : "Groups ID.",
481 "type" : "integer",
482 "typetext" : "<integer>"
483 }
484 }
485 },
732d76e1
DM
486 "permissions" : {
487 "check" : [
488 "admin"
489 ]
490 },
f245a28c
DM
491 "protected" : 1,
492 "proxyto" : "master",
493 "returns" : {
494 "type" : "null"
495 }
496 }
497 },
498 "leaf" : 1,
499 "path" : "/config/ruledb/rules/{id}/what/{ogroup}",
500 "text" : "{ogroup}"
501 }
502 ],
503 "info" : {
504 "GET" : {
505 "description" : "Get 'what' group list.",
506 "method" : "GET",
507 "name" : "what",
508 "parameters" : {
509 "additionalProperties" : 0,
510 "properties" : {
511 "id" : {
512 "description" : "Rule ID.",
513 "type" : "integer",
514 "typetext" : "<integer>"
515 }
516 }
517 },
732d76e1
DM
518 "permissions" : {
519 "check" : [
520 "admin",
521 "audit"
522 ]
523 },
f245a28c
DM
524 "proxyto" : "master",
525 "returns" : {
526 "items" : {
527 "properties" : {
528 "id" : {
529 "type" : "integer"
530 }
531 },
532 "type" : "object"
533 },
534 "type" : "array"
535 }
536 },
537 "POST" : {
538 "description" : "Add group to 'what' list.",
539 "method" : "POST",
540 "name" : "add_what_group",
541 "parameters" : {
542 "additionalProperties" : 0,
543 "properties" : {
544 "id" : {
545 "description" : "Rule ID.",
546 "type" : "integer",
547 "typetext" : "<integer>"
548 },
549 "ogroup" : {
550 "description" : "Groups ID.",
551 "type" : "integer",
552 "typetext" : "<integer>"
553 }
554 }
555 },
732d76e1
DM
556 "permissions" : {
557 "check" : [
558 "admin"
559 ]
560 },
f245a28c
DM
561 "protected" : 1,
562 "proxyto" : "master",
563 "returns" : {
564 "type" : "null"
565 }
566 }
567 },
568 "leaf" : 0,
569 "path" : "/config/ruledb/rules/{id}/what",
570 "text" : "what"
571 },
572 {
573 "children" : [
574 {
575 "info" : {
576 "DELETE" : {
577 "description" : "Delete group from 'action' list.",
578 "method" : "DELETE",
579 "name" : "delete_action_group",
580 "parameters" : {
581 "additionalProperties" : 0,
582 "properties" : {
583 "id" : {
584 "description" : "Rule ID.",
585 "type" : "integer",
586 "typetext" : "<integer>"
587 },
588 "ogroup" : {
589 "description" : "Groups ID.",
590 "type" : "integer",
591 "typetext" : "<integer>"
592 }
593 }
594 },
732d76e1
DM
595 "permissions" : {
596 "check" : [
597 "admin"
598 ]
599 },
f245a28c
DM
600 "protected" : 1,
601 "proxyto" : "master",
602 "returns" : {
603 "type" : "null"
604 }
605 }
606 },
607 "leaf" : 1,
608 "path" : "/config/ruledb/rules/{id}/action/{ogroup}",
609 "text" : "{ogroup}"
610 }
611 ],
612 "info" : {
613 "GET" : {
614 "description" : "Get 'action' group list.",
615 "method" : "GET",
616 "name" : "action",
617 "parameters" : {
618 "additionalProperties" : 0,
619 "properties" : {
620 "id" : {
621 "description" : "Rule ID.",
622 "type" : "integer",
623 "typetext" : "<integer>"
624 }
625 }
626 },
732d76e1
DM
627 "permissions" : {
628 "check" : [
629 "admin",
630 "audit"
631 ]
632 },
f245a28c
DM
633 "proxyto" : "master",
634 "returns" : {
635 "items" : {
636 "properties" : {
637 "id" : {
638 "type" : "integer"
639 }
640 },
641 "type" : "object"
642 },
643 "type" : "array"
644 }
645 },
646 "POST" : {
647 "description" : "Add group to 'action' list.",
648 "method" : "POST",
649 "name" : "add_action_group",
650 "parameters" : {
651 "additionalProperties" : 0,
652 "properties" : {
653 "id" : {
654 "description" : "Rule ID.",
655 "type" : "integer",
656 "typetext" : "<integer>"
657 },
658 "ogroup" : {
659 "description" : "Groups ID.",
660 "type" : "integer",
661 "typetext" : "<integer>"
662 }
663 }
664 },
732d76e1
DM
665 "permissions" : {
666 "check" : [
667 "admin"
668 ]
669 },
f245a28c
DM
670 "protected" : 1,
671 "proxyto" : "master",
672 "returns" : {
673 "type" : "null"
674 }
675 }
676 },
677 "leaf" : 0,
678 "path" : "/config/ruledb/rules/{id}/action",
679 "text" : "action"
680 }
681 ],
682 "info" : {
683 "DELETE" : {
684 "description" : "Delete rule.",
685 "method" : "DELETE",
686 "name" : "delete_rule",
687 "parameters" : {
688 "additionalProperties" : 0,
689 "properties" : {
690 "id" : {
691 "description" : "Rule ID.",
692 "type" : "integer",
693 "typetext" : "<integer>"
694 }
695 }
696 },
732d76e1
DM
697 "permissions" : {
698 "check" : [
699 "admin"
700 ]
701 },
d7cd791b
DM
702 "protected" : 1,
703 "proxyto" : "master",
f245a28c
DM
704 "returns" : {
705 "type" : "null"
706 }
707 },
708 "GET" : {
709 "description" : "Directory index.",
710 "method" : "GET",
711 "name" : "index",
712 "parameters" : {
713 "additionalProperties" : 0,
714 "properties" : {
715 "id" : {
716 "description" : "Rule ID.",
717 "type" : "integer",
718 "typetext" : "<integer>"
719 }
720 }
721 },
732d76e1
DM
722 "permissions" : {
723 "check" : [
724 "admin",
725 "audit"
726 ]
727 },
f245a28c
DM
728 "returns" : {
729 "items" : {
730 "properties" : {
731 "subdir" : {
732 "type" : "string"
733 }
734 },
735 "type" : "object"
736 },
737 "links" : [
738 {
739 "href" : "{subdir}",
740 "rel" : "child"
741 }
742 ],
743 "type" : "array"
744 }
745 }
746 },
747 "leaf" : 0,
748 "path" : "/config/ruledb/rules/{id}",
749 "text" : "{id}"
750 }
751 ],
752 "info" : {
753 "GET" : {
754 "description" : "Get list of rules.",
755 "method" : "GET",
756 "name" : "list_rules",
757 "parameters" : {
758 "additionalProperties" : 0
759 },
732d76e1
DM
760 "permissions" : {
761 "check" : [
762 "admin",
763 "audit"
764 ]
765 },
f245a28c
DM
766 "proxyto" : "master",
767 "returns" : {
768 "items" : {
769 "properties" : {
770 "id" : {
771 "type" : "integer"
772 }
773 },
774 "type" : "object"
775 },
776 "links" : [
777 {
778 "href" : "{id}",
779 "rel" : "child"
780 }
781 ],
782 "type" : "array"
783 }
784 },
785 "POST" : {
786 "description" : "Create new rule.",
787 "method" : "POST",
788 "name" : "create_rule",
789 "parameters" : {
790 "additionalProperties" : 0,
791 "properties" : {
792 "active" : {
793 "description" : "Flag to activate rule.",
794 "optional" : 1,
795 "type" : "boolean",
796 "typetext" : "<boolean>"
797 },
798 "direction" : {
799 "description" : "Rule direction. Value `0` matches incomming mails, value `1` matches outgoing mails, and value `2` matches both directions.",
800 "maximum" : 2,
801 "minimum" : 0,
802 "optional" : 1,
803 "type" : "integer",
804 "typetext" : "<integer> (0 - 2)"
805 },
806 "name" : {
807 "description" : "Rule name",
808 "type" : "string",
809 "typetext" : "<string>"
810 },
811 "priority" : {
812 "description" : "Rule priotity.",
813 "maximum" : 100,
814 "minimum" : 0,
815 "type" : "integer",
816 "typetext" : "<integer> (0 - 100)"
817 }
818 }
819 },
732d76e1
DM
820 "permissions" : {
821 "check" : [
822 "admin"
823 ]
824 },
f245a28c
DM
825 "protected" : 1,
826 "proxyto" : "master",
827 "returns" : {
828 "type" : "integer"
829 }
830 }
831 },
832 "leaf" : 0,
833 "path" : "/config/ruledb/rules",
834 "text" : "rules"
835 },
836 {
837 "children" : [
838 {
839 "children" : [
840 {
841 "info" : {
842 "DELETE" : {
843 "description" : "Delete 'actions' object.",
844 "method" : "DELETE",
845 "name" : "delete_action",
846 "parameters" : {
847 "additionalProperties" : 0,
848 "properties" : {
849 "id" : {
850 "description" : "Action Object ID.",
851 "pattern" : "\\d+_\\d+",
852 "type" : "string"
853 }
854 }
855 },
732d76e1
DM
856 "permissions" : {
857 "check" : [
858 "admin"
859 ]
860 },
d7cd791b
DM
861 "protected" : 1,
862 "proxyto" : "master",
f245a28c
DM
863 "returns" : {
864 "type" : "null"
865 }
866 }
867 },
868 "leaf" : 1,
869 "path" : "/config/ruledb/action/objects/{id}",
870 "text" : "{id}"
871 }
872 ],
873 "info" : {
874 "GET" : {
875 "description" : "List 'actions' objects.",
876 "method" : "GET",
877 "name" : "list_actions",
878 "parameters" : {
879 "additionalProperties" : 0
880 },
732d76e1
DM
881 "permissions" : {
882 "check" : [
883 "admin",
884 "audit"
885 ]
886 },
d7cd791b 887 "proxyto" : "master",
f245a28c
DM
888 "returns" : {
889 "items" : {
890 "properties" : {
891 "id" : {
892 "description" : "Action Object ID.",
893 "pattern" : "\\d+_\\d+",
894 "type" : "string"
895 }
896 },
897 "type" : "object"
898 },
899 "links" : [
900 {
901 "href" : "{id}",
902 "rel" : "child"
903 }
904 ],
905 "type" : "array"
906 }
907 }
908 },
909 "leaf" : 0,
910 "path" : "/config/ruledb/action/objects",
911 "text" : "objects"
912 },
913 {
914 "children" : [
915 {
916 "info" : {
917 "GET" : {
918 "description" : "Read 'BCC' object settings.",
919 "method" : "GET",
920 "name" : "read_bcc",
921 "parameters" : {
922 "additionalProperties" : 0,
923 "properties" : {
924 "id" : {
925 "description" : "Action Object ID.",
926 "pattern" : "\\d+_\\d+",
927 "type" : "string"
928 }
929 }
930 },
732d76e1
DM
931 "permissions" : {
932 "check" : [
933 "admin",
934 "audit"
935 ]
936 },
f245a28c
DM
937 "proxyto" : "master",
938 "returns" : {
939 "properties" : {
940 "id" : {
941 "type" : "string"
942 }
943 },
944 "type" : "object"
945 }
946 },
947 "PUT" : {
948 "description" : "Update 'BCC' object.",
949 "method" : "PUT",
950 "name" : "update_bcc",
951 "parameters" : {
952 "additionalProperties" : 0,
953 "properties" : {
954 "id" : {
955 "description" : "Action Object ID.",
956 "pattern" : "\\d+_\\d+",
957 "type" : "string"
958 },
959 "info" : {
960 "description" : "Informational comment.",
961 "maxLength" : 255,
962 "optional" : 1,
963 "type" : "string",
964 "typetext" : "<string>"
965 },
966 "name" : {
967 "description" : "Action name.",
968 "maxLength" : 255,
969 "optional" : 1,
970 "type" : "string",
971 "typetext" : "<string>"
972 },
973 "original" : {
974 "default" : 1,
975 "description" : "Send the original, unmodified mail.",
976 "optional" : 1,
977 "type" : "boolean",
978 "typetext" : "<boolean>"
979 },
980 "target" : {
981 "description" : "Send a Blind Carbon Copy to this email address.",
982 "format" : "email",
983 "type" : "string",
984 "typetext" : "<string>"
985 }
986 }
987 },
732d76e1
DM
988 "permissions" : {
989 "check" : [
990 "admin"
991 ]
992 },
d7cd791b 993 "protected" : 1,
f245a28c
DM
994 "proxyto" : "master",
995 "returns" : {
996 "type" : "null"
997 }
998 }
999 },
1000 "leaf" : 1,
1001 "path" : "/config/ruledb/action/bcc/{id}",
1002 "text" : "{id}"
1003 }
1004 ],
1005 "info" : {
1006 "POST" : {
1007 "description" : "Create 'BCC' object.",
1008 "method" : "POST",
1009 "name" : "bcc",
1010 "parameters" : {
1011 "additionalProperties" : 0,
1012 "properties" : {
1013 "info" : {
1014 "description" : "Informational comment.",
1015 "maxLength" : 255,
1016 "optional" : 1,
1017 "type" : "string",
1018 "typetext" : "<string>"
1019 },
1020 "name" : {
1021 "description" : "Action name.",
1022 "maxLength" : 255,
1023 "type" : "string",
1024 "typetext" : "<string>"
1025 },
1026 "original" : {
1027 "default" : 1,
1028 "description" : "Send the original, unmodified mail.",
1029 "optional" : 1,
1030 "type" : "boolean",
1031 "typetext" : "<boolean>"
1032 },
1033 "target" : {
1034 "description" : "Send a Blind Carbon Copy to this email address.",
1035 "format" : "email",
1036 "type" : "string",
1037 "typetext" : "<string>"
1038 }
1039 }
1040 },
732d76e1
DM
1041 "permissions" : {
1042 "check" : [
1043 "admin"
1044 ]
1045 },
d7cd791b 1046 "protected" : 1,
f245a28c
DM
1047 "proxyto" : "master",
1048 "returns" : {
1049 "description" : "The object ID.",
1050 "type" : "string"
1051 }
1052 }
1053 },
1054 "leaf" : 0,
1055 "path" : "/config/ruledb/action/bcc",
1056 "text" : "bcc"
732d76e1 1057 },
f245a28c
DM
1058 {
1059 "children" : [
1060 {
1061 "info" : {
1062 "GET" : {
732d76e1 1063 "description" : "Read 'Header Attribute' object settings.",
f245a28c 1064 "method" : "GET",
732d76e1 1065 "name" : "read_field",
f245a28c
DM
1066 "parameters" : {
1067 "additionalProperties" : 0,
1068 "properties" : {
732d76e1
DM
1069 "id" : {
1070 "description" : "Action Object ID.",
1071 "pattern" : "\\d+_\\d+",
1072 "type" : "string"
f245a28c
DM
1073 }
1074 }
1075 },
732d76e1
DM
1076 "permissions" : {
1077 "check" : [
1078 "admin",
1079 "audit"
1080 ]
1081 },
f245a28c
DM
1082 "proxyto" : "master",
1083 "returns" : {
1084 "properties" : {
1085 "id" : {
f245a28c
DM
1086 "type" : "string"
1087 }
1088 },
1089 "type" : "object"
1090 }
1091 },
1092 "PUT" : {
732d76e1 1093 "description" : "Update 'Header Attribute' object.",
f245a28c 1094 "method" : "PUT",
732d76e1 1095 "name" : "update_field",
f245a28c
DM
1096 "parameters" : {
1097 "additionalProperties" : 0,
1098 "properties" : {
732d76e1
DM
1099 "field" : {
1100 "description" : "The Field",
1101 "maxLength" : 1024,
1102 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
1103 "type" : "string"
1104 },
1105 "id" : {
1106 "description" : "Action Object ID.",
1107 "pattern" : "\\d+_\\d+",
1108 "type" : "string"
1109 },
f245a28c
DM
1110 "info" : {
1111 "description" : "Informational comment.",
1112 "maxLength" : 255,
1113 "optional" : 1,
1114 "type" : "string",
1115 "typetext" : "<string>"
1116 },
1117 "name" : {
732d76e1 1118 "description" : "Action name.",
f245a28c
DM
1119 "maxLength" : 255,
1120 "optional" : 1,
1121 "type" : "string",
1122 "typetext" : "<string>"
1123 },
732d76e1
DM
1124 "value" : {
1125 "description" : "The Value",
1126 "maxLength" : 1024,
1127 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
1128 "type" : "string"
f245a28c
DM
1129 }
1130 }
1131 },
732d76e1
DM
1132 "permissions" : {
1133 "check" : [
1134 "admin"
1135 ]
1136 },
d7cd791b 1137 "protected" : 1,
f245a28c
DM
1138 "proxyto" : "master",
1139 "returns" : {
1140 "type" : "null"
1141 }
1142 }
1143 },
1144 "leaf" : 1,
732d76e1
DM
1145 "path" : "/config/ruledb/action/field/{id}",
1146 "text" : "{id}"
1147 }
1148 ],
1149 "info" : {
1150 "POST" : {
1151 "description" : "Create 'Header Attribute' object.",
1152 "method" : "POST",
1153 "name" : "field",
1154 "parameters" : {
1155 "additionalProperties" : 0,
1156 "properties" : {
1157 "field" : {
1158 "description" : "The Field",
1159 "maxLength" : 1024,
1160 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
1161 "type" : "string"
1162 },
f245a28c 1163 "info" : {
732d76e1
DM
1164 "description" : "Informational comment.",
1165 "maxLength" : 255,
1166 "optional" : 1,
1167 "type" : "string",
1168 "typetext" : "<string>"
1169 },
1170 "name" : {
1171 "description" : "Action name.",
1172 "maxLength" : 255,
1173 "type" : "string",
1174 "typetext" : "<string>"
1175 },
1176 "value" : {
1177 "description" : "The Value",
1178 "maxLength" : 1024,
1179 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
1180 "type" : "string"
1181 }
1182 }
1183 },
1184 "permissions" : {
1185 "check" : [
1186 "admin"
1187 ]
1188 },
1189 "protected" : 1,
1190 "proxyto" : "master",
1191 "returns" : {
1192 "description" : "The object ID.",
1193 "type" : "string"
1194 }
1195 }
1196 },
1197 "leaf" : 0,
1198 "path" : "/config/ruledb/action/field",
1199 "text" : "field"
1200 },
1201 {
1202 "children" : [
1203 {
1204 "info" : {
1205 "GET" : {
1206 "description" : "Read 'Notification' object settings.",
1207 "method" : "GET",
1208 "name" : "read_notification",
1209 "parameters" : {
1210 "additionalProperties" : 0,
1211 "properties" : {
1212 "id" : {
1213 "description" : "Action Object ID.",
1214 "pattern" : "\\d+_\\d+",
1215 "type" : "string"
1216 }
1217 }
1218 },
1219 "permissions" : {
1220 "check" : [
1221 "admin",
1222 "audit"
1223 ]
1224 },
1225 "proxyto" : "master",
1226 "returns" : {
1227 "properties" : {
1228 "id" : {
1229 "type" : "string"
1230 }
1231 },
1232 "type" : "object"
1233 }
1234 },
1235 "PUT" : {
1236 "description" : "Update 'Notification' object.",
1237 "method" : "PUT",
1238 "name" : "update_notification",
1239 "parameters" : {
1240 "additionalProperties" : 0,
1241 "properties" : {
1242 "attach" : {
1243 "default" : 0,
1244 "description" : "Attach original E-Mail",
1245 "optional" : 1,
1246 "type" : "boolean",
1247 "typetext" : "<boolean>"
1248 },
1249 "body" : {
1250 "description" : "The Notification Body",
1251 "maxLength" : 2048,
1252 "type" : "string",
1253 "typetext" : "<string>"
1254 },
1255 "id" : {
1256 "description" : "Action Object ID.",
1257 "pattern" : "\\d+_\\d+",
1258 "type" : "string"
1259 },
1260 "info" : {
1261 "description" : "Informational comment.",
1262 "maxLength" : 255,
1263 "optional" : 1,
1264 "type" : "string",
1265 "typetext" : "<string>"
1266 },
1267 "name" : {
1268 "description" : "Action name.",
1269 "maxLength" : 255,
1270 "optional" : 1,
1271 "type" : "string",
1272 "typetext" : "<string>"
1273 },
1274 "subject" : {
1275 "description" : "The Notification subject",
1276 "maxLength" : 100,
1277 "type" : "string",
1278 "typetext" : "<string>"
1279 },
1280 "to" : {
1281 "description" : "The Receiver E-Mail address",
1282 "maxLength" : 200,
1283 "type" : "string",
1284 "typetext" : "<string>"
1285 }
1286 }
1287 },
1288 "permissions" : {
1289 "check" : [
1290 "admin"
1291 ]
1292 },
1293 "protected" : 1,
1294 "proxyto" : "master",
1295 "returns" : {
1296 "type" : "null"
1297 }
1298 }
1299 },
1300 "leaf" : 1,
1301 "path" : "/config/ruledb/action/notification/{id}",
1302 "text" : "{id}"
1303 }
1304 ],
1305 "info" : {
1306 "POST" : {
1307 "description" : "Create 'Notification' object.",
1308 "method" : "POST",
1309 "name" : "notification",
1310 "parameters" : {
1311 "additionalProperties" : 0,
1312 "properties" : {
1313 "attach" : {
1314 "default" : 0,
1315 "description" : "Attach original E-Mail",
1316 "optional" : 1,
1317 "type" : "boolean",
1318 "typetext" : "<boolean>"
1319 },
1320 "body" : {
1321 "description" : "The Notification Body",
1322 "maxLength" : 2048,
1323 "type" : "string",
1324 "typetext" : "<string>"
1325 },
1326 "info" : {
1327 "description" : "Informational comment.",
1328 "maxLength" : 255,
1329 "optional" : 1,
1330 "type" : "string",
1331 "typetext" : "<string>"
1332 },
1333 "name" : {
1334 "description" : "Action name.",
1335 "maxLength" : 255,
1336 "type" : "string",
1337 "typetext" : "<string>"
1338 },
1339 "subject" : {
1340 "description" : "The Notification subject",
1341 "maxLength" : 100,
1342 "type" : "string",
1343 "typetext" : "<string>"
1344 },
1345 "to" : {
1346 "description" : "The Receiver E-Mail address",
1347 "maxLength" : 200,
1348 "type" : "string",
1349 "typetext" : "<string>"
1350 }
1351 }
1352 },
1353 "permissions" : {
1354 "check" : [
1355 "admin"
1356 ]
1357 },
1358 "protected" : 1,
1359 "proxyto" : "master",
1360 "returns" : {
1361 "description" : "The object ID.",
1362 "type" : "string"
1363 }
1364 }
1365 },
1366 "leaf" : 0,
1367 "path" : "/config/ruledb/action/notification",
1368 "text" : "notification"
1369 },
1370 {
1371 "children" : [
1372 {
1373 "info" : {
1374 "GET" : {
1375 "description" : "Read 'Disclaimer' object settings.",
1376 "method" : "GET",
1377 "name" : "read_disclaimer",
1378 "parameters" : {
1379 "additionalProperties" : 0,
1380 "properties" : {
1381 "id" : {
1382 "description" : "Action Object ID.",
1383 "pattern" : "\\d+_\\d+",
1384 "type" : "string"
1385 }
1386 }
1387 },
1388 "permissions" : {
1389 "check" : [
1390 "admin",
1391 "audit"
1392 ]
1393 },
1394 "proxyto" : "master",
1395 "returns" : {
1396 "properties" : {
1397 "id" : {
1398 "type" : "string"
1399 }
1400 },
1401 "type" : "object"
1402 }
1403 },
1404 "PUT" : {
1405 "description" : "Update 'Disclaimer' object.",
1406 "method" : "PUT",
1407 "name" : "update_disclaimer",
1408 "parameters" : {
1409 "additionalProperties" : 0,
1410 "properties" : {
1411 "disclaimer" : {
1412 "description" : "The Disclaimer",
1413 "maxLength" : 2048,
1414 "type" : "string",
1415 "typetext" : "<string>"
1416 },
1417 "id" : {
1418 "description" : "Action Object ID.",
1419 "pattern" : "\\d+_\\d+",
1420 "type" : "string"
1421 },
1422 "info" : {
1423 "description" : "Informational comment.",
1424 "maxLength" : 255,
1425 "optional" : 1,
1426 "type" : "string",
1427 "typetext" : "<string>"
1428 },
1429 "name" : {
1430 "description" : "Action name.",
1431 "maxLength" : 255,
1432 "optional" : 1,
1433 "type" : "string",
1434 "typetext" : "<string>"
1435 }
1436 }
1437 },
1438 "permissions" : {
1439 "check" : [
1440 "admin"
1441 ]
1442 },
1443 "protected" : 1,
1444 "proxyto" : "master",
1445 "returns" : {
1446 "type" : "null"
1447 }
1448 }
1449 },
1450 "leaf" : 1,
1451 "path" : "/config/ruledb/action/disclaimer/{id}",
1452 "text" : "{id}"
1453 }
1454 ],
1455 "info" : {
1456 "POST" : {
1457 "description" : "Create 'Disclaimer' object.",
1458 "method" : "POST",
1459 "name" : "disclaimer",
1460 "parameters" : {
1461 "additionalProperties" : 0,
1462 "properties" : {
1463 "disclaimer" : {
1464 "description" : "The Disclaimer",
1465 "maxLength" : 2048,
1466 "type" : "string",
1467 "typetext" : "<string>"
1468 },
1469 "info" : {
1470 "description" : "Informational comment.",
1471 "maxLength" : 255,
1472 "optional" : 1,
1473 "type" : "string",
1474 "typetext" : "<string>"
1475 },
1476 "name" : {
1477 "description" : "Action name.",
1478 "maxLength" : 255,
1479 "type" : "string",
1480 "typetext" : "<string>"
1481 }
1482 }
1483 },
1484 "permissions" : {
1485 "check" : [
1486 "admin"
1487 ]
1488 },
1489 "protected" : 1,
1490 "proxyto" : "master",
1491 "returns" : {
1492 "description" : "The object ID.",
1493 "type" : "string"
1494 }
1495 }
1496 },
1497 "leaf" : 0,
1498 "path" : "/config/ruledb/action/disclaimer",
1499 "text" : "disclaimer"
1500 },
1501 {
1502 "children" : [
1503 {
1504 "info" : {
1505 "GET" : {
1506 "description" : "Read 'Remove attachments' object settings.",
1507 "method" : "GET",
1508 "name" : "read_removeattachments",
1509 "parameters" : {
1510 "additionalProperties" : 0,
1511 "properties" : {
1512 "id" : {
1513 "description" : "Action Object ID.",
1514 "pattern" : "\\d+_\\d+",
1515 "type" : "string"
1516 }
1517 }
1518 },
1519 "permissions" : {
1520 "check" : [
1521 "admin",
1522 "audit"
1523 ]
1524 },
1525 "proxyto" : "master",
1526 "returns" : {
1527 "properties" : {
1528 "id" : {
1529 "type" : "string"
1530 }
1531 },
1532 "type" : "object"
1533 }
1534 },
1535 "PUT" : {
1536 "description" : "Update 'Remove attachments' object.",
1537 "method" : "PUT",
1538 "name" : "update_removeattachments",
1539 "parameters" : {
1540 "additionalProperties" : 0,
1541 "properties" : {
1542 "all" : {
1543 "description" : "Remove all attachments",
1544 "optional" : 1,
1545 "type" : "boolean",
1546 "typetext" : "<boolean>"
1547 },
1548 "id" : {
1549 "description" : "Action Object ID.",
1550 "pattern" : "\\d+_\\d+",
1551 "type" : "string"
1552 },
1553 "info" : {
1554 "description" : "Informational comment.",
1555 "maxLength" : 255,
1556 "optional" : 1,
1557 "type" : "string",
1558 "typetext" : "<string>"
1559 },
1560 "name" : {
1561 "description" : "Action name.",
1562 "maxLength" : 255,
1563 "optional" : 1,
1564 "type" : "string",
1565 "typetext" : "<string>"
1566 },
1567 "text" : {
1568 "description" : "The replacement text.",
1569 "maxLength" : 2048,
1570 "type" : "string",
1571 "typetext" : "<string>"
1572 }
1573 }
1574 },
1575 "permissions" : {
1576 "check" : [
1577 "admin"
1578 ]
1579 },
1580 "protected" : 1,
1581 "proxyto" : "master",
1582 "returns" : {
1583 "type" : "null"
1584 }
1585 }
1586 },
1587 "leaf" : 1,
1588 "path" : "/config/ruledb/action/removeattachments/{id}",
1589 "text" : "{id}"
1590 }
1591 ],
1592 "info" : {
1593 "POST" : {
1594 "description" : "Create 'Remove attachments' object.",
1595 "method" : "POST",
1596 "name" : "removeattachments",
1597 "parameters" : {
1598 "additionalProperties" : 0,
1599 "properties" : {
1600 "all" : {
1601 "description" : "Remove all attachments",
1602 "optional" : 1,
1603 "type" : "boolean",
1604 "typetext" : "<boolean>"
1605 },
1606 "info" : {
1607 "description" : "Informational comment.",
1608 "maxLength" : 255,
1609 "optional" : 1,
1610 "type" : "string",
1611 "typetext" : "<string>"
1612 },
1613 "name" : {
1614 "description" : "Action name.",
1615 "maxLength" : 255,
1616 "type" : "string",
1617 "typetext" : "<string>"
1618 },
1619 "text" : {
1620 "description" : "The replacement text.",
1621 "maxLength" : 2048,
1622 "type" : "string",
1623 "typetext" : "<string>"
1624 }
1625 }
1626 },
1627 "permissions" : {
1628 "check" : [
1629 "admin"
1630 ]
1631 },
1632 "protected" : 1,
1633 "proxyto" : "master",
1634 "returns" : {
1635 "description" : "The object ID.",
1636 "type" : "string"
1637 }
1638 }
1639 },
1640 "leaf" : 0,
1641 "path" : "/config/ruledb/action/removeattachments",
1642 "text" : "removeattachments"
1643 }
1644 ],
1645 "info" : {
1646 "GET" : {
1647 "description" : "Directory index.",
1648 "method" : "GET",
1649 "name" : "index",
1650 "parameters" : {
1651 "additionalProperties" : 0
1652 },
1653 "permissions" : {
1654 "check" : [
1655 "admin",
1656 "audit"
1657 ]
1658 },
1659 "returns" : {
1660 "items" : {
1661 "properties" : {
1662 "subdir" : {
1663 "type" : "string"
1664 }
1665 },
1666 "type" : "object"
1667 },
1668 "links" : [
1669 {
1670 "href" : "{subdir}",
1671 "rel" : "child"
1672 }
1673 ],
1674 "type" : "array"
1675 }
1676 }
1677 },
1678 "leaf" : 0,
1679 "path" : "/config/ruledb/action",
1680 "text" : "action"
1681 },
1682 {
1683 "children" : [
1684 {
1685 "children" : [
1686 {
1687 "info" : {
1688 "GET" : {
1689 "description" : "Get 'what' group properties",
1690 "method" : "GET",
1691 "name" : "get_config",
1692 "parameters" : {
1693 "additionalProperties" : 0,
1694 "properties" : {
1695 "ogroup" : {
1696 "description" : "Object Group ID.",
1697 "type" : "integer",
1698 "typetext" : "<integer>"
1699 }
1700 }
1701 },
1702 "permissions" : {
1703 "check" : [
1704 "admin",
1705 "audit"
1706 ]
1707 },
1708 "proxyto" : "master",
1709 "returns" : {
1710 "properties" : {
1711 "id" : {
1712 "type" : "integer"
1713 },
1714 "info" : {
1715 "type" : "string"
1716 },
1717 "name" : {
1718 "type" : "string"
1719 }
1720 },
1721 "type" : "object"
1722 }
1723 },
1724 "PUT" : {
1725 "description" : "Modify 'what' group properties",
1726 "method" : "PUT",
1727 "name" : "set_config",
1728 "parameters" : {
1729 "additionalProperties" : 0,
1730 "properties" : {
1731 "info" : {
1732 "description" : "Informational comment.",
1733 "maxLength" : 255,
1734 "optional" : 1,
1735 "type" : "string",
1736 "typetext" : "<string>"
1737 },
1738 "name" : {
1739 "description" : "Group name.",
1740 "maxLength" : 255,
1741 "optional" : 1,
1742 "type" : "string",
1743 "typetext" : "<string>"
1744 },
1745 "ogroup" : {
1746 "description" : "Object Group ID.",
1747 "type" : "integer",
1748 "typetext" : "<integer>"
1749 }
1750 }
1751 },
1752 "permissions" : {
1753 "check" : [
1754 "admin"
1755 ]
1756 },
1757 "protected" : 1,
1758 "proxyto" : "master",
1759 "returns" : {
1760 "type" : "null"
1761 }
1762 }
1763 },
1764 "leaf" : 1,
1765 "path" : "/config/ruledb/what/{ogroup}/config",
1766 "text" : "config"
1767 },
1768 {
1769 "children" : [
1770 {
1771 "info" : {
1772 "DELETE" : {
1773 "description" : "Remove an object from the 'what' group.",
1774 "method" : "DELETE",
1775 "name" : "delete_object",
1776 "parameters" : {
1777 "additionalProperties" : 0,
1778 "properties" : {
1779 "id" : {
1780 "description" : "Object ID.",
1781 "type" : "integer",
1782 "typetext" : "<integer>"
1783 },
1784 "ogroup" : {
1785 "description" : "Object Group ID.",
1786 "type" : "integer",
1787 "typetext" : "<integer>"
1788 }
1789 }
1790 },
1791 "permissions" : {
1792 "check" : [
1793 "admin"
1794 ]
1795 },
1796 "protected" : 1,
1797 "proxyto" : "master",
f245a28c
DM
1798 "returns" : {
1799 "type" : "null"
1800 }
1801 }
1802 },
1803 "leaf" : 1,
1804 "path" : "/config/ruledb/what/{ogroup}/objects/{id}",
1805 "text" : "{id}"
1806 }
1807 ],
1808 "info" : {
1809 "GET" : {
1810 "description" : "List 'what' group objects.",
1811 "method" : "GET",
1812 "name" : "objects",
1813 "parameters" : {
1814 "additionalProperties" : 0,
1815 "properties" : {
1816 "ogroup" : {
1817 "description" : "Object Group ID.",
1818 "type" : "integer",
1819 "typetext" : "<integer>"
1820 }
1821 }
1822 },
732d76e1
DM
1823 "permissions" : {
1824 "check" : [
1825 "admin",
1826 "audit"
1827 ]
1828 },
f245a28c
DM
1829 "proxyto" : "master",
1830 "returns" : {
1831 "items" : {
1832 "properties" : {
1833 "id" : {
1834 "type" : "integer"
1835 }
1836 },
1837 "type" : "object"
1838 },
1839 "links" : [
1840 {
1841 "href" : "{id}",
1842 "rel" : "child"
1843 }
1844 ],
1845 "type" : "array"
1846 }
1847 }
1848 },
1849 "leaf" : 0,
1850 "path" : "/config/ruledb/what/{ogroup}/objects",
1851 "text" : "objects"
f245a28c 1852 },
9fda36b0
DM
1853 {
1854 "children" : [
1855 {
1856 "info" : {
1857 "GET" : {
1858 "description" : "Read 'ContentType Filter' object settings.",
1859 "method" : "GET",
1860 "name" : "read_contenttype",
1861 "parameters" : {
1862 "additionalProperties" : 0,
1863 "properties" : {
1864 "id" : {
1865 "description" : "Object ID.",
1866 "type" : "integer",
1867 "typetext" : "<integer>"
1868 },
1869 "ogroup" : {
1870 "description" : "Object Groups ID.",
1871 "type" : "integer",
1872 "typetext" : "<integer>"
1873 }
1874 }
1875 },
1876 "proxyto" : "master",
1877 "returns" : {
1878 "properties" : {
1879 "id" : {
1880 "type" : "integer"
1881 }
1882 },
1883 "type" : "object"
1884 }
1885 },
1886 "PUT" : {
1887 "description" : "Update 'ContentType Filter' object.",
1888 "method" : "PUT",
1889 "name" : "update_contenttype",
1890 "parameters" : {
1891 "additionalProperties" : 0,
1892 "properties" : {
1893 "contenttype" : {
1894 "description" : "Content Type",
1895 "maxLength" : 1024,
1896 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
1897 "type" : "string"
1898 },
1899 "id" : {
1900 "description" : "Object ID.",
1901 "type" : "integer",
1902 "typetext" : "<integer>"
1903 },
1904 "ogroup" : {
1905 "description" : "Object Groups ID.",
1906 "type" : "integer",
1907 "typetext" : "<integer>"
1908 }
1909 }
1910 },
1911 "protected" : 1,
1912 "proxyto" : "master",
1913 "returns" : {
1914 "type" : "null"
1915 }
f245a28c
DM
1916 }
1917 },
9fda36b0
DM
1918 "leaf" : 1,
1919 "path" : "/config/ruledb/what/{ogroup}/contenttype/{id}",
1920 "text" : "{id}"
eff914dc 1921 }
9fda36b0 1922 ],
f245a28c 1923 "info" : {
9fda36b0
DM
1924 "POST" : {
1925 "description" : "Add 'ContentType Filter' object.",
1926 "method" : "POST",
1927 "name" : "contenttype",
f245a28c
DM
1928 "parameters" : {
1929 "additionalProperties" : 0,
1930 "properties" : {
9fda36b0
DM
1931 "contenttype" : {
1932 "description" : "Content Type",
1933 "maxLength" : 1024,
1934 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
f245a28c 1935 "type" : "string"
f245a28c
DM
1936 },
1937 "ogroup" : {
9fda36b0 1938 "description" : "Object Groups ID.",
f245a28c
DM
1939 "type" : "integer",
1940 "typetext" : "<integer>"
1941 }
1942 }
1943 },
d7cd791b 1944 "protected" : 1,
f245a28c
DM
1945 "proxyto" : "master",
1946 "returns" : {
9fda36b0
DM
1947 "description" : "The object ID.",
1948 "type" : "integer"
f245a28c
DM
1949 }
1950 }
1951 },
9fda36b0
DM
1952 "leaf" : 0,
1953 "path" : "/config/ruledb/what/{ogroup}/contenttype",
1954 "text" : "contenttype"
f245a28c
DM
1955 },
1956 {
1957 "children" : [
1958 {
1959 "info" : {
9fda36b0
DM
1960 "GET" : {
1961 "description" : "Read 'Match Field' object settings.",
1962 "method" : "GET",
1963 "name" : "read_matchfield",
f245a28c
DM
1964 "parameters" : {
1965 "additionalProperties" : 0,
1966 "properties" : {
1967 "id" : {
1968 "description" : "Object ID.",
1969 "type" : "integer",
1970 "typetext" : "<integer>"
1971 },
1972 "ogroup" : {
9fda36b0 1973 "description" : "Object Groups ID.",
f245a28c
DM
1974 "type" : "integer",
1975 "typetext" : "<integer>"
1976 }
1977 }
1978 },
1979 "proxyto" : "master",
1980 "returns" : {
9fda36b0
DM
1981 "properties" : {
1982 "id" : {
1983 "type" : "integer"
1984 }
1985 },
1986 "type" : "object"
f245a28c 1987 }
9fda36b0
DM
1988 },
1989 "PUT" : {
1990 "description" : "Update 'Match Field' object.",
1991 "method" : "PUT",
1992 "name" : "update_matchfield",
1993 "parameters" : {
1994 "additionalProperties" : 0,
1995 "properties" : {
1996 "field" : {
1997 "description" : "The Field",
1998 "maxLength" : 1024,
1999 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
2000 "type" : "string"
2001 },
2002 "id" : {
2003 "description" : "Object ID.",
2004 "type" : "integer",
2005 "typetext" : "<integer>"
2006 },
2007 "ogroup" : {
2008 "description" : "Object Groups ID.",
2009 "type" : "integer",
2010 "typetext" : "<integer>"
2011 },
2012 "value" : {
2013 "description" : "The Value",
2014 "maxLength" : 1024,
2015 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
2016 "type" : "string"
2017 }
2018 }
2019 },
2020 "protected" : 1,
2021 "proxyto" : "master",
2022 "returns" : {
2023 "type" : "null"
2024 }
2025 }
2026 },
2027 "leaf" : 1,
2028 "path" : "/config/ruledb/what/{ogroup}/matchfield/{id}",
2029 "text" : "{id}"
2030 }
2031 ],
f245a28c 2032 "info" : {
9fda36b0
DM
2033 "POST" : {
2034 "description" : "Add 'Match Field' object.",
2035 "method" : "POST",
2036 "name" : "matchfield",
f245a28c
DM
2037 "parameters" : {
2038 "additionalProperties" : 0,
2039 "properties" : {
9fda36b0
DM
2040 "field" : {
2041 "description" : "The Field",
2042 "maxLength" : 1024,
2043 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
2044 "type" : "string"
2045 },
f245a28c 2046 "ogroup" : {
9fda36b0 2047 "description" : "Object Groups ID.",
f245a28c
DM
2048 "type" : "integer",
2049 "typetext" : "<integer>"
9fda36b0
DM
2050 },
2051 "value" : {
2052 "description" : "The Value",
2053 "maxLength" : 1024,
2054 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
2055 "type" : "string"
f245a28c
DM
2056 }
2057 }
2058 },
9fda36b0 2059 "protected" : 1,
f245a28c
DM
2060 "proxyto" : "master",
2061 "returns" : {
9fda36b0
DM
2062 "description" : "The object ID.",
2063 "type" : "integer"
f245a28c
DM
2064 }
2065 }
2066 },
2067 "leaf" : 0,
9fda36b0
DM
2068 "path" : "/config/ruledb/what/{ogroup}/matchfield",
2069 "text" : "matchfield"
f245a28c
DM
2070 },
2071 {
2072 "children" : [
2073 {
2074 "info" : {
2075 "GET" : {
9fda36b0 2076 "description" : "Read 'Spam Filter' object settings.",
f245a28c 2077 "method" : "GET",
9fda36b0 2078 "name" : "read_spamfilter",
f245a28c
DM
2079 "parameters" : {
2080 "additionalProperties" : 0,
2081 "properties" : {
2082 "id" : {
2083 "description" : "Object ID.",
2084 "type" : "integer",
2085 "typetext" : "<integer>"
2086 },
2087 "ogroup" : {
2088 "description" : "Object Groups ID.",
2089 "type" : "integer",
2090 "typetext" : "<integer>"
2091 }
2092 }
2093 },
2094 "proxyto" : "master",
2095 "returns" : {
2096 "properties" : {
2097 "id" : {
2098 "type" : "integer"
2099 }
2100 },
2101 "type" : "object"
2102 }
2103 },
2104 "PUT" : {
9fda36b0 2105 "description" : "Update 'Spam Filter' object.",
f245a28c 2106 "method" : "PUT",
9fda36b0 2107 "name" : "update_spamfilter",
f245a28c
DM
2108 "parameters" : {
2109 "additionalProperties" : 0,
2110 "properties" : {
f245a28c
DM
2111 "id" : {
2112 "description" : "Object ID.",
2113 "type" : "integer",
2114 "typetext" : "<integer>"
2115 },
2116 "ogroup" : {
2117 "description" : "Object Groups ID.",
2118 "type" : "integer",
2119 "typetext" : "<integer>"
2120 },
9fda36b0
DM
2121 "spamlevel" : {
2122 "description" : "Spam Level",
2123 "minimum" : 0,
2124 "type" : "integer",
2125 "typetext" : "<integer> (0 - N)"
f245a28c
DM
2126 }
2127 }
2128 },
a55e94a6 2129 "protected" : 1,
f245a28c
DM
2130 "proxyto" : "master",
2131 "returns" : {
2132 "type" : "null"
2133 }
2134 }
2135 },
2136 "leaf" : 1,
9fda36b0 2137 "path" : "/config/ruledb/what/{ogroup}/spamfilter/{id}",
f245a28c
DM
2138 "text" : "{id}"
2139 }
2140 ],
2141 "info" : {
2142 "POST" : {
9fda36b0 2143 "description" : "Add 'Spam Filter' object.",
f245a28c 2144 "method" : "POST",
9fda36b0 2145 "name" : "spamfilter",
f245a28c
DM
2146 "parameters" : {
2147 "additionalProperties" : 0,
2148 "properties" : {
f245a28c
DM
2149 "ogroup" : {
2150 "description" : "Object Groups ID.",
2151 "type" : "integer",
2152 "typetext" : "<integer>"
2153 },
9fda36b0
DM
2154 "spamlevel" : {
2155 "description" : "Spam Level",
2156 "minimum" : 0,
2157 "type" : "integer",
2158 "typetext" : "<integer> (0 - N)"
f245a28c
DM
2159 }
2160 }
2161 },
a55e94a6 2162 "protected" : 1,
f245a28c
DM
2163 "proxyto" : "master",
2164 "returns" : {
2165 "description" : "The object ID.",
2166 "type" : "integer"
2167 }
2168 }
2169 },
2170 "leaf" : 0,
9fda36b0
DM
2171 "path" : "/config/ruledb/what/{ogroup}/spamfilter",
2172 "text" : "spamfilter"
410dc2c9 2173 },
9fda36b0
DM
2174 {
2175 "children" : [
2176 {
2177 "info" : {
2178 "GET" : {
2179 "description" : "Read 'Archive Filter' object settings.",
2180 "method" : "GET",
2181 "name" : "read_archivefilter",
2182 "parameters" : {
2183 "additionalProperties" : 0,
2184 "properties" : {
2185 "id" : {
2186 "description" : "Object ID.",
2187 "type" : "integer",
2188 "typetext" : "<integer>"
2189 },
2190 "ogroup" : {
2191 "description" : "Object Groups ID.",
2192 "type" : "integer",
2193 "typetext" : "<integer>"
2194 }
2195 }
2196 },
2197 "proxyto" : "master",
2198 "returns" : {
2199 "properties" : {
2200 "id" : {
2201 "type" : "integer"
2202 }
2203 },
2204 "type" : "object"
2205 }
2206 },
2207 "PUT" : {
2208 "description" : "Update 'Archive Filter' object.",
2209 "method" : "PUT",
2210 "name" : "update_archivefilter",
2211 "parameters" : {
2212 "additionalProperties" : 0,
2213 "properties" : {
2214 "contenttype" : {
2215 "description" : "Content Type",
2216 "maxLength" : 1024,
2217 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
2218 "type" : "string"
2219 },
2220 "id" : {
2221 "description" : "Object ID.",
2222 "type" : "integer",
2223 "typetext" : "<integer>"
2224 },
2225 "ogroup" : {
2226 "description" : "Object Groups ID.",
2227 "type" : "integer",
2228 "typetext" : "<integer>"
2229 }
2230 }
2231 },
2232 "protected" : 1,
2233 "proxyto" : "master",
2234 "returns" : {
2235 "type" : "null"
2236 }
2237 }
2238 },
2239 "leaf" : 1,
2240 "path" : "/config/ruledb/what/{ogroup}/archivefilter/{id}",
2241 "text" : "{id}"
f245a28c 2242 }
9fda36b0
DM
2243 ],
2244 "info" : {
2245 "POST" : {
2246 "description" : "Add 'Archive Filter' object.",
2247 "method" : "POST",
2248 "name" : "archivefilter",
2249 "parameters" : {
2250 "additionalProperties" : 0,
2251 "properties" : {
2252 "contenttype" : {
2253 "description" : "Content Type",
2254 "maxLength" : 1024,
2255 "pattern" : "[0-9a-zA-Z\\/\\\\[\\]\\+\\-\\.\\*\\_]+",
2256 "type" : "string"
2257 },
2258 "ogroup" : {
2259 "description" : "Object Groups ID.",
2260 "type" : "integer",
2261 "typetext" : "<integer>"
2262 }
f245a28c
DM
2263 }
2264 },
9fda36b0
DM
2265 "protected" : 1,
2266 "proxyto" : "master",
2267 "returns" : {
2268 "description" : "The object ID.",
2269 "type" : "integer"
f245a28c 2270 }
eff914dc
DM
2271 }
2272 },
9fda36b0 2273 "leaf" : 0,
732d76e1
DM
2274 "path" : "/config/ruledb/what/{ogroup}/archivefilter",
2275 "text" : "archivefilter"
2276 },
2277 {
2278 "children" : [
2279 {
2280 "info" : {
2281 "GET" : {
2282 "description" : "Read 'Match Filename' object settings.",
2283 "method" : "GET",
2284 "name" : "read_filenamefilter",
2285 "parameters" : {
2286 "additionalProperties" : 0,
2287 "properties" : {
2288 "id" : {
2289 "description" : "Object ID.",
2290 "type" : "integer",
2291 "typetext" : "<integer>"
2292 },
2293 "ogroup" : {
2294 "description" : "Object Groups ID.",
2295 "type" : "integer",
2296 "typetext" : "<integer>"
2297 }
2298 }
2299 },
2300 "proxyto" : "master",
2301 "returns" : {
2302 "properties" : {
2303 "id" : {
2304 "type" : "integer"
2305 }
2306 },
2307 "type" : "object"
2308 }
2309 },
2310 "PUT" : {
2311 "description" : "Update 'Match Filename' object.",
2312 "method" : "PUT",
2313 "name" : "update_filenamefilter",
2314 "parameters" : {
2315 "additionalProperties" : 0,
2316 "properties" : {
2317 "filename" : {
2318 "description" : "Filename filter",
2319 "maxLength" : 1024,
2320 "type" : "string",
2321 "typetext" : "<string>"
2322 },
2323 "id" : {
2324 "description" : "Object ID.",
2325 "type" : "integer",
2326 "typetext" : "<integer>"
2327 },
2328 "ogroup" : {
2329 "description" : "Object Groups ID.",
2330 "type" : "integer",
2331 "typetext" : "<integer>"
2332 }
2333 }
2334 },
2335 "protected" : 1,
2336 "proxyto" : "master",
2337 "returns" : {
2338 "type" : "null"
2339 }
2340 }
2341 },
2342 "leaf" : 1,
2343 "path" : "/config/ruledb/what/{ogroup}/filenamefilter/{id}",
2344 "text" : "{id}"
2345 }
2346 ],
2347 "info" : {
2348 "POST" : {
2349 "description" : "Add 'Match Filename' object.",
2350 "method" : "POST",
2351 "name" : "filenamefilter",
2352 "parameters" : {
2353 "additionalProperties" : 0,
2354 "properties" : {
2355 "filename" : {
2356 "description" : "Filename filter",
2357 "maxLength" : 1024,
2358 "type" : "string",
2359 "typetext" : "<string>"
2360 },
2361 "ogroup" : {
2362 "description" : "Object Groups ID.",
2363 "type" : "integer",
2364 "typetext" : "<integer>"
2365 }
2366 }
2367 },
2368 "protected" : 1,
2369 "proxyto" : "master",
2370 "returns" : {
2371 "description" : "The object ID.",
2372 "type" : "integer"
2373 }
2374 }
2375 },
2376 "leaf" : 0,
2377 "path" : "/config/ruledb/what/{ogroup}/filenamefilter",
2378 "text" : "filenamefilter"
410dc2c9 2379 },
9fda36b0
DM
2380 {
2381 "children" : [
2382 {
2383 "info" : {
2384 "GET" : {
732d76e1 2385 "description" : "Read 'Virus Filter' object settings.",
9fda36b0 2386 "method" : "GET",
732d76e1 2387 "name" : "read_virusfilter",
9fda36b0
DM
2388 "parameters" : {
2389 "additionalProperties" : 0,
2390 "properties" : {
2391 "id" : {
2392 "description" : "Object ID.",
2393 "type" : "integer",
2394 "typetext" : "<integer>"
2395 },
2396 "ogroup" : {
2397 "description" : "Object Groups ID.",
2398 "type" : "integer",
2399 "typetext" : "<integer>"
2400 }
2401 }
2402 },
2403 "proxyto" : "master",
2404 "returns" : {
2405 "properties" : {
2406 "id" : {
2407 "type" : "integer"
2408 }
2409 },
2410 "type" : "object"
2411 }
2412 },
2413 "PUT" : {
732d76e1 2414 "description" : "Update 'Virus Filter' object.",
9fda36b0 2415 "method" : "PUT",
732d76e1 2416 "name" : "update_virusfilter",
9fda36b0
DM
2417 "parameters" : {
2418 "additionalProperties" : 0,
2419 "properties" : {
9fda36b0
DM
2420 "id" : {
2421 "description" : "Object ID.",
2422 "type" : "integer",
2423 "typetext" : "<integer>"
2424 },
2425 "ogroup" : {
2426 "description" : "Object Groups ID.",
2427 "type" : "integer",
2428 "typetext" : "<integer>"
2429 }
2430 }
2431 },
2432 "protected" : 1,
2433 "proxyto" : "master",
2434 "returns" : {
2435 "type" : "null"
2436 }
2437 }
2438 },
2439 "leaf" : 1,
732d76e1 2440 "path" : "/config/ruledb/what/{ogroup}/virusfilter/{id}",
9fda36b0
DM
2441 "text" : "{id}"
2442 }
2443 ],
2444 "info" : {
2445 "POST" : {
732d76e1 2446 "description" : "Add 'Virus Filter' object.",
9fda36b0 2447 "method" : "POST",
732d76e1 2448 "name" : "virusfilter",
9fda36b0
DM
2449 "parameters" : {
2450 "additionalProperties" : 0,
2451 "properties" : {
9fda36b0
DM
2452 "ogroup" : {
2453 "description" : "Object Groups ID.",
2454 "type" : "integer",
2455 "typetext" : "<integer>"
2456 }
2457 }
2458 },
2459 "protected" : 1,
2460 "proxyto" : "master",
2461 "returns" : {
2462 "description" : "The object ID.",
2463 "type" : "integer"
2464 }
2465 }
2466 },
2467 "leaf" : 0,
732d76e1
DM
2468 "path" : "/config/ruledb/what/{ogroup}/virusfilter",
2469 "text" : "virusfilter"
9fda36b0
DM
2470 }
2471 ],
2472 "info" : {
2473 "DELETE" : {
2474 "description" : "Delete a 'what' group.",
2475 "method" : "DELETE",
2476 "name" : "delete_{$oclass}_group",
2477 "parameters" : {
2478 "additionalProperties" : 0,
2479 "properties" : {
2480 "ogroup" : {
2481 "description" : "Object Group ID.",
2482 "type" : "integer",
2483 "typetext" : "<integer>"
2484 }
2485 }
2486 },
732d76e1
DM
2487 "permissions" : {
2488 "check" : [
2489 "admin"
2490 ]
2491 },
9fda36b0
DM
2492 "protected" : 1,
2493 "proxyto" : "master",
2494 "returns" : {
2495 "type" : "null"
2496 }
2497 },
2498 "GET" : {
2499 "description" : "Directory index.",
2500 "method" : "GET",
2501 "name" : "index",
2502 "parameters" : {
2503 "additionalProperties" : 0,
2504 "properties" : {
2505 "ogroup" : {
2506 "description" : "Object Group ID.",
2507 "type" : "integer",
2508 "typetext" : "<integer>"
2509 }
2510 }
2511 },
732d76e1
DM
2512 "permissions" : {
2513 "check" : [
2514 "admin",
2515 "audit"
2516 ]
2517 },
9fda36b0
DM
2518 "returns" : {
2519 "items" : {
2520 "properties" : {
2521 "subdir" : {
2522 "type" : "string"
2523 }
2524 },
2525 "type" : "object"
2526 },
2527 "links" : [
2528 {
2529 "href" : "{subdir}",
2530 "rel" : "child"
2531 }
2532 ],
2533 "type" : "array"
2534 }
2535 }
2536 },
2537 "leaf" : 0,
2538 "path" : "/config/ruledb/what/{ogroup}",
2539 "text" : "{ogroup}"
2540 }
2541 ],
2542 "info" : {
2543 "GET" : {
2544 "description" : "Get list of 'what' groups.",
2545 "method" : "GET",
2546 "name" : "list_what_groups",
2547 "parameters" : {
2548 "additionalProperties" : 0
2549 },
732d76e1
DM
2550 "permissions" : {
2551 "check" : [
2552 "admin",
2553 "audit"
2554 ]
2555 },
9fda36b0
DM
2556 "proxyto" : "master",
2557 "returns" : {
2558 "items" : {
2559 "properties" : {
2560 "id" : {
2561 "type" : "integer"
2562 }
2563 },
2564 "type" : "object"
2565 },
2566 "type" : "array"
2567 }
2568 },
2569 "POST" : {
2570 "description" : "Create a new 'what' group.",
eff914dc 2571 "method" : "POST",
9fda36b0 2572 "name" : "create_what_group",
eff914dc
DM
2573 "parameters" : {
2574 "additionalProperties" : 0,
2575 "properties" : {
2576 "info" : {
2577 "description" : "Informational comment.",
2578 "maxLength" : 255,
2579 "optional" : 1,
2580 "type" : "string",
2581 "typetext" : "<string>"
2582 },
2583 "name" : {
2584 "description" : "Group name.",
2585 "maxLength" : 255,
2586 "type" : "string",
2587 "typetext" : "<string>"
2588 }
2589 }
2590 },
732d76e1
DM
2591 "permissions" : {
2592 "check" : [
2593 "admin"
2594 ]
2595 },
eff914dc
DM
2596 "protected" : 1,
2597 "proxyto" : "master",
2598 "returns" : {
2599 "type" : "integer"
2600 }
410dc2c9
DM
2601 }
2602 },
f245a28c 2603 "leaf" : 0,
9fda36b0
DM
2604 "path" : "/config/ruledb/what",
2605 "text" : "what"
410dc2c9
DM
2606 },
2607 {
f245a28c
DM
2608 "children" : [
2609 {
2610 "children" : [
2611 {
eff914dc 2612 "info" : {
f245a28c 2613 "GET" : {
9fda36b0 2614 "description" : "Get 'when' group properties",
f245a28c
DM
2615 "method" : "GET",
2616 "name" : "get_config",
2617 "parameters" : {
2618 "additionalProperties" : 0,
2619 "properties" : {
2620 "ogroup" : {
2621 "description" : "Object Group ID.",
2622 "type" : "integer",
2623 "typetext" : "<integer>"
2624 }
2625 }
2626 },
732d76e1
DM
2627 "permissions" : {
2628 "check" : [
2629 "admin",
2630 "audit"
2631 ]
2632 },
f245a28c
DM
2633 "proxyto" : "master",
2634 "returns" : {
2635 "properties" : {
2636 "id" : {
2637 "type" : "integer"
2638 },
2639 "info" : {
2640 "type" : "string"
2641 },
2642 "name" : {
2643 "type" : "string"
2644 }
2645 },
2646 "type" : "object"
2647 }
2648 },
2649 "PUT" : {
9fda36b0 2650 "description" : "Modify 'when' group properties",
f245a28c
DM
2651 "method" : "PUT",
2652 "name" : "set_config",
2653 "parameters" : {
2654 "additionalProperties" : 0,
2655 "properties" : {
2656 "info" : {
2657 "description" : "Informational comment.",
2658 "maxLength" : 255,
2659 "optional" : 1,
2660 "type" : "string",
2661 "typetext" : "<string>"
2662 },
2663 "name" : {
2664 "description" : "Group name.",
2665 "maxLength" : 255,
2666 "optional" : 1,
2667 "type" : "string",
2668 "typetext" : "<string>"
2669 },
2670 "ogroup" : {
2671 "description" : "Object Group ID.",
2672 "type" : "integer",
2673 "typetext" : "<integer>"
2674 }
2675 }
2676 },
732d76e1
DM
2677 "permissions" : {
2678 "check" : [
2679 "admin"
2680 ]
2681 },
d7cd791b 2682 "protected" : 1,
f245a28c
DM
2683 "proxyto" : "master",
2684 "returns" : {
2685 "type" : "null"
2686 }
2687 }
eff914dc 2688 },
f245a28c 2689 "leaf" : 1,
9fda36b0 2690 "path" : "/config/ruledb/when/{ogroup}/config",
f245a28c
DM
2691 "text" : "config"
2692 },
eff914dc
DM
2693 {
2694 "children" : [
2695 {
2696 "info" : {
2697 "DELETE" : {
9fda36b0 2698 "description" : "Remove an object from the 'when' group.",
eff914dc
DM
2699 "method" : "DELETE",
2700 "name" : "delete_object",
2701 "parameters" : {
2702 "additionalProperties" : 0,
2703 "properties" : {
2704 "id" : {
2705 "description" : "Object ID.",
2706 "type" : "integer",
2707 "typetext" : "<integer>"
2708 },
2709 "ogroup" : {
2710 "description" : "Object Group ID.",
2711 "type" : "integer",
2712 "typetext" : "<integer>"
2713 }
2714 }
2715 },
732d76e1
DM
2716 "permissions" : {
2717 "check" : [
2718 "admin"
2719 ]
2720 },
a55e94a6 2721 "protected" : 1,
eff914dc
DM
2722 "proxyto" : "master",
2723 "returns" : {
2724 "type" : "null"
2725 }
2726 }
2727 },
2728 "leaf" : 1,
9fda36b0 2729 "path" : "/config/ruledb/when/{ogroup}/objects/{id}",
eff914dc
DM
2730 "text" : "{id}"
2731 }
2732 ],
2733 "info" : {
2734 "GET" : {
9fda36b0 2735 "description" : "List 'when' group objects.",
eff914dc
DM
2736 "method" : "GET",
2737 "name" : "objects",
2738 "parameters" : {
2739 "additionalProperties" : 0,
2740 "properties" : {
2741 "ogroup" : {
2742 "description" : "Object Group ID.",
2743 "type" : "integer",
2744 "typetext" : "<integer>"
2745 }
2746 }
2747 },
732d76e1
DM
2748 "permissions" : {
2749 "check" : [
2750 "admin",
2751 "audit"
2752 ]
2753 },
eff914dc
DM
2754 "proxyto" : "master",
2755 "returns" : {
2756 "items" : {
2757 "properties" : {
2758 "id" : {
2759 "type" : "integer"
2760 }
2761 },
2762 "type" : "object"
2763 },
2764 "links" : [
2765 {
2766 "href" : "{id}",
2767 "rel" : "child"
2768 }
2769 ],
2770 "type" : "array"
2771 }
2772 }
2773 },
2774 "leaf" : 0,
9fda36b0 2775 "path" : "/config/ruledb/when/{ogroup}/objects",
eff914dc
DM
2776 "text" : "objects"
2777 },
2778 {
2779 "children" : [
2780 {
2781 "info" : {
2782 "GET" : {
9fda36b0 2783 "description" : "Read 'TimeFrame' object settings.",
eff914dc 2784 "method" : "GET",
9fda36b0 2785 "name" : "read_timeframe",
eff914dc
DM
2786 "parameters" : {
2787 "additionalProperties" : 0,
2788 "properties" : {
2789 "id" : {
2790 "description" : "Object ID.",
2791 "type" : "integer",
2792 "typetext" : "<integer>"
2793 },
2794 "ogroup" : {
2795 "description" : "Object Groups ID.",
2796 "type" : "integer",
2797 "typetext" : "<integer>"
2798 }
2799 }
2800 },
2801 "proxyto" : "master",
2802 "returns" : {
2803 "properties" : {
2804 "id" : {
2805 "type" : "integer"
2806 }
2807 },
2808 "type" : "object"
2809 }
2810 },
2811 "PUT" : {
9fda36b0 2812 "description" : "Update 'TimeFrame' object.",
eff914dc 2813 "method" : "PUT",
9fda36b0 2814 "name" : "update_timeframe",
eff914dc
DM
2815 "parameters" : {
2816 "additionalProperties" : 0,
2817 "properties" : {
9fda36b0
DM
2818 "end" : {
2819 "description" : "End time in `H:i` format (00:00).",
2820 "pattern" : "\\d?\\d:\\d?\\d",
2821 "type" : "string"
eff914dc
DM
2822 },
2823 "id" : {
2824 "description" : "Object ID.",
2825 "type" : "integer",
2826 "typetext" : "<integer>"
2827 },
2828 "ogroup" : {
2829 "description" : "Object Groups ID.",
2830 "type" : "integer",
2831 "typetext" : "<integer>"
9fda36b0
DM
2832 },
2833 "start" : {
2834 "description" : "Start time in `H:i` format (00:00).",
2835 "pattern" : "\\d?\\d:\\d?\\d",
2836 "type" : "string"
eff914dc
DM
2837 }
2838 }
2839 },
a55e94a6 2840 "protected" : 1,
eff914dc
DM
2841 "proxyto" : "master",
2842 "returns" : {
2843 "type" : "null"
2844 }
2845 }
2846 },
2847 "leaf" : 1,
9fda36b0 2848 "path" : "/config/ruledb/when/{ogroup}/timeframe/{id}",
eff914dc
DM
2849 "text" : "{id}"
2850 }
2851 ],
2852 "info" : {
2853 "POST" : {
9fda36b0 2854 "description" : "Add 'TimeFrame' object.",
eff914dc 2855 "method" : "POST",
9fda36b0 2856 "name" : "timeframe",
eff914dc
DM
2857 "parameters" : {
2858 "additionalProperties" : 0,
2859 "properties" : {
9fda36b0
DM
2860 "end" : {
2861 "description" : "End time in `H:i` format (00:00).",
2862 "pattern" : "\\d?\\d:\\d?\\d",
2863 "type" : "string"
eff914dc
DM
2864 },
2865 "ogroup" : {
2866 "description" : "Object Groups ID.",
2867 "type" : "integer",
2868 "typetext" : "<integer>"
9fda36b0
DM
2869 },
2870 "start" : {
2871 "description" : "Start time in `H:i` format (00:00).",
2872 "pattern" : "\\d?\\d:\\d?\\d",
2873 "type" : "string"
eff914dc
DM
2874 }
2875 }
2876 },
a55e94a6 2877 "protected" : 1,
eff914dc
DM
2878 "proxyto" : "master",
2879 "returns" : {
2880 "description" : "The object ID.",
2881 "type" : "integer"
2882 }
2883 }
2884 },
2885 "leaf" : 0,
9fda36b0
DM
2886 "path" : "/config/ruledb/when/{ogroup}/timeframe",
2887 "text" : "timeframe"
2888 }
2889 ],
2890 "info" : {
2891 "DELETE" : {
2892 "description" : "Delete a 'when' group.",
2893 "method" : "DELETE",
2894 "name" : "delete_{$oclass}_group",
2895 "parameters" : {
2896 "additionalProperties" : 0,
2897 "properties" : {
2898 "ogroup" : {
2899 "description" : "Object Group ID.",
2900 "type" : "integer",
2901 "typetext" : "<integer>"
2902 }
2903 }
2904 },
732d76e1
DM
2905 "permissions" : {
2906 "check" : [
2907 "admin"
2908 ]
2909 },
9fda36b0
DM
2910 "protected" : 1,
2911 "proxyto" : "master",
2912 "returns" : {
2913 "type" : "null"
2914 }
2915 },
2916 "GET" : {
2917 "description" : "Directory index.",
2918 "method" : "GET",
2919 "name" : "index",
2920 "parameters" : {
2921 "additionalProperties" : 0,
2922 "properties" : {
2923 "ogroup" : {
2924 "description" : "Object Group ID.",
2925 "type" : "integer",
2926 "typetext" : "<integer>"
2927 }
2928 }
2929 },
732d76e1
DM
2930 "permissions" : {
2931 "check" : [
2932 "admin",
2933 "audit"
2934 ]
2935 },
9fda36b0
DM
2936 "returns" : {
2937 "items" : {
2938 "properties" : {
2939 "subdir" : {
2940 "type" : "string"
eff914dc
DM
2941 }
2942 },
9fda36b0
DM
2943 "type" : "object"
2944 },
2945 "links" : [
2946 {
2947 "href" : "{subdir}",
2948 "rel" : "child"
2949 }
2950 ],
2951 "type" : "array"
2952 }
2953 }
2954 },
2955 "leaf" : 0,
2956 "path" : "/config/ruledb/when/{ogroup}",
2957 "text" : "{ogroup}"
2958 }
2959 ],
2960 "info" : {
2961 "GET" : {
2962 "description" : "Get list of 'when' groups.",
2963 "method" : "GET",
2964 "name" : "list_when_groups",
2965 "parameters" : {
2966 "additionalProperties" : 0
2967 },
732d76e1
DM
2968 "permissions" : {
2969 "check" : [
2970 "admin",
2971 "audit"
2972 ]
2973 },
9fda36b0
DM
2974 "proxyto" : "master",
2975 "returns" : {
2976 "items" : {
2977 "properties" : {
2978 "id" : {
2979 "type" : "integer"
eff914dc 2980 }
9fda36b0
DM
2981 },
2982 "type" : "object"
2983 },
2984 "type" : "array"
2985 }
2986 },
2987 "POST" : {
2988 "description" : "Create a new 'when' group.",
2989 "method" : "POST",
2990 "name" : "create_when_group",
2991 "parameters" : {
2992 "additionalProperties" : 0,
2993 "properties" : {
eff914dc 2994 "info" : {
9fda36b0
DM
2995 "description" : "Informational comment.",
2996 "maxLength" : 255,
2997 "optional" : 1,
2998 "type" : "string",
2999 "typetext" : "<string>"
3000 },
3001 "name" : {
3002 "description" : "Group name.",
3003 "maxLength" : 255,
3004 "type" : "string",
3005 "typetext" : "<string>"
3006 }
3007 }
3008 },
732d76e1
DM
3009 "permissions" : {
3010 "check" : [
3011 "admin"
3012 ]
3013 },
9fda36b0
DM
3014 "protected" : 1,
3015 "proxyto" : "master",
3016 "returns" : {
3017 "type" : "integer"
3018 }
3019 }
3020 },
3021 "leaf" : 0,
3022 "path" : "/config/ruledb/when",
3023 "text" : "when"
3024 },
3025 {
3026 "children" : [
3027 {
3028 "children" : [
3029 {
3030 "info" : {
3031 "GET" : {
3032 "description" : "Get 'who' group properties",
3033 "method" : "GET",
3034 "name" : "get_config",
eff914dc
DM
3035 "parameters" : {
3036 "additionalProperties" : 0,
3037 "properties" : {
9fda36b0
DM
3038 "ogroup" : {
3039 "description" : "Object Group ID.",
3040 "type" : "integer",
3041 "typetext" : "<integer>"
3042 }
3043 }
3044 },
732d76e1
DM
3045 "permissions" : {
3046 "check" : [
3047 "admin",
3048 "audit"
3049 ]
3050 },
9fda36b0
DM
3051 "proxyto" : "master",
3052 "returns" : {
3053 "properties" : {
3054 "id" : {
3055 "type" : "integer"
3056 },
3057 "info" : {
3058 "type" : "string"
3059 },
3060 "name" : {
3061 "type" : "string"
3062 }
3063 },
3064 "type" : "object"
3065 }
3066 },
3067 "PUT" : {
3068 "description" : "Modify 'who' group properties",
3069 "method" : "PUT",
3070 "name" : "set_config",
3071 "parameters" : {
3072 "additionalProperties" : 0,
3073 "properties" : {
3074 "info" : {
3075 "description" : "Informational comment.",
3076 "maxLength" : 255,
3077 "optional" : 1,
3078 "type" : "string",
3079 "typetext" : "<string>"
3080 },
3081 "name" : {
3082 "description" : "Group name.",
3083 "maxLength" : 255,
3084 "optional" : 1,
eff914dc
DM
3085 "type" : "string",
3086 "typetext" : "<string>"
3087 },
3088 "ogroup" : {
9fda36b0 3089 "description" : "Object Group ID.",
eff914dc
DM
3090 "type" : "integer",
3091 "typetext" : "<integer>"
3092 }
3093 }
3094 },
732d76e1
DM
3095 "permissions" : {
3096 "check" : [
3097 "admin"
3098 ]
3099 },
a55e94a6 3100 "protected" : 1,
eff914dc
DM
3101 "proxyto" : "master",
3102 "returns" : {
9fda36b0 3103 "type" : "null"
eff914dc
DM
3104 }
3105 }
3106 },
9fda36b0
DM
3107 "leaf" : 1,
3108 "path" : "/config/ruledb/who/{ogroup}/config",
3109 "text" : "config"
eff914dc
DM
3110 },
3111 {
3112 "children" : [
3113 {
3114 "info" : {
9fda36b0
DM
3115 "DELETE" : {
3116 "description" : "Remove an object from the 'who' group.",
3117 "method" : "DELETE",
3118 "name" : "delete_object",
eff914dc
DM
3119 "parameters" : {
3120 "additionalProperties" : 0,
3121 "properties" : {
3122 "id" : {
3123 "description" : "Object ID.",
3124 "type" : "integer",
3125 "typetext" : "<integer>"
3126 },
3127 "ogroup" : {
9fda36b0 3128 "description" : "Object Group ID.",
eff914dc
DM
3129 "type" : "integer",
3130 "typetext" : "<integer>"
3131 }
3132 }
3133 },
732d76e1
DM
3134 "permissions" : {
3135 "check" : [
3136 "admin"
3137 ]
3138 },
9fda36b0 3139 "protected" : 1,
eff914dc
DM
3140 "proxyto" : "master",
3141 "returns" : {
9fda36b0 3142 "type" : "null"
eff914dc
DM
3143 }
3144 }
3145 },
3146 "leaf" : 1,
9fda36b0 3147 "path" : "/config/ruledb/who/{ogroup}/objects/{id}",
eff914dc
DM
3148 "text" : "{id}"
3149 }
3150 ],
3151 "info" : {
9fda36b0
DM
3152 "GET" : {
3153 "description" : "List 'who' group objects.",
3154 "method" : "GET",
3155 "name" : "objects",
eff914dc
DM
3156 "parameters" : {
3157 "additionalProperties" : 0,
3158 "properties" : {
3159 "ogroup" : {
9fda36b0 3160 "description" : "Object Group ID.",
eff914dc
DM
3161 "type" : "integer",
3162 "typetext" : "<integer>"
eff914dc
DM
3163 }
3164 }
3165 },
732d76e1
DM
3166 "permissions" : {
3167 "check" : [
3168 "admin",
3169 "audit"
3170 ]
3171 },
eff914dc
DM
3172 "proxyto" : "master",
3173 "returns" : {
9fda36b0
DM
3174 "items" : {
3175 "properties" : {
3176 "id" : {
3177 "type" : "integer"
3178 }
3179 },
3180 "type" : "object"
3181 },
3182 "links" : [
3183 {
3184 "href" : "{id}",
3185 "rel" : "child"
3186 }
3187 ],
3188 "type" : "array"
eff914dc
DM
3189 }
3190 }
3191 },
3192 "leaf" : 0,
9fda36b0
DM
3193 "path" : "/config/ruledb/who/{ogroup}/objects",
3194 "text" : "objects"
eff914dc
DM
3195 },
3196 {
3197 "children" : [
3198 {
3199 "info" : {
3200 "GET" : {
9fda36b0 3201 "description" : "Read 'Mail address' object settings.",
eff914dc 3202 "method" : "GET",
9fda36b0 3203 "name" : "read_email",
eff914dc
DM
3204 "parameters" : {
3205 "additionalProperties" : 0,
3206 "properties" : {
3207 "id" : {
3208 "description" : "Object ID.",
3209 "type" : "integer",
3210 "typetext" : "<integer>"
3211 },
3212 "ogroup" : {
3213 "description" : "Object Groups ID.",
3214 "type" : "integer",
3215 "typetext" : "<integer>"
3216 }
3217 }
3218 },
3219 "proxyto" : "master",
3220 "returns" : {
3221 "properties" : {
3222 "id" : {
3223 "type" : "integer"
3224 }
3225 },
3226 "type" : "object"
3227 }
3228 },
3229 "PUT" : {
9fda36b0 3230 "description" : "Update 'Mail address' object.",
eff914dc 3231 "method" : "PUT",
9fda36b0 3232 "name" : "update_email",
eff914dc
DM
3233 "parameters" : {
3234 "additionalProperties" : 0,
3235 "properties" : {
9fda36b0
DM
3236 "email" : {
3237 "description" : "Email address.",
3238 "format" : "email",
3239 "type" : "string",
3240 "typetext" : "<string>"
3241 },
eff914dc
DM
3242 "id" : {
3243 "description" : "Object ID.",
3244 "type" : "integer",
3245 "typetext" : "<integer>"
3246 },
eff914dc
DM
3247 "ogroup" : {
3248 "description" : "Object Groups ID.",
3249 "type" : "integer",
3250 "typetext" : "<integer>"
3251 }
3252 }
3253 },
a55e94a6 3254 "protected" : 1,
eff914dc
DM
3255 "proxyto" : "master",
3256 "returns" : {
3257 "type" : "null"
3258 }
3259 }
3260 },
3261 "leaf" : 1,
9fda36b0 3262 "path" : "/config/ruledb/who/{ogroup}/email/{id}",
eff914dc
DM
3263 "text" : "{id}"
3264 }
3265 ],
3266 "info" : {
3267 "POST" : {
9fda36b0 3268 "description" : "Add 'Mail address' object.",
eff914dc 3269 "method" : "POST",
9fda36b0 3270 "name" : "email",
eff914dc
DM
3271 "parameters" : {
3272 "additionalProperties" : 0,
3273 "properties" : {
9fda36b0
DM
3274 "email" : {
3275 "description" : "Email address.",
3276 "format" : "email",
eff914dc
DM
3277 "type" : "string",
3278 "typetext" : "<string>"
3279 },
3280 "ogroup" : {
3281 "description" : "Object Groups ID.",
3282 "type" : "integer",
3283 "typetext" : "<integer>"
3284 }
3285 }
3286 },
a55e94a6 3287 "protected" : 1,
eff914dc
DM
3288 "proxyto" : "master",
3289 "returns" : {
3290 "description" : "The object ID.",
3291 "type" : "integer"
3292 }
3293 }
3294 },
3295 "leaf" : 0,
9fda36b0
DM
3296 "path" : "/config/ruledb/who/{ogroup}/email",
3297 "text" : "email"
eff914dc
DM
3298 },
3299 {
3300 "children" : [
3301 {
3302 "info" : {
3303 "GET" : {
9fda36b0 3304 "description" : "Read 'Domain' object settings.",
eff914dc 3305 "method" : "GET",
9fda36b0 3306 "name" : "read_domain",
eff914dc
DM
3307 "parameters" : {
3308 "additionalProperties" : 0,
3309 "properties" : {
3310 "id" : {
3311 "description" : "Object ID.",
3312 "type" : "integer",
3313 "typetext" : "<integer>"
3314 },
3315 "ogroup" : {
3316 "description" : "Object Groups ID.",
3317 "type" : "integer",
3318 "typetext" : "<integer>"
3319 }
3320 }
3321 },
3322 "proxyto" : "master",
3323 "returns" : {
3324 "properties" : {
3325 "id" : {
3326 "type" : "integer"
3327 }
3328 },
3329 "type" : "object"
3330 }
3331 },
3332 "PUT" : {
9fda36b0 3333 "description" : "Update 'Domain' object.",
eff914dc 3334 "method" : "PUT",
9fda36b0 3335 "name" : "update_domain",
eff914dc
DM
3336 "parameters" : {
3337 "additionalProperties" : 0,
3338 "properties" : {
9fda36b0
DM
3339 "domain" : {
3340 "description" : "DNS domain name (Sender).",
3341 "format" : "dns-name",
eff914dc
DM
3342 "type" : "string",
3343 "typetext" : "<string>"
3344 },
3345 "id" : {
3346 "description" : "Object ID.",
3347 "type" : "integer",
3348 "typetext" : "<integer>"
3349 },
3350 "ogroup" : {
3351 "description" : "Object Groups ID.",
3352 "type" : "integer",
3353 "typetext" : "<integer>"
3354 }
3355 }
3356 },
a55e94a6 3357 "protected" : 1,
eff914dc
DM
3358 "proxyto" : "master",
3359 "returns" : {
3360 "type" : "null"
3361 }
3362 }
3363 },
3364 "leaf" : 1,
9fda36b0 3365 "path" : "/config/ruledb/who/{ogroup}/domain/{id}",
eff914dc
DM
3366 "text" : "{id}"
3367 }
3368 ],
3369 "info" : {
3370 "POST" : {
9fda36b0 3371 "description" : "Add 'Domain' object.",
eff914dc 3372 "method" : "POST",
9fda36b0 3373 "name" : "domain",
eff914dc
DM
3374 "parameters" : {
3375 "additionalProperties" : 0,
3376 "properties" : {
9fda36b0
DM
3377 "domain" : {
3378 "description" : "DNS domain name (Sender).",
3379 "format" : "dns-name",
eff914dc
DM
3380 "type" : "string",
3381 "typetext" : "<string>"
3382 },
3383 "ogroup" : {
3384 "description" : "Object Groups ID.",
3385 "type" : "integer",
3386 "typetext" : "<integer>"
3387 }
3388 }
3389 },
a55e94a6 3390 "protected" : 1,
eff914dc
DM
3391 "proxyto" : "master",
3392 "returns" : {
3393 "description" : "The object ID.",
3394 "type" : "integer"
3395 }
3396 }
3397 },
3398 "leaf" : 0,
9fda36b0
DM
3399 "path" : "/config/ruledb/who/{ogroup}/domain",
3400 "text" : "domain"
a55e94a6
DM
3401 },
3402 {
3403 "children" : [
3404 {
3405 "info" : {
3406 "GET" : {
9fda36b0 3407 "description" : "Read 'Regular Expression' object settings.",
a55e94a6 3408 "method" : "GET",
9fda36b0 3409 "name" : "read_regex",
a55e94a6
DM
3410 "parameters" : {
3411 "additionalProperties" : 0,
3412 "properties" : {
3413 "id" : {
3414 "description" : "Object ID.",
3415 "type" : "integer",
3416 "typetext" : "<integer>"
3417 },
3418 "ogroup" : {
3419 "description" : "Object Groups ID.",
3420 "type" : "integer",
3421 "typetext" : "<integer>"
3422 }
3423 }
3424 },
3425 "proxyto" : "master",
3426 "returns" : {
3427 "properties" : {
3428 "id" : {
3429 "type" : "integer"
3430 }
3431 },
3432 "type" : "object"
3433 }
3434 },
3435 "PUT" : {
9fda36b0 3436 "description" : "Update 'Regular Expression' object.",
a55e94a6 3437 "method" : "PUT",
9fda36b0 3438 "name" : "update_regex",
a55e94a6
DM
3439 "parameters" : {
3440 "additionalProperties" : 0,
3441 "properties" : {
a55e94a6
DM
3442 "id" : {
3443 "description" : "Object ID.",
3444 "type" : "integer",
3445 "typetext" : "<integer>"
3446 },
a55e94a6
DM
3447 "ogroup" : {
3448 "description" : "Object Groups ID.",
3449 "type" : "integer",
3450 "typetext" : "<integer>"
3451 },
9fda36b0
DM
3452 "regex" : {
3453 "description" : "Email address regular expression.",
3454 "maxLength" : 1024,
a55e94a6
DM
3455 "type" : "string",
3456 "typetext" : "<string>"
3457 }
3458 }
3459 },
3460 "protected" : 1,
3461 "proxyto" : "master",
3462 "returns" : {
3463 "type" : "null"
3464 }
3465 }
3466 },
3467 "leaf" : 1,
9fda36b0 3468 "path" : "/config/ruledb/who/{ogroup}/regex/{id}",
a55e94a6
DM
3469 "text" : "{id}"
3470 }
3471 ],
3472 "info" : {
3473 "POST" : {
9fda36b0 3474 "description" : "Add 'Regular Expression' object.",
a55e94a6 3475 "method" : "POST",
9fda36b0 3476 "name" : "regex",
a55e94a6
DM
3477 "parameters" : {
3478 "additionalProperties" : 0,
3479 "properties" : {
a55e94a6
DM
3480 "ogroup" : {
3481 "description" : "Object Groups ID.",
3482 "type" : "integer",
3483 "typetext" : "<integer>"
3484 },
9fda36b0
DM
3485 "regex" : {
3486 "description" : "Email address regular expression.",
3487 "maxLength" : 1024,
a55e94a6
DM
3488 "type" : "string",
3489 "typetext" : "<string>"
3490 }
3491 }
3492 },
3493 "protected" : 1,
3494 "proxyto" : "master",
3495 "returns" : {
3496 "description" : "The object ID.",
3497 "type" : "integer"
3498 }
3499 }
3500 },
3501 "leaf" : 0,
9fda36b0
DM
3502 "path" : "/config/ruledb/who/{ogroup}/regex",
3503 "text" : "regex"
a55e94a6
DM
3504 },
3505 {
3506 "children" : [
3507 {
3508 "info" : {
3509 "GET" : {
9fda36b0 3510 "description" : "Read 'IP Address' object settings.",
a55e94a6 3511 "method" : "GET",
9fda36b0 3512 "name" : "read_ip",
a55e94a6
DM
3513 "parameters" : {
3514 "additionalProperties" : 0,
3515 "properties" : {
3516 "id" : {
3517 "description" : "Object ID.",
3518 "type" : "integer",
3519 "typetext" : "<integer>"
3520 },
3521 "ogroup" : {
3522 "description" : "Object Groups ID.",
3523 "type" : "integer",
3524 "typetext" : "<integer>"
3525 }
3526 }
3527 },
3528 "proxyto" : "master",
3529 "returns" : {
3530 "properties" : {
3531 "id" : {
3532 "type" : "integer"
3533 }
3534 },
3535 "type" : "object"
3536 }
3537 },
3538 "PUT" : {
9fda36b0 3539 "description" : "Update 'IP Address' object.",
a55e94a6 3540 "method" : "PUT",
9fda36b0 3541 "name" : "update_ip",
a55e94a6
DM
3542 "parameters" : {
3543 "additionalProperties" : 0,
3544 "properties" : {
a55e94a6
DM
3545 "id" : {
3546 "description" : "Object ID.",
3547 "type" : "integer",
3548 "typetext" : "<integer>"
3549 },
9fda36b0
DM
3550 "ip" : {
3551 "description" : "IP address",
3552 "format" : "ip",
3553 "type" : "string",
3554 "typetext" : "<string>"
3555 },
a55e94a6
DM
3556 "ogroup" : {
3557 "description" : "Object Groups ID.",
3558 "type" : "integer",
3559 "typetext" : "<integer>"
a55e94a6
DM
3560 }
3561 }
3562 },
3563 "protected" : 1,
3564 "proxyto" : "master",
3565 "returns" : {
3566 "type" : "null"
3567 }
3568 }
3569 },
3570 "leaf" : 1,
9fda36b0 3571 "path" : "/config/ruledb/who/{ogroup}/ip/{id}",
a55e94a6
DM
3572 "text" : "{id}"
3573 }
3574 ],
3575 "info" : {
3576 "POST" : {
9fda36b0 3577 "description" : "Add 'IP Address' object.",
a55e94a6 3578 "method" : "POST",
9fda36b0 3579 "name" : "ip",
a55e94a6
DM
3580 "parameters" : {
3581 "additionalProperties" : 0,
3582 "properties" : {
9fda36b0
DM
3583 "ip" : {
3584 "description" : "IP address",
3585 "format" : "ip",
a55e94a6
DM
3586 "type" : "string",
3587 "typetext" : "<string>"
3588 },
3589 "ogroup" : {
3590 "description" : "Object Groups ID.",
3591 "type" : "integer",
3592 "typetext" : "<integer>"
a55e94a6
DM
3593 }
3594 }
3595 },
3596 "protected" : 1,
3597 "proxyto" : "master",
3598 "returns" : {
3599 "description" : "The object ID.",
3600 "type" : "integer"
3601 }
3602 }
3603 },
3604 "leaf" : 0,
9fda36b0
DM
3605 "path" : "/config/ruledb/who/{ogroup}/ip",
3606 "text" : "ip"
eff914dc 3607 },
9fda36b0
DM
3608 {
3609 "children" : [
3610 {
3611 "info" : {
3612 "GET" : {
3613 "description" : "Read 'IP Network' object settings.",
3614 "method" : "GET",
3615 "name" : "read_network",
3616 "parameters" : {
3617 "additionalProperties" : 0,
3618 "properties" : {
3619 "id" : {
3620 "description" : "Object ID.",
3621 "type" : "integer",
3622 "typetext" : "<integer>"
3623 },
3624 "ogroup" : {
3625 "description" : "Object Groups ID.",
3626 "type" : "integer",
3627 "typetext" : "<integer>"
3628 }
3629 }
3630 },
3631 "proxyto" : "master",
3632 "returns" : {
3633 "properties" : {
3634 "id" : {
3635 "type" : "integer"
3636 }
3637 },
3638 "type" : "object"
3639 }
3640 },
3641 "PUT" : {
3642 "description" : "Update 'IP Network' object.",
3643 "method" : "PUT",
3644 "name" : "update_network",
3645 "parameters" : {
3646 "additionalProperties" : 0,
3647 "properties" : {
3648 "cidr" : {
3649 "description" : "Network address in CIDR notation.",
3650 "format" : "CIDR",
3651 "type" : "string",
3652 "typetext" : "<string>"
3653 },
3654 "id" : {
3655 "description" : "Object ID.",
3656 "type" : "integer",
3657 "typetext" : "<integer>"
3658 },
3659 "ogroup" : {
3660 "description" : "Object Groups ID.",
3661 "type" : "integer",
3662 "typetext" : "<integer>"
3663 }
3664 }
3665 },
3666 "protected" : 1,
3667 "proxyto" : "master",
3668 "returns" : {
3669 "type" : "null"
3670 }
3671 }
3672 },
3673 "leaf" : 1,
3674 "path" : "/config/ruledb/who/{ogroup}/network/{id}",
3675 "text" : "{id}"
eff914dc 3676 }
9fda36b0
DM
3677 ],
3678 "info" : {
3679 "POST" : {
3680 "description" : "Add 'IP Network' object.",
3681 "method" : "POST",
3682 "name" : "network",
3683 "parameters" : {
3684 "additionalProperties" : 0,
3685 "properties" : {
3686 "cidr" : {
3687 "description" : "Network address in CIDR notation.",
3688 "format" : "CIDR",
3689 "type" : "string",
3690 "typetext" : "<string>"
3691 },
3692 "ogroup" : {
3693 "description" : "Object Groups ID.",
3694 "type" : "integer",
3695 "typetext" : "<integer>"
3696 }
eff914dc
DM
3697 }
3698 },
9fda36b0
DM
3699 "protected" : 1,
3700 "proxyto" : "master",
3701 "returns" : {
3702 "description" : "The object ID.",
3703 "type" : "integer"
eff914dc 3704 }
eff914dc
DM
3705 }
3706 },
9fda36b0
DM
3707 "leaf" : 0,
3708 "path" : "/config/ruledb/who/{ogroup}/network",
3709 "text" : "network"
410dc2c9 3710 },
9fda36b0
DM
3711 {
3712 "children" : [
3713 {
3714 "info" : {
3715 "GET" : {
3716 "description" : "Read 'LDAP Group' object settings.",
3717 "method" : "GET",
3718 "name" : "read_ldap",
3719 "parameters" : {
3720 "additionalProperties" : 0,
3721 "properties" : {
3722 "id" : {
3723 "description" : "Object ID.",
3724 "type" : "integer",
3725 "typetext" : "<integer>"
3726 },
3727 "ogroup" : {
3728 "description" : "Object Groups ID.",
3729 "type" : "integer",
3730 "typetext" : "<integer>"
3731 }
3732 }
3733 },
3734 "proxyto" : "master",
3735 "returns" : {
3736 "properties" : {
3737 "id" : {
3738 "type" : "integer"
3739 }
3740 },
3741 "type" : "object"
3742 }
3743 },
3744 "PUT" : {
3745 "description" : "Update 'LDAP Group' object.",
3746 "method" : "PUT",
3747 "name" : "update_ldap",
3748 "parameters" : {
3749 "additionalProperties" : 0,
3750 "properties" : {
3751 "group" : {
3752 "description" : "LDAP Group DN",
3753 "maxLength" : 1024,
3754 "minLength" : 1,
3755 "optional" : 1,
3756 "type" : "string",
3757 "typetext" : "<string>"
3758 },
3759 "id" : {
3760 "description" : "Object ID.",
3761 "type" : "integer",
3762 "typetext" : "<integer>"
3763 },
3764 "mode" : {
3765 "description" : "Operational mode. You can either match 'any' user, match when no such user exists with 'none', or match when the user is member of a specific group.",
3766 "enum" : [
3767 "any",
3768 "none",
3769 "group"
3770 ],
3771 "type" : "string"
3772 },
3773 "ogroup" : {
3774 "description" : "Object Groups ID.",
3775 "type" : "integer",
3776 "typetext" : "<integer>"
3777 },
3778 "profile" : {
3779 "description" : "Profile ID.",
3780 "format" : "pve-configid",
3781 "optional" : 1,
3782 "type" : "string",
3783 "typetext" : "<string>"
3784 }
3785 }
3786 },
3787 "protected" : 1,
3788 "proxyto" : "master",
3789 "returns" : {
3790 "type" : "null"
3791 }
3792 }
3793 },
3794 "leaf" : 1,
3795 "path" : "/config/ruledb/who/{ogroup}/ldap/{id}",
3796 "text" : "{id}"
3797 }
3798 ],
3799 "info" : {
3800 "POST" : {
3801 "description" : "Add 'LDAP Group' object.",
3802 "method" : "POST",
3803 "name" : "ldap",
3804 "parameters" : {
3805 "additionalProperties" : 0,
3806 "properties" : {
3807 "group" : {
3808 "description" : "LDAP Group DN",
3809 "maxLength" : 1024,
3810 "minLength" : 1,
3811 "optional" : 1,
3812 "type" : "string",
3813 "typetext" : "<string>"
3814 },
3815 "mode" : {
3816 "description" : "Operational mode. You can either match 'any' user, match when no such user exists with 'none', or match when the user is member of a specific group.",
3817 "enum" : [
3818 "any",
3819 "none",
3820 "group"
3821 ],
3822 "type" : "string"
3823 },
3824 "ogroup" : {
3825 "description" : "Object Groups ID.",
3826 "type" : "integer",
3827 "typetext" : "<integer>"
3828 },
3829 "profile" : {
3830 "description" : "Profile ID.",
3831 "format" : "pve-configid",
3832 "optional" : 1,
3833 "type" : "string",
3834 "typetext" : "<string>"
3835 }
3836 }
3837 },
3838 "protected" : 1,
3839 "proxyto" : "master",
3840 "returns" : {
3841 "description" : "The object ID.",
3842 "type" : "integer"
3843 }
3844 }
3845 },
3846 "leaf" : 0,
3847 "path" : "/config/ruledb/who/{ogroup}/ldap",
3848 "text" : "ldap"
3849 },
3850 {
3851 "children" : [
3852 {
3853 "info" : {
3854 "GET" : {
3855 "description" : "Read 'LDAP User' object settings.",
3856 "method" : "GET",
3857 "name" : "read_ldapuser",
3858 "parameters" : {
3859 "additionalProperties" : 0,
3860 "properties" : {
3861 "id" : {
3862 "description" : "Object ID.",
3863 "type" : "integer",
3864 "typetext" : "<integer>"
3865 },
3866 "ogroup" : {
3867 "description" : "Object Groups ID.",
3868 "type" : "integer",
3869 "typetext" : "<integer>"
3870 }
3871 }
3872 },
3873 "proxyto" : "master",
3874 "returns" : {
3875 "properties" : {
3876 "id" : {
3877 "type" : "integer"
3878 }
3879 },
3880 "type" : "object"
3881 }
3882 },
3883 "PUT" : {
3884 "description" : "Update 'LDAP User' object.",
3885 "method" : "PUT",
3886 "name" : "update_ldapuser",
3887 "parameters" : {
3888 "additionalProperties" : 0,
3889 "properties" : {
3890 "account" : {
3891 "description" : "LDAP user account name.",
3892 "maxLength" : 1024,
3893 "minLength" : 1,
3894 "type" : "string",
3895 "typetext" : "<string>"
3896 },
3897 "id" : {
3898 "description" : "Object ID.",
3899 "type" : "integer",
3900 "typetext" : "<integer>"
3901 },
3902 "ogroup" : {
3903 "description" : "Object Groups ID.",
3904 "type" : "integer",
3905 "typetext" : "<integer>"
3906 },
3907 "profile" : {
3908 "description" : "Profile ID.",
3909 "format" : "pve-configid",
3910 "type" : "string",
3911 "typetext" : "<string>"
3912 }
3913 }
3914 },
3915 "protected" : 1,
3916 "proxyto" : "master",
3917 "returns" : {
3918 "type" : "null"
3919 }
3920 }
3921 },
3922 "leaf" : 1,
3923 "path" : "/config/ruledb/who/{ogroup}/ldapuser/{id}",
3924 "text" : "{id}"
3925 }
3926 ],
3927 "info" : {
3928 "POST" : {
3929 "description" : "Add 'LDAP User' object.",
3930 "method" : "POST",
3931 "name" : "ldapuser",
3932 "parameters" : {
3933 "additionalProperties" : 0,
3934 "properties" : {
3935 "account" : {
3936 "description" : "LDAP user account name.",
3937 "maxLength" : 1024,
3938 "minLength" : 1,
3939 "type" : "string",
3940 "typetext" : "<string>"
3941 },
3942 "ogroup" : {
3943 "description" : "Object Groups ID.",
3944 "type" : "integer",
3945 "typetext" : "<integer>"
3946 },
3947 "profile" : {
3948 "description" : "Profile ID.",
3949 "format" : "pve-configid",
3950 "type" : "string",
3951 "typetext" : "<string>"
3952 }
3953 }
3954 },
3955 "protected" : 1,
3956 "proxyto" : "master",
3957 "returns" : {
3958 "description" : "The object ID.",
3959 "type" : "integer"
3960 }
3961 }
3962 },
3963 "leaf" : 0,
3964 "path" : "/config/ruledb/who/{ogroup}/ldapuser",
3965 "text" : "ldapuser"
3966 }
3967 ],
3968 "info" : {
3969 "DELETE" : {
3970 "description" : "Delete a 'who' group.",
3971 "method" : "DELETE",
3972 "name" : "delete_{$oclass}_group",
3973 "parameters" : {
3974 "additionalProperties" : 0,
3975 "properties" : {
3976 "ogroup" : {
3977 "description" : "Object Group ID.",
3978 "type" : "integer",
3979 "typetext" : "<integer>"
3980 }
3981 }
3982 },
732d76e1
DM
3983 "permissions" : {
3984 "check" : [
3985 "admin"
3986 ]
3987 },
9fda36b0
DM
3988 "protected" : 1,
3989 "proxyto" : "master",
3990 "returns" : {
3991 "type" : "null"
3992 }
3993 },
3994 "GET" : {
3995 "description" : "Directory index.",
3996 "method" : "GET",
3997 "name" : "index",
3998 "parameters" : {
3999 "additionalProperties" : 0,
4000 "properties" : {
4001 "ogroup" : {
4002 "description" : "Object Group ID.",
4003 "type" : "integer",
4004 "typetext" : "<integer>"
4005 }
4006 }
4007 },
732d76e1
DM
4008 "permissions" : {
4009 "check" : [
4010 "admin",
4011 "audit"
4012 ]
4013 },
9fda36b0
DM
4014 "returns" : {
4015 "items" : {
4016 "properties" : {
4017 "subdir" : {
4018 "type" : "string"
4019 }
4020 },
4021 "type" : "object"
4022 },
4023 "links" : [
4024 {
4025 "href" : "{subdir}",
4026 "rel" : "child"
4027 }
4028 ],
4029 "type" : "array"
4030 }
4031 }
4032 },
4033 "leaf" : 0,
4034 "path" : "/config/ruledb/who/{ogroup}",
4035 "text" : "{ogroup}"
4036 }
4037 ],
4038 "info" : {
4039 "GET" : {
4040 "description" : "Get list of 'who' groups.",
4041 "method" : "GET",
4042 "name" : "list_who_groups",
4043 "parameters" : {
4044 "additionalProperties" : 0
4045 },
732d76e1
DM
4046 "permissions" : {
4047 "check" : [
4048 "admin",
4049 "audit"
4050 ]
4051 },
9fda36b0
DM
4052 "proxyto" : "master",
4053 "returns" : {
4054 "items" : {
4055 "properties" : {
4056 "id" : {
4057 "type" : "integer"
4058 }
4059 },
4060 "type" : "object"
4061 },
4062 "type" : "array"
4063 }
4064 },
4065 "POST" : {
4066 "description" : "Create a new 'who' group.",
4067 "method" : "POST",
4068 "name" : "create_who_group",
4069 "parameters" : {
4070 "additionalProperties" : 0,
4071 "properties" : {
eff914dc
DM
4072 "info" : {
4073 "description" : "Informational comment.",
4074 "maxLength" : 255,
4075 "optional" : 1,
4076 "type" : "string",
4077 "typetext" : "<string>"
4078 },
4079 "name" : {
4080 "description" : "Group name.",
4081 "maxLength" : 255,
4082 "type" : "string",
4083 "typetext" : "<string>"
4084 }
4085 }
4086 },
732d76e1
DM
4087 "permissions" : {
4088 "check" : [
4089 "admin"
4090 ]
4091 },
eff914dc
DM
4092 "protected" : 1,
4093 "proxyto" : "master",
4094 "returns" : {
4095 "type" : "integer"
4096 }
410dc2c9
DM
4097 }
4098 },
eff914dc 4099 "leaf" : 0,
410dc2c9
DM
4100 "path" : "/config/ruledb/who",
4101 "text" : "who"
4102 }
4103 ],
4104 "info" : {
4105 "GET" : {
4106 "description" : "Directory index.",
4107 "method" : "GET",
4108 "name" : "index",
4109 "parameters" : {
4110 "additionalProperties" : 0
4111 },
732d76e1
DM
4112 "permissions" : {
4113 "check" : [
4114 "admin",
4115 "audit"
4116 ]
4117 },
410dc2c9
DM
4118 "returns" : {
4119 "items" : {
4120 "properties" : {},
4121 "type" : "object"
4122 },
4123 "links" : [
4124 {
4125 "href" : "{name}",
4126 "rel" : "child"
4127 }
4128 ],
4129 "type" : "array"
4130 }
d7cd791b
DM
4131 },
4132 "POST" : {
4133 "description" : "Reset PMG rule database back to factory defaults.",
4134 "method" : "POST",
4135 "name" : "reset_ruledb",
4136 "parameters" : {
4137 "additionalProperties" : 0
4138 },
4139 "protected" : 1,
4140 "returns" : {
4141 "type" : "null"
4142 }
410dc2c9
DM
4143 }
4144 },
4145 "leaf" : 0,
4146 "path" : "/config/ruledb",
4147 "text" : "ruledb"
4148 },
4149 {
4150 "children" : [
4151 {
eff914dc
DM
4152 "children" : [
4153 {
4154 "info" : {
4155 "DELETE" : {
4156 "description" : "Remove an object from the SMTP whitelist.",
4157 "method" : "DELETE",
4158 "name" : "delete_object",
4159 "parameters" : {
4160 "additionalProperties" : 0,
4161 "properties" : {
4162 "id" : {
4163 "description" : "Object ID.",
4164 "type" : "integer",
4165 "typetext" : "<integer>"
4166 }
4167 }
4168 },
732d76e1
DM
4169 "permissions" : {
4170 "check" : [
4171 "admin"
4172 ]
4173 },
bb6e6e0d 4174 "protected" : 1,
eff914dc
DM
4175 "proxyto" : "master",
4176 "returns" : {
4177 "type" : "null"
4178 }
4179 }
4180 },
4181 "leaf" : 1,
4182 "path" : "/config/whitelist/objects/{id}",
4183 "text" : "{id}"
4184 }
4185 ],
410dc2c9 4186 "info" : {
eff914dc
DM
4187 "GET" : {
4188 "description" : "Get list of all SMTP whitelist entries.",
4189 "method" : "GET",
4190 "name" : "objects",
4191 "parameters" : {
4192 "additionalProperties" : 0
4193 },
732d76e1
DM
4194 "permissions" : {
4195 "check" : [
4196 "admin",
4197 "audit"
4198 ]
4199 },
eff914dc
DM
4200 "proxyto" : "master",
4201 "returns" : {
4202 "items" : {
4203 "properties" : {
4204 "id" : {
4205 "type" : "integer"
4206 }
4207 },
4208 "type" : "object"
4209 },
4210 "links" : [
4211 {
4212 "href" : "{id}",
4213 "rel" : "child"
4214 }
4215 ],
4216 "type" : "array"
4217 }
4218 }
4219 },
4220 "leaf" : 0,
4221 "path" : "/config/whitelist/objects",
4222 "text" : "objects"
4223 },
4224 {
4225 "children" : [
4226 {
4227 "info" : {
4228 "GET" : {
4229 "description" : "Read 'Mail address' object settings.",
4230 "method" : "GET",
4231 "name" : "read_email",
4232 "parameters" : {
4233 "additionalProperties" : 0,
4234 "properties" : {
4235 "id" : {
4236 "description" : "Object ID.",
4237 "type" : "integer",
4238 "typetext" : "<integer>"
4239 }
4240 }
4241 },
4242 "proxyto" : "master",
4243 "returns" : {
4244 "properties" : {
4245 "id" : {
4246 "type" : "integer"
4247 }
4248 },
4249 "type" : "object"
4250 }
4251 },
4252 "PUT" : {
4253 "description" : "Update 'Mail address' object.",
4254 "method" : "PUT",
4255 "name" : "update_email",
4256 "parameters" : {
4257 "additionalProperties" : 0,
4258 "properties" : {
4259 "email" : {
4260 "description" : "Email address.",
4261 "format" : "email",
4262 "type" : "string",
4263 "typetext" : "<string>"
4264 },
4265 "id" : {
4266 "description" : "Object ID.",
4267 "type" : "integer",
4268 "typetext" : "<integer>"
4269 }
4270 }
4271 },
a55e94a6 4272 "protected" : 1,
eff914dc
DM
4273 "proxyto" : "master",
4274 "returns" : {
4275 "type" : "null"
4276 }
4277 }
4278 },
4279 "leaf" : 1,
4280 "path" : "/config/whitelist/email/{id}",
4281 "text" : "{id}"
4282 }
4283 ],
4284 "info" : {
4285 "POST" : {
4286 "description" : "Add 'Mail address' object.",
4287 "method" : "POST",
4288 "name" : "email",
410dc2c9
DM
4289 "parameters" : {
4290 "additionalProperties" : 0,
4291 "properties" : {
eff914dc
DM
4292 "email" : {
4293 "description" : "Email address.",
4294 "format" : "email",
410dc2c9
DM
4295 "type" : "string",
4296 "typetext" : "<string>"
4297 }
4298 }
4299 },
a55e94a6 4300 "protected" : 1,
410dc2c9
DM
4301 "proxyto" : "master",
4302 "returns" : {
eff914dc
DM
4303 "description" : "The object ID.",
4304 "type" : "integer"
410dc2c9 4305 }
eff914dc
DM
4306 }
4307 },
4308 "leaf" : 0,
4309 "path" : "/config/whitelist/email",
4310 "text" : "email"
4311 },
4312 {
4313 "children" : [
4314 {
4315 "info" : {
4316 "GET" : {
4317 "description" : "Read 'Mail address' object settings.",
4318 "method" : "GET",
4319 "name" : "read_receiver",
4320 "parameters" : {
4321 "additionalProperties" : 0,
4322 "properties" : {
4323 "id" : {
4324 "description" : "Object ID.",
4325 "type" : "integer",
4326 "typetext" : "<integer>"
4327 }
4328 }
4329 },
4330 "proxyto" : "master",
4331 "returns" : {
4332 "properties" : {
4333 "id" : {
4334 "type" : "integer"
4335 }
4336 },
4337 "type" : "object"
4338 }
4339 },
4340 "PUT" : {
4341 "description" : "Update 'Mail address' object.",
4342 "method" : "PUT",
4343 "name" : "update_receiver",
4344 "parameters" : {
4345 "additionalProperties" : 0,
4346 "properties" : {
4347 "email" : {
4348 "description" : "Email address.",
4349 "format" : "email",
4350 "type" : "string",
4351 "typetext" : "<string>"
4352 },
4353 "id" : {
4354 "description" : "Object ID.",
4355 "type" : "integer",
4356 "typetext" : "<integer>"
4357 }
4358 }
4359 },
a55e94a6 4360 "protected" : 1,
eff914dc
DM
4361 "proxyto" : "master",
4362 "returns" : {
4363 "type" : "null"
4364 }
4365 }
4366 },
4367 "leaf" : 1,
4368 "path" : "/config/whitelist/receiver/{id}",
4369 "text" : "{id}"
4370 }
4371 ],
4372 "info" : {
4373 "POST" : {
4374 "description" : "Add 'Mail address' object.",
4375 "method" : "POST",
4376 "name" : "receiver",
410dc2c9
DM
4377 "parameters" : {
4378 "additionalProperties" : 0,
4379 "properties" : {
eff914dc
DM
4380 "email" : {
4381 "description" : "Email address.",
4382 "format" : "email",
410dc2c9
DM
4383 "type" : "string",
4384 "typetext" : "<string>"
4385 }
4386 }
4387 },
a55e94a6 4388 "protected" : 1,
410dc2c9 4389 "proxyto" : "master",
eff914dc
DM
4390 "returns" : {
4391 "description" : "The object ID.",
4392 "type" : "integer"
4393 }
4394 }
4395 },
4396 "leaf" : 0,
4397 "path" : "/config/whitelist/receiver",
4398 "text" : "receiver"
4399 },
4400 {
4401 "children" : [
4402 {
4403 "info" : {
4404 "GET" : {
4405 "description" : "Read 'Domain' object settings.",
4406 "method" : "GET",
4407 "name" : "read_domain",
4408 "parameters" : {
4409 "additionalProperties" : 0,
4410 "properties" : {
4411 "id" : {
4412 "description" : "Object ID.",
4413 "type" : "integer",
4414 "typetext" : "<integer>"
4415 }
4416 }
4417 },
4418 "proxyto" : "master",
4419 "returns" : {
4420 "properties" : {
4421 "id" : {
4422 "type" : "integer"
4423 }
4424 },
4425 "type" : "object"
4426 }
4427 },
4428 "PUT" : {
4429 "description" : "Update 'Domain' object.",
4430 "method" : "PUT",
4431 "name" : "update_domain",
4432 "parameters" : {
4433 "additionalProperties" : 0,
4434 "properties" : {
4435 "domain" : {
4436 "description" : "DNS domain name (Sender).",
4437 "format" : "dns-name",
4438 "type" : "string",
4439 "typetext" : "<string>"
4440 },
4441 "id" : {
4442 "description" : "Object ID.",
4443 "type" : "integer",
4444 "typetext" : "<integer>"
4445 }
4446 }
4447 },
a55e94a6 4448 "protected" : 1,
eff914dc
DM
4449 "proxyto" : "master",
4450 "returns" : {
4451 "type" : "null"
4452 }
4453 }
4454 },
4455 "leaf" : 1,
4456 "path" : "/config/whitelist/domain/{id}",
4457 "text" : "{id}"
4458 }
4459 ],
4460 "info" : {
4461 "POST" : {
4462 "description" : "Add 'Domain' object.",
4463 "method" : "POST",
4464 "name" : "domain",
410dc2c9
DM
4465 "parameters" : {
4466 "additionalProperties" : 0,
4467 "properties" : {
eff914dc
DM
4468 "domain" : {
4469 "description" : "DNS domain name (Sender).",
4470 "format" : "dns-name",
410dc2c9
DM
4471 "type" : "string",
4472 "typetext" : "<string>"
eff914dc
DM
4473 }
4474 }
4475 },
a55e94a6 4476 "protected" : 1,
eff914dc
DM
4477 "proxyto" : "master",
4478 "returns" : {
4479 "description" : "The object ID.",
4480 "type" : "integer"
4481 }
4482 }
4483 },
4484 "leaf" : 0,
4485 "path" : "/config/whitelist/domain",
4486 "text" : "domain"
4487 },
4488 {
4489 "children" : [
4490 {
4491 "info" : {
4492 "GET" : {
4493 "description" : "Read 'Domain' object settings.",
4494 "method" : "GET",
4495 "name" : "read_receiver_domain",
4496 "parameters" : {
4497 "additionalProperties" : 0,
4498 "properties" : {
4499 "id" : {
4500 "description" : "Object ID.",
4501 "type" : "integer",
4502 "typetext" : "<integer>"
4503 }
4504 }
410dc2c9 4505 },
eff914dc
DM
4506 "proxyto" : "master",
4507 "returns" : {
4508 "properties" : {
4509 "id" : {
4510 "type" : "integer"
4511 }
4512 },
4513 "type" : "object"
4514 }
4515 },
4516 "PUT" : {
4517 "description" : "Update 'Domain' object.",
4518 "method" : "PUT",
4519 "name" : "update_receiver_domain",
4520 "parameters" : {
4521 "additionalProperties" : 0,
4522 "properties" : {
4523 "domain" : {
4524 "description" : "DNS domain name (Sender).",
4525 "format" : "dns-name",
4526 "type" : "string",
4527 "typetext" : "<string>"
4528 },
4529 "id" : {
4530 "description" : "Object ID.",
4531 "type" : "integer",
4532 "typetext" : "<integer>"
4533 }
4534 }
410dc2c9 4535 },
a55e94a6 4536 "protected" : 1,
eff914dc
DM
4537 "proxyto" : "master",
4538 "returns" : {
4539 "type" : "null"
4540 }
4541 }
4542 },
4543 "leaf" : 1,
4544 "path" : "/config/whitelist/receiver_domain/{id}",
4545 "text" : "{id}"
4546 }
4547 ],
4548 "info" : {
4549 "POST" : {
4550 "description" : "Add 'Domain' object.",
4551 "method" : "POST",
4552 "name" : "receiver_domain",
4553 "parameters" : {
4554 "additionalProperties" : 0,
4555 "properties" : {
4556 "domain" : {
4557 "description" : "DNS domain name (Sender).",
4558 "format" : "dns-name",
410dc2c9
DM
4559 "type" : "string",
4560 "typetext" : "<string>"
eff914dc
DM
4561 }
4562 }
4563 },
a55e94a6 4564 "protected" : 1,
eff914dc
DM
4565 "proxyto" : "master",
4566 "returns" : {
4567 "description" : "The object ID.",
4568 "type" : "integer"
4569 }
4570 }
4571 },
4572 "leaf" : 0,
4573 "path" : "/config/whitelist/receiver_domain",
4574 "text" : "receiver_domain"
4575 },
4576 {
4577 "children" : [
4578 {
4579 "info" : {
4580 "GET" : {
4581 "description" : "Read 'Regular Expression' object settings.",
4582 "method" : "GET",
4583 "name" : "read_regex",
4584 "parameters" : {
4585 "additionalProperties" : 0,
4586 "properties" : {
4587 "id" : {
4588 "description" : "Object ID.",
4589 "type" : "integer",
4590 "typetext" : "<integer>"
4591 }
4592 }
410dc2c9 4593 },
eff914dc
DM
4594 "proxyto" : "master",
4595 "returns" : {
4596 "properties" : {
4597 "id" : {
4598 "type" : "integer"
4599 }
4600 },
4601 "type" : "object"
4602 }
4603 },
4604 "PUT" : {
4605 "description" : "Update 'Regular Expression' object.",
4606 "method" : "PUT",
4607 "name" : "update_regex",
4608 "parameters" : {
4609 "additionalProperties" : 0,
4610 "properties" : {
4611 "id" : {
4612 "description" : "Object ID.",
4613 "type" : "integer",
4614 "typetext" : "<integer>"
4615 },
4616 "regex" : {
4617 "description" : "Email address regular expression.",
4618 "maxLength" : 1024,
4619 "type" : "string",
4620 "typetext" : "<string>"
4621 }
4622 }
4623 },
a55e94a6 4624 "protected" : 1,
eff914dc
DM
4625 "proxyto" : "master",
4626 "returns" : {
4627 "type" : "null"
4628 }
4629 }
4630 },
4631 "leaf" : 1,
4632 "path" : "/config/whitelist/regex/{id}",
4633 "text" : "{id}"
4634 }
4635 ],
4636 "info" : {
4637 "POST" : {
4638 "description" : "Add 'Regular Expression' object.",
4639 "method" : "POST",
4640 "name" : "regex",
4641 "parameters" : {
4642 "additionalProperties" : 0,
4643 "properties" : {
4644 "regex" : {
4645 "description" : "Email address regular expression.",
4646 "maxLength" : 1024,
410dc2c9
DM
4647 "type" : "string",
4648 "typetext" : "<string>"
eff914dc
DM
4649 }
4650 }
4651 },
a55e94a6 4652 "protected" : 1,
eff914dc
DM
4653 "proxyto" : "master",
4654 "returns" : {
4655 "description" : "The object ID.",
4656 "type" : "integer"
4657 }
4658 }
4659 },
4660 "leaf" : 0,
4661 "path" : "/config/whitelist/regex",
4662 "text" : "regex"
4663 },
4664 {
4665 "children" : [
4666 {
4667 "info" : {
4668 "GET" : {
4669 "description" : "Read 'Regular Expression' object settings.",
4670 "method" : "GET",
4671 "name" : "read_receiver_regex",
4672 "parameters" : {
4673 "additionalProperties" : 0,
4674 "properties" : {
4675 "id" : {
4676 "description" : "Object ID.",
4677 "type" : "integer",
4678 "typetext" : "<integer>"
4679 }
4680 }
4681 },
4682 "proxyto" : "master",
4683 "returns" : {
4684 "properties" : {
4685 "id" : {
4686 "type" : "integer"
4687 }
4688 },
4689 "type" : "object"
4690 }
4691 },
4692 "PUT" : {
4693 "description" : "Update 'Regular Expression' object.",
4694 "method" : "PUT",
4695 "name" : "update_receiver_regex",
4696 "parameters" : {
4697 "additionalProperties" : 0,
4698 "properties" : {
4699 "id" : {
4700 "description" : "Object ID.",
4701 "type" : "integer",
4702 "typetext" : "<integer>"
4703 },
4704 "regex" : {
4705 "description" : "Email address regular expression.",
4706 "maxLength" : 1024,
4707 "type" : "string",
4708 "typetext" : "<string>"
4709 }
4710 }
4711 },
a55e94a6 4712 "protected" : 1,
eff914dc
DM
4713 "proxyto" : "master",
4714 "returns" : {
4715 "type" : "null"
4716 }
4717 }
4718 },
4719 "leaf" : 1,
4720 "path" : "/config/whitelist/receiver_regex/{id}",
4721 "text" : "{id}"
4722 }
4723 ],
4724 "info" : {
4725 "POST" : {
4726 "description" : "Add 'Regular Expression' object.",
4727 "method" : "POST",
4728 "name" : "receiver_regex",
4729 "parameters" : {
4730 "additionalProperties" : 0,
4731 "properties" : {
4732 "regex" : {
4733 "description" : "Email address regular expression.",
4734 "maxLength" : 1024,
4735 "type" : "string",
4736 "typetext" : "<string>"
4737 }
4738 }
4739 },
a55e94a6 4740 "protected" : 1,
eff914dc
DM
4741 "proxyto" : "master",
4742 "returns" : {
4743 "description" : "The object ID.",
4744 "type" : "integer"
4745 }
4746 }
4747 },
4748 "leaf" : 0,
4749 "path" : "/config/whitelist/receiver_regex",
4750 "text" : "receiver_regex"
4751 },
4752 {
4753 "children" : [
4754 {
4755 "info" : {
4756 "GET" : {
4757 "description" : "Read 'IP Address' object settings.",
4758 "method" : "GET",
4759 "name" : "read_ip",
4760 "parameters" : {
4761 "additionalProperties" : 0,
4762 "properties" : {
4763 "id" : {
4764 "description" : "Object ID.",
4765 "type" : "integer",
4766 "typetext" : "<integer>"
4767 }
4768 }
4769 },
4770 "proxyto" : "master",
4771 "returns" : {
4772 "properties" : {
4773 "id" : {
4774 "type" : "integer"
4775 }
4776 },
4777 "type" : "object"
4778 }
4779 },
4780 "PUT" : {
4781 "description" : "Update 'IP Address' object.",
4782 "method" : "PUT",
4783 "name" : "update_ip",
4784 "parameters" : {
4785 "additionalProperties" : 0,
4786 "properties" : {
4787 "id" : {
4788 "description" : "Object ID.",
4789 "type" : "integer",
4790 "typetext" : "<integer>"
4791 },
4792 "ip" : {
4793 "description" : "IP address",
4794 "format" : "ip",
4795 "type" : "string",
4796 "typetext" : "<string>"
4797 }
4798 }
4799 },
a55e94a6 4800 "protected" : 1,
eff914dc
DM
4801 "proxyto" : "master",
4802 "returns" : {
4803 "type" : "null"
4804 }
4805 }
4806 },
4807 "leaf" : 1,
4808 "path" : "/config/whitelist/ip/{id}",
4809 "text" : "{id}"
4810 }
4811 ],
4812 "info" : {
4813 "POST" : {
4814 "description" : "Add 'IP Address' object.",
4815 "method" : "POST",
4816 "name" : "ip",
4817 "parameters" : {
4818 "additionalProperties" : 0,
4819 "properties" : {
4820 "ip" : {
4821 "description" : "IP address",
4822 "format" : "ip",
4823 "type" : "string",
4824 "typetext" : "<string>"
4825 }
4826 }
4827 },
a55e94a6 4828 "protected" : 1,
eff914dc
DM
4829 "proxyto" : "master",
4830 "returns" : {
4831 "description" : "The object ID.",
4832 "type" : "integer"
4833 }
4834 }
4835 },
4836 "leaf" : 0,
4837 "path" : "/config/whitelist/ip",
4838 "text" : "ip"
4839 },
4840 {
4841 "children" : [
4842 {
4843 "info" : {
4844 "GET" : {
4845 "description" : "Read 'IP Network' object settings.",
4846 "method" : "GET",
4847 "name" : "read_network",
4848 "parameters" : {
4849 "additionalProperties" : 0,
4850 "properties" : {
4851 "id" : {
4852 "description" : "Object ID.",
4853 "type" : "integer",
4854 "typetext" : "<integer>"
4855 }
4856 }
4857 },
4858 "proxyto" : "master",
4859 "returns" : {
4860 "properties" : {
4861 "id" : {
4862 "type" : "integer"
4863 }
4864 },
4865 "type" : "object"
4866 }
4867 },
4868 "PUT" : {
4869 "description" : "Update 'IP Network' object.",
4870 "method" : "PUT",
4871 "name" : "update_network",
4872 "parameters" : {
4873 "additionalProperties" : 0,
4874 "properties" : {
4875 "cidr" : {
4876 "description" : "Network address in CIDR notation.",
4877 "format" : "CIDR",
4878 "type" : "string",
4879 "typetext" : "<string>"
4880 },
4881 "id" : {
4882 "description" : "Object ID.",
4883 "type" : "integer",
4884 "typetext" : "<integer>"
4885 }
4886 }
4887 },
a55e94a6 4888 "protected" : 1,
eff914dc
DM
4889 "proxyto" : "master",
4890 "returns" : {
4891 "type" : "null"
4892 }
4893 }
4894 },
4895 "leaf" : 1,
4896 "path" : "/config/whitelist/network/{id}",
4897 "text" : "{id}"
4898 }
4899 ],
4900 "info" : {
4901 "POST" : {
4902 "description" : "Add 'IP Network' object.",
4903 "method" : "POST",
4904 "name" : "network",
4905 "parameters" : {
4906 "additionalProperties" : 0,
4907 "properties" : {
4908 "cidr" : {
4909 "description" : "Network address in CIDR notation.",
4910 "format" : "CIDR",
4911 "type" : "string",
4912 "typetext" : "<string>"
4913 }
4914 }
4915 },
a55e94a6 4916 "protected" : 1,
eff914dc
DM
4917 "proxyto" : "master",
4918 "returns" : {
4919 "description" : "The object ID.",
4920 "type" : "integer"
4921 }
4922 }
4923 },
4924 "leaf" : 0,
4925 "path" : "/config/whitelist/network",
4926 "text" : "network"
4927 }
4928 ],
4929 "info" : {
4930 "GET" : {
4931 "description" : "Directory index.",
4932 "method" : "GET",
4933 "name" : "index",
4934 "parameters" : {
4935 "additionalProperties" : 0
4936 },
732d76e1
DM
4937 "permissions" : {
4938 "check" : [
4939 "admin",
4940 "audit"
4941 ]
4942 },
eff914dc
DM
4943 "returns" : {
4944 "items" : {
4945 "properties" : {
4946 "subdir" : {
4947 "type" : "string"
4948 }
4949 },
4950 "type" : "object"
4951 },
4952 "links" : [
4953 {
4954 "href" : "{subdir}",
4955 "rel" : "child"
4956 }
4957 ],
4958 "type" : "array"
4959 }
4960 }
4961 },
4962 "leaf" : 0,
4963 "path" : "/config/whitelist",
4964 "text" : "whitelist"
4965 },
4966 {
4967 "children" : [
4968 {
a55e94a6
DM
4969 "children" : [
4970 {
4971 "info" : {
4972 "GET" : {
4973 "description" : "Get LDAP profile configuration.",
4974 "method" : "GET",
4975 "name" : "read_config",
4976 "parameters" : {
4977 "additionalProperties" : 0,
4978 "properties" : {
4979 "profile" : {
4980 "description" : "Profile ID.",
4981 "format" : "pve-configid",
4982 "type" : "string",
4983 "typetext" : "<string>"
4984 }
4985 }
4986 },
4987 "permissions" : {
4988 "check" : [
4989 "admin"
4990 ]
4991 },
4992 "proxyto" : "master",
4993 "returns" : {}
4994 },
4995 "PUT" : {
4996 "description" : "Update LDAP profile settings.",
4997 "method" : "PUT",
4998 "name" : "update_config",
4999 "parameters" : {
5000 "additionalProperties" : 0,
5001 "properties" : {
5002 "accountattr" : {
732d76e1 5003 "default" : "sAMAccountName, uid",
a55e94a6 5004 "description" : "Account attribute name name.",
732d76e1 5005 "format" : "string-list",
a55e94a6
DM
5006 "optional" : 1,
5007 "pattern" : "[a-zA-Z0-9]+",
5008 "type" : "string"
5009 },
5010 "basedn" : {
5011 "description" : "Base domain name.",
5012 "optional" : 1,
5013 "type" : "string",
5014 "typetext" : "<string>"
5015 },
5016 "binddn" : {
5017 "description" : "Bind domain name.",
5018 "optional" : 1,
5019 "type" : "string",
5020 "typetext" : "<string>"
5021 },
5022 "bindpw" : {
5023 "description" : "Bind password.",
5024 "optional" : 1,
5025 "type" : "string",
5026 "typetext" : "<string>"
5027 },
5028 "comment" : {
5029 "description" : "Description.",
5030 "maxLength" : 4096,
5031 "optional" : 1,
5032 "type" : "string",
5033 "typetext" : "<string>"
5034 },
5035 "delete" : {
5036 "description" : "A list of settings you want to delete.",
5037 "format" : "pve-configid-list",
5038 "maxLength" : 4096,
5039 "optional" : 1,
5040 "type" : "string",
5041 "typetext" : "<string>"
5042 },
5043 "digest" : {
5044 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
5045 "maxLength" : 40,
5046 "optional" : 1,
5047 "type" : "string",
5048 "typetext" : "<string>"
5049 },
5050 "disable" : {
5051 "description" : "Flag to disable/deactivate the entry.",
5052 "optional" : 1,
5053 "type" : "boolean",
5054 "typetext" : "<boolean>"
5055 },
5056 "filter" : {
5057 "description" : "LDAP filter.",
5058 "optional" : 1,
5059 "type" : "string",
5060 "typetext" : "<string>"
5061 },
5062 "groupbasedn" : {
5063 "description" : "Base domain name for groups.",
5064 "optional" : 1,
5065 "type" : "string",
5066 "typetext" : "<string>"
5067 },
732d76e1
DM
5068 "groupclass" : {
5069 "default" : "group, univentionGroup, ipausergroup",
5070 "description" : "List of objectclasses for groups.",
5071 "format" : "string-list",
5072 "optional" : 1,
5073 "type" : "string",
5074 "typetext" : "<string>"
5075 },
a55e94a6
DM
5076 "mailattr" : {
5077 "default" : "mail, userPrincipalName, proxyAddresses, othermailbox",
5078 "description" : "List of mail attribute names.",
5079 "format" : "string-list",
5080 "optional" : 1,
5081 "pattern" : "[a-zA-Z0-9]+",
5082 "type" : "string"
5083 },
5084 "mode" : {
5085 "default" : "ldap",
5086 "description" : "LDAP protocol mode ('ldap' or 'ldaps').",
5087 "enum" : [
5088 "ldap",
5089 "ldaps"
5090 ],
5091 "optional" : 1,
5092 "type" : "string"
5093 },
5094 "port" : {
5095 "description" : "Specify the port to connect to.",
5096 "maximum" : 65535,
5097 "minimum" : 1,
5098 "optional" : 1,
5099 "type" : "integer",
5100 "typetext" : "<integer> (1 - 65535)"
5101 },
5102 "profile" : {
5103 "description" : "Profile ID.",
5104 "format" : "pve-configid",
5105 "type" : "string",
5106 "typetext" : "<string>"
5107 },
5108 "server1" : {
5109 "description" : "Server address.",
5110 "format" : "address",
5111 "maxLength" : 256,
5112 "optional" : 1,
5113 "type" : "string",
5114 "typetext" : "<string>"
5115 },
5116 "server2" : {
5117 "description" : "Fallback server address. Userd when the first server is not available.",
5118 "format" : "address",
5119 "maxLength" : 256,
5120 "optional" : 1,
5121 "type" : "string",
5122 "typetext" : "<string>"
5123 }
732d76e1
DM
5124 },
5125 "type" : "object"
5126 },
5127 "permissions" : {
5128 "check" : [
5129 "admin"
5130 ]
5131 },
5132 "protected" : 1,
5133 "proxyto" : "master",
5134 "returns" : {
5135 "type" : "null"
5136 }
5137 }
5138 },
5139 "leaf" : 1,
5140 "path" : "/config/ldap/{profile}/config",
5141 "text" : "config"
5142 },
5143 {
5144 "info" : {
5145 "POST" : {
5146 "description" : "Synchronice LDAP users to local database.",
5147 "method" : "POST",
5148 "name" : "sync_profile",
5149 "parameters" : {
5150 "additionalProperties" : 0,
5151 "properties" : {
5152 "profile" : {
5153 "description" : "Profile ID.",
5154 "format" : "pve-configid",
5155 "type" : "string",
5156 "typetext" : "<string>"
5157 }
5158 }
5159 },
5160 "permissions" : {
5161 "check" : [
5162 "admin"
5163 ]
5164 },
5165 "protected" : 1,
5166 "proxyto" : "master",
5167 "returns" : {
5168 "type" : "null"
5169 }
5170 }
5171 },
5172 "leaf" : 1,
5173 "path" : "/config/ldap/{profile}/sync",
5174 "text" : "sync"
5175 },
5176 {
5177 "children" : [
5178 {
5179 "info" : {
5180 "GET" : {
5181 "description" : "Get all email addresses for the specified user.",
5182 "method" : "GET",
5183 "name" : "address_list",
5184 "parameters" : {
5185 "additionalProperties" : 0,
5186 "properties" : {
5187 "email" : {
5188 "description" : "Email address.",
5189 "format" : "email",
5190 "type" : "string",
5191 "typetext" : "<string>"
5192 },
5193 "profile" : {
5194 "description" : "Profile ID.",
5195 "format" : "pve-configid",
5196 "type" : "string",
5197 "typetext" : "<string>"
5198 }
5199 }
5200 },
5201 "permissions" : {
5202 "check" : [
5203 "admin"
5204 ]
5205 },
5206 "protected" : 1,
5207 "proxyto" : "master",
5208 "returns" : {
5209 "items" : {
5210 "properties" : {
5211 "email" : {
5212 "type" : "string"
5213 },
5214 "primary" : {
5215 "type" : "boolean"
5216 }
5217 },
5218 "type" : "object"
5219 },
5220 "type" : "array"
5221 }
5222 }
a55e94a6 5223 },
732d76e1
DM
5224 "leaf" : 1,
5225 "path" : "/config/ldap/{profile}/users/{email}",
5226 "text" : "{email}"
a55e94a6 5227 }
732d76e1 5228 ],
a55e94a6 5229 "info" : {
732d76e1
DM
5230 "GET" : {
5231 "description" : "List LDAP users.",
5232 "method" : "GET",
5233 "name" : "profile_list_users",
a55e94a6
DM
5234 "parameters" : {
5235 "additionalProperties" : 0,
5236 "properties" : {
5237 "profile" : {
5238 "description" : "Profile ID.",
5239 "format" : "pve-configid",
5240 "type" : "string",
5241 "typetext" : "<string>"
5242 }
5243 }
5244 },
5245 "permissions" : {
5246 "check" : [
5247 "admin"
5248 ]
5249 },
5250 "protected" : 1,
5251 "proxyto" : "master",
5252 "returns" : {
732d76e1
DM
5253 "items" : {
5254 "properties" : {
5255 "account" : {
5256 "type" : "string"
5257 },
5258 "dn" : {
5259 "type" : "string"
5260 },
5261 "pmail" : {
5262 "type" : "string"
5263 }
5264 },
5265 "type" : "object"
5266 },
5267 "links" : [
5268 {
5269 "href" : "{pmail}",
5270 "rel" : "child"
5271 }
5272 ],
5273 "type" : "array"
a55e94a6
DM
5274 }
5275 }
5276 },
732d76e1
DM
5277 "leaf" : 0,
5278 "path" : "/config/ldap/{profile}/users",
5279 "text" : "users"
a55e94a6
DM
5280 },
5281 {
5282 "children" : [
5283 {
5284 "info" : {
5285 "GET" : {
732d76e1 5286 "description" : "List LDAP group members.",
a55e94a6 5287 "method" : "GET",
732d76e1 5288 "name" : "profile_list_group_members",
a55e94a6
DM
5289 "parameters" : {
5290 "additionalProperties" : 0,
5291 "properties" : {
732d76e1
DM
5292 "gid" : {
5293 "description" : "Group ID",
5294 "type" : "number",
5295 "typetext" : "<number>"
a55e94a6
DM
5296 },
5297 "profile" : {
5298 "description" : "Profile ID.",
5299 "format" : "pve-configid",
5300 "type" : "string",
5301 "typetext" : "<string>"
5302 }
5303 }
5304 },
5305 "permissions" : {
5306 "check" : [
5307 "admin"
5308 ]
5309 },
5310 "protected" : 1,
5311 "proxyto" : "master",
5312 "returns" : {
5313 "items" : {
5314 "properties" : {
732d76e1 5315 "account" : {
a55e94a6
DM
5316 "type" : "string"
5317 },
732d76e1
DM
5318 "dn" : {
5319 "type" : "string"
5320 },
5321 "pmail" : {
5322 "type" : "string"
a55e94a6
DM
5323 }
5324 },
5325 "type" : "object"
5326 },
5327 "type" : "array"
5328 }
5329 }
5330 },
5331 "leaf" : 1,
732d76e1
DM
5332 "path" : "/config/ldap/{profile}/groups/{gid}",
5333 "text" : "{gid}"
a55e94a6
DM
5334 }
5335 ],
5336 "info" : {
5337 "GET" : {
732d76e1 5338 "description" : "List LDAP groups.",
a55e94a6 5339 "method" : "GET",
732d76e1 5340 "name" : "profile_list_groups",
a55e94a6
DM
5341 "parameters" : {
5342 "additionalProperties" : 0,
5343 "properties" : {
5344 "profile" : {
5345 "description" : "Profile ID.",
5346 "format" : "pve-configid",
5347 "type" : "string",
5348 "typetext" : "<string>"
5349 }
5350 }
5351 },
5352 "permissions" : {
5353 "check" : [
5354 "admin"
5355 ]
5356 },
5357 "protected" : 1,
5358 "proxyto" : "master",
5359 "returns" : {
5360 "items" : {
5361 "properties" : {
a55e94a6
DM
5362 "dn" : {
5363 "type" : "string"
5364 },
732d76e1
DM
5365 "gid" : {
5366 "type" : "number"
a55e94a6
DM
5367 }
5368 },
5369 "type" : "object"
5370 },
732d76e1
DM
5371 "links" : [
5372 {
5373 "href" : "{gid}",
5374 "rel" : "child"
5375 }
5376 ],
a55e94a6
DM
5377 "type" : "array"
5378 }
5379 }
5380 },
732d76e1
DM
5381 "leaf" : 0,
5382 "path" : "/config/ldap/{profile}/groups",
5383 "text" : "groups"
5384 }
5385 ],
5386 "info" : {
5387 "DELETE" : {
5388 "description" : "Delete an LDAP profile",
5389 "method" : "DELETE",
5390 "name" : "delete",
5391 "parameters" : {
5392 "additionalProperties" : 0,
5393 "properties" : {
5394 "profile" : {
5395 "description" : "Profile ID.",
5396 "format" : "pve-configid",
5397 "type" : "string",
5398 "typetext" : "<string>"
5399 }
5400 }
5401 },
5402 "permissions" : {
5403 "check" : [
5404 "admin"
5405 ]
5406 },
5407 "protected" : 1,
5408 "proxyto" : "master",
5409 "returns" : {
5410 "type" : "null"
5411 }
5412 },
5413 "GET" : {
5414 "description" : "Directory index",
5415 "method" : "GET",
5416 "name" : "profile_index",
5417 "parameters" : {
5418 "additionalProperties" : 0,
5419 "properties" : {
5420 "profile" : {
5421 "description" : "Profile ID.",
5422 "format" : "pve-configid",
5423 "type" : "string",
5424 "typetext" : "<string>"
5425 }
5426 }
5427 },
5428 "permissions" : {
5429 "user" : "all"
5430 },
5431 "returns" : {
5432 "items" : {
5433 "properties" : {
5434 "subdir" : {
5435 "type" : "string"
5436 }
5437 },
5438 "type" : "object"
5439 },
5440 "links" : [
5441 {
5442 "href" : "{subdir}",
5443 "rel" : "child"
5444 }
5445 ],
5446 "type" : "array"
5447 }
5448 }
5449 },
5450 "leaf" : 0,
5451 "path" : "/config/ldap/{profile}",
5452 "text" : "{profile}"
5453 }
5454 ],
5455 "info" : {
5456 "GET" : {
5457 "description" : "List configured LDAP profiles.",
5458 "method" : "GET",
5459 "name" : "index",
5460 "parameters" : {
5461 "additionalProperties" : 0
5462 },
5463 "permissions" : {
5464 "check" : [
5465 "admin"
5466 ]
5467 },
5468 "proxyto" : "master",
5469 "returns" : {
5470 "items" : {
5471 "properties" : {
5472 "comment" : {
5473 "optional" : 1,
5474 "type" : "string"
5475 },
5476 "disable" : {
5477 "type" : "boolean"
5478 },
5479 "gcount" : {
5480 "optional" : 1,
5481 "type" : "integer"
5482 },
5483 "mcount" : {
5484 "optional" : 1,
5485 "type" : "integer"
5486 },
5487 "mode" : {
5488 "type" : "string"
5489 },
5490 "profile" : {
5491 "type" : "string"
5492 },
5493 "server1" : {
5494 "type" : "string"
5495 },
5496 "server2" : {
5497 "optional" : 1,
5498 "type" : "string"
5499 },
5500 "ucount" : {
5501 "optional" : 1,
5502 "type" : "integer"
5503 }
5504 },
5505 "type" : "object"
5506 },
5507 "links" : [
5508 {
5509 "href" : "{profile}",
5510 "rel" : "child"
5511 }
5512 ],
5513 "type" : "array"
5514 }
5515 },
5516 "POST" : {
5517 "description" : "Add LDAP profile.",
5518 "method" : "POST",
5519 "name" : "create",
5520 "parameters" : {
5521 "additionalProperties" : 0,
5522 "properties" : {
5523 "accountattr" : {
5524 "default" : "sAMAccountName, uid",
5525 "description" : "Account attribute name name.",
5526 "format" : "string-list",
5527 "optional" : 1,
5528 "pattern" : "[a-zA-Z0-9]+",
5529 "type" : "string"
5530 },
5531 "basedn" : {
5532 "description" : "Base domain name.",
5533 "optional" : 1,
5534 "type" : "string",
5535 "typetext" : "<string>"
5536 },
5537 "binddn" : {
5538 "description" : "Bind domain name.",
5539 "optional" : 1,
5540 "type" : "string",
5541 "typetext" : "<string>"
5542 },
5543 "bindpw" : {
5544 "description" : "Bind password.",
5545 "optional" : 1,
5546 "type" : "string",
5547 "typetext" : "<string>"
5548 },
5549 "comment" : {
5550 "description" : "Description.",
5551 "maxLength" : 4096,
5552 "optional" : 1,
5553 "type" : "string",
5554 "typetext" : "<string>"
5555 },
5556 "disable" : {
5557 "description" : "Flag to disable/deactivate the entry.",
5558 "optional" : 1,
5559 "type" : "boolean",
5560 "typetext" : "<boolean>"
a55e94a6 5561 },
732d76e1
DM
5562 "filter" : {
5563 "description" : "LDAP filter.",
5564 "optional" : 1,
5565 "type" : "string",
5566 "typetext" : "<string>"
5567 },
5568 "groupbasedn" : {
5569 "description" : "Base domain name for groups.",
5570 "optional" : 1,
5571 "type" : "string",
5572 "typetext" : "<string>"
5573 },
5574 "groupclass" : {
5575 "default" : "group, univentionGroup, ipausergroup",
5576 "description" : "List of objectclasses for groups.",
5577 "format" : "string-list",
5578 "optional" : 1,
5579 "type" : "string",
5580 "typetext" : "<string>"
5581 },
5582 "mailattr" : {
5583 "default" : "mail, userPrincipalName, proxyAddresses, othermailbox",
5584 "description" : "List of mail attribute names.",
5585 "format" : "string-list",
5586 "optional" : 1,
5587 "pattern" : "[a-zA-Z0-9]+",
5588 "type" : "string"
5589 },
5590 "mode" : {
5591 "default" : "ldap",
5592 "description" : "LDAP protocol mode ('ldap' or 'ldaps').",
5593 "enum" : [
5594 "ldap",
5595 "ldaps"
5596 ],
5597 "optional" : 1,
5598 "type" : "string"
5599 },
5600 "port" : {
5601 "description" : "Specify the port to connect to.",
5602 "maximum" : 65535,
5603 "minimum" : 1,
5604 "optional" : 1,
5605 "type" : "integer",
5606 "typetext" : "<integer> (1 - 65535)"
5607 },
5608 "profile" : {
5609 "description" : "Profile ID.",
5610 "format" : "pve-configid",
5611 "type" : "string",
5612 "typetext" : "<string>"
5613 },
5614 "server1" : {
5615 "description" : "Server address.",
5616 "format" : "address",
5617 "maxLength" : 256,
5618 "optional" : 0,
5619 "type" : "string",
5620 "typetext" : "<string>"
5621 },
5622 "server2" : {
5623 "description" : "Fallback server address. Userd when the first server is not available.",
5624 "format" : "address",
5625 "maxLength" : 256,
5626 "optional" : 1,
5627 "type" : "string",
5628 "typetext" : "<string>"
5629 }
5630 },
5631 "type" : "object"
5632 },
5633 "permissions" : {
5634 "check" : [
5635 "admin"
5636 ]
5637 },
5638 "protected" : 1,
5639 "proxyto" : "master",
5640 "returns" : {
5641 "type" : "null"
5642 }
5643 }
5644 },
5645 "leaf" : 0,
5646 "path" : "/config/ldap",
5647 "text" : "ldap"
5648 },
5649 {
5650 "children" : [
5651 {
a55e94a6
DM
5652 "info" : {
5653 "DELETE" : {
732d76e1 5654 "description" : "Delete a relay domain",
a55e94a6
DM
5655 "method" : "DELETE",
5656 "name" : "delete",
5657 "parameters" : {
5658 "additionalProperties" : 0,
5659 "properties" : {
732d76e1
DM
5660 "domain" : {
5661 "description" : "Domain name.",
5662 "format" : "dns-name",
eff914dc
DM
5663 "type" : "string",
5664 "typetext" : "<string>"
5665 }
5666 }
5667 },
a55e94a6
DM
5668 "permissions" : {
5669 "check" : [
5670 "admin"
5671 ]
5672 },
eff914dc
DM
5673 "protected" : 1,
5674 "proxyto" : "master",
a55e94a6
DM
5675 "returns" : {
5676 "type" : "null"
5677 }
eff914dc 5678 },
a55e94a6 5679 "GET" : {
732d76e1 5680 "description" : "Read Domain data (comment).",
a55e94a6 5681 "method" : "GET",
732d76e1 5682 "name" : "read",
eff914dc
DM
5683 "parameters" : {
5684 "additionalProperties" : 0,
5685 "properties" : {
732d76e1
DM
5686 "domain" : {
5687 "description" : "Domain name.",
5688 "format" : "dns-name",
eff914dc
DM
5689 "type" : "string",
5690 "typetext" : "<string>"
a55e94a6
DM
5691 }
5692 }
5693 },
5694 "permissions" : {
732d76e1
DM
5695 "check" : [
5696 "admin",
5697 "audit"
5698 ]
a55e94a6 5699 },
732d76e1 5700 "proxyto" : "master",
a55e94a6 5701 "returns" : {
732d76e1
DM
5702 "properties" : {
5703 "comment" : {
5704 "type" : "string"
eff914dc 5705 },
732d76e1
DM
5706 "domain" : {
5707 "type" : "string"
5708 }
eff914dc 5709 },
732d76e1
DM
5710 "type" : "object"
5711 }
5712 },
5713 "PUT" : {
5714 "description" : "Update relay domain data (comment).",
5715 "method" : "PUT",
5716 "name" : "write",
5717 "parameters" : {
5718 "additionalProperties" : 0,
5719 "properties" : {
5720 "comment" : {
5721 "description" : "Comment.",
5722 "type" : "string",
5723 "typetext" : "<string>"
5724 },
5725 "domain" : {
5726 "description" : "Domain name.",
5727 "format" : "dns-name",
5728 "type" : "string",
5729 "typetext" : "<string>"
a55e94a6 5730 }
732d76e1
DM
5731 }
5732 },
5733 "permissions" : {
5734 "check" : [
5735 "admin"
5736 ]
5737 },
5738 "protected" : 1,
5739 "proxyto" : "master",
5740 "returns" : {
5741 "type" : "null"
eff914dc
DM
5742 }
5743 }
5744 },
732d76e1
DM
5745 "leaf" : 1,
5746 "path" : "/config/domains/{domain}",
5747 "text" : "{domain}"
eff914dc
DM
5748 }
5749 ],
5750 "info" : {
5751 "GET" : {
732d76e1 5752 "description" : "List relay domains.",
eff914dc
DM
5753 "method" : "GET",
5754 "name" : "index",
5755 "parameters" : {
5756 "additionalProperties" : 0
5757 },
a55e94a6
DM
5758 "permissions" : {
5759 "check" : [
732d76e1
DM
5760 "admin",
5761 "audit"
a55e94a6
DM
5762 ]
5763 },
eff914dc
DM
5764 "proxyto" : "master",
5765 "returns" : {
5766 "items" : {
5767 "properties" : {
a55e94a6 5768 "comment" : {
eff914dc 5769 "type" : "string"
a55e94a6 5770 },
732d76e1
DM
5771 "domain" : {
5772 "type" : "string"
eff914dc
DM
5773 }
5774 },
5775 "type" : "object"
5776 },
5777 "links" : [
5778 {
732d76e1 5779 "href" : "{domain}",
eff914dc
DM
5780 "rel" : "child"
5781 }
5782 ],
5783 "type" : "array"
5784 }
5785 },
5786 "POST" : {
732d76e1 5787 "description" : "Add relay domain.",
eff914dc
DM
5788 "method" : "POST",
5789 "name" : "create",
5790 "parameters" : {
5791 "additionalProperties" : 0,
5792 "properties" : {
a55e94a6 5793 "comment" : {
732d76e1 5794 "description" : "Comment.",
eff914dc 5795 "optional" : 1,
eff914dc
DM
5796 "type" : "string",
5797 "typetext" : "<string>"
5798 },
732d76e1
DM
5799 "domain" : {
5800 "description" : "Domain name.",
5801 "format" : "dns-name",
eff914dc
DM
5802 "type" : "string",
5803 "typetext" : "<string>"
5804 }
732d76e1 5805 }
eff914dc 5806 },
a55e94a6
DM
5807 "permissions" : {
5808 "check" : [
5809 "admin"
5810 ]
5811 },
eff914dc
DM
5812 "protected" : 1,
5813 "proxyto" : "master",
5814 "returns" : {
5815 "type" : "null"
5816 }
5817 }
5818 },
5819 "leaf" : 0,
732d76e1
DM
5820 "path" : "/config/domains",
5821 "text" : "domains"
eff914dc
DM
5822 },
5823 {
5824 "children" : [
5825 {
5826 "info" : {
5827 "DELETE" : {
732d76e1 5828 "description" : "Delete a fetchmail configuration entry.",
eff914dc
DM
5829 "method" : "DELETE",
5830 "name" : "delete",
5831 "parameters" : {
5832 "additionalProperties" : 0,
5833 "properties" : {
732d76e1
DM
5834 "id" : {
5835 "description" : "Unique ID",
5836 "maxLength" : 16,
5837 "pattern" : "[A-Za-z0-9]+",
5838 "type" : "string"
eff914dc
DM
5839 }
5840 }
5841 },
732d76e1
DM
5842 "permissions" : {
5843 "check" : [
5844 "admin"
5845 ]
5846 },
eff914dc
DM
5847 "protected" : 1,
5848 "proxyto" : "master",
5849 "returns" : {
5850 "type" : "null"
5851 }
5852 },
5853 "GET" : {
732d76e1 5854 "description" : "Read fetchmail user configuration.",
eff914dc
DM
5855 "method" : "GET",
5856 "name" : "read",
5857 "parameters" : {
5858 "additionalProperties" : 0,
5859 "properties" : {
732d76e1
DM
5860 "id" : {
5861 "description" : "Unique ID",
5862 "maxLength" : 16,
5863 "pattern" : "[A-Za-z0-9]+",
5864 "type" : "string"
eff914dc
DM
5865 }
5866 }
5867 },
732d76e1
DM
5868 "permissions" : {
5869 "check" : [
5870 "admin",
5871 "audit"
5872 ]
5873 },
5874 "protected" : 1,
eff914dc
DM
5875 "proxyto" : "master",
5876 "returns" : {
5877 "properties" : {
732d76e1
DM
5878 "enable" : {
5879 "default" : 0,
5880 "description" : "Flag to enable or disable polling.",
5881 "optional" : 1,
5882 "type" : "boolean"
5883 },
5884 "id" : {
5885 "description" : "Unique ID",
5886 "maxLength" : 16,
5887 "pattern" : "[A-Za-z0-9]+",
eff914dc
DM
5888 "type" : "string"
5889 },
732d76e1
DM
5890 "interval" : {
5891 "description" : "Only check this site every <interval> poll cycles. A poll cycle is 5 minutes.",
5892 "maximum" : 2016,
5893 "minimum" : 1,
5894 "optional" : 1,
5895 "type" : "integer"
5896 },
5897 "keep" : {
5898 "default" : 0,
5899 "description" : "Keep retrieved messages on the remote mailserver.",
5900 "optional" : 1,
5901 "type" : "boolean"
5902 },
5903 "pass" : {
5904 "description" : "The password used tfor server login.",
5905 "maxLength" : 64,
5906 "optional" : 1,
5907 "type" : "string"
5908 },
5909 "port" : {
5910 "description" : "Port number.",
5911 "maximum" : 65535,
5912 "minimum" : 1,
5913 "optional" : 1,
5914 "type" : "integer"
5915 },
5916 "protocol" : {
5917 "description" : "Specify the protocol to use when communicating with the remote mailserver",
5918 "enum" : [
5919 "pop3",
5920 "imap"
5921 ],
5922 "optional" : 1,
5923 "type" : "string"
5924 },
5925 "server" : {
5926 "description" : "Server address (IP or DNS name).",
5927 "format" : "address",
5928 "optional" : 1,
5929 "type" : "string"
5930 },
5931 "ssl" : {
5932 "default" : 0,
5933 "description" : "Use SSL.",
5934 "optional" : 1,
5935 "type" : "boolean"
5936 },
5937 "target" : {
5938 "description" : "The target email address (where to deliver fetched mails).",
5939 "maxLength" : 512,
5940 "minLength" : 3,
5941 "optional" : 1,
5942 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
5943 "type" : "string"
5944 },
5945 "user" : {
5946 "description" : "The user identification to be used when logging in to the server",
5947 "maxLength" : 64,
5948 "minLength" : 1,
5949 "optional" : 1,
eff914dc
DM
5950 "type" : "string"
5951 }
5952 },
5953 "type" : "object"
5954 }
5955 },
5956 "PUT" : {
732d76e1 5957 "description" : "Update fetchmail user configuration.",
eff914dc
DM
5958 "method" : "PUT",
5959 "name" : "write",
5960 "parameters" : {
5961 "additionalProperties" : 0,
5962 "properties" : {
732d76e1
DM
5963 "enable" : {
5964 "default" : 0,
5965 "description" : "Flag to enable or disable polling.",
5966 "optional" : 1,
5967 "type" : "boolean",
5968 "typetext" : "<boolean>"
5969 },
5970 "id" : {
5971 "description" : "Unique ID",
5972 "maxLength" : 16,
5973 "pattern" : "[A-Za-z0-9]+",
5974 "type" : "string"
5975 },
5976 "interval" : {
5977 "description" : "Only check this site every <interval> poll cycles. A poll cycle is 5 minutes.",
5978 "maximum" : 2016,
5979 "minimum" : 1,
5980 "optional" : 1,
5981 "type" : "integer",
5982 "typetext" : "<integer> (1 - 2016)"
5983 },
5984 "keep" : {
5985 "default" : 0,
5986 "description" : "Keep retrieved messages on the remote mailserver.",
5987 "optional" : 1,
5988 "type" : "boolean",
5989 "typetext" : "<boolean>"
5990 },
5991 "pass" : {
5992 "description" : "The password used tfor server login.",
5993 "maxLength" : 64,
5994 "optional" : 1,
eff914dc
DM
5995 "type" : "string",
5996 "typetext" : "<string>"
5997 },
732d76e1
DM
5998 "port" : {
5999 "description" : "Port number.",
6000 "maximum" : 65535,
6001 "minimum" : 1,
6002 "optional" : 1,
6003 "type" : "integer",
6004 "typetext" : "<integer> (1 - 65535)"
6005 },
6006 "protocol" : {
6007 "description" : "Specify the protocol to use when communicating with the remote mailserver",
6008 "enum" : [
6009 "pop3",
6010 "imap"
6011 ],
6012 "optional" : 1,
6013 "type" : "string"
6014 },
6015 "server" : {
6016 "description" : "Server address (IP or DNS name).",
6017 "format" : "address",
6018 "optional" : 1,
6019 "type" : "string",
6020 "typetext" : "<string>"
6021 },
6022 "ssl" : {
6023 "default" : 0,
6024 "description" : "Use SSL.",
6025 "optional" : 1,
6026 "type" : "boolean",
6027 "typetext" : "<boolean>"
6028 },
6029 "target" : {
6030 "description" : "The target email address (where to deliver fetched mails).",
6031 "maxLength" : 512,
6032 "minLength" : 3,
6033 "optional" : 1,
6034 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
6035 "type" : "string"
6036 },
6037 "user" : {
6038 "description" : "The user identification to be used when logging in to the server",
6039 "maxLength" : 64,
6040 "minLength" : 1,
6041 "optional" : 1,
eff914dc
DM
6042 "type" : "string",
6043 "typetext" : "<string>"
6044 }
6045 }
6046 },
732d76e1
DM
6047 "permissions" : {
6048 "check" : [
6049 "admin"
6050 ]
6051 },
eff914dc
DM
6052 "protected" : 1,
6053 "proxyto" : "master",
6054 "returns" : {
6055 "type" : "null"
6056 }
6057 }
6058 },
6059 "leaf" : 1,
732d76e1
DM
6060 "path" : "/config/fetchmail/{id}",
6061 "text" : "{id}"
eff914dc
DM
6062 }
6063 ],
6064 "info" : {
6065 "GET" : {
732d76e1 6066 "description" : "List fetchmail users.",
eff914dc
DM
6067 "method" : "GET",
6068 "name" : "index",
6069 "parameters" : {
6070 "additionalProperties" : 0
6071 },
732d76e1
DM
6072 "permissions" : {
6073 "check" : [
6074 "admin",
6075 "audit"
6076 ]
6077 },
6078 "protected" : 1,
eff914dc
DM
6079 "proxyto" : "master",
6080 "returns" : {
6081 "items" : {
6082 "properties" : {
732d76e1
DM
6083 "enable" : {
6084 "default" : 0,
6085 "description" : "Flag to enable or disable polling.",
6086 "optional" : 1,
6087 "type" : "boolean"
6088 },
6089 "id" : {
6090 "description" : "Unique ID",
6091 "maxLength" : 16,
6092 "pattern" : "[A-Za-z0-9]+",
eff914dc
DM
6093 "type" : "string"
6094 },
732d76e1
DM
6095 "interval" : {
6096 "description" : "Only check this site every <interval> poll cycles. A poll cycle is 5 minutes.",
6097 "maximum" : 2016,
6098 "minimum" : 1,
6099 "optional" : 1,
6100 "type" : "integer"
6101 },
6102 "keep" : {
6103 "default" : 0,
6104 "description" : "Keep retrieved messages on the remote mailserver.",
6105 "optional" : 1,
6106 "type" : "boolean"
6107 },
6108 "pass" : {
6109 "description" : "The password used tfor server login.",
6110 "maxLength" : 64,
6111 "optional" : 1,
6112 "type" : "string"
6113 },
6114 "port" : {
6115 "description" : "Port number.",
6116 "maximum" : 65535,
6117 "minimum" : 1,
6118 "optional" : 1,
6119 "type" : "integer"
6120 },
6121 "protocol" : {
6122 "description" : "Specify the protocol to use when communicating with the remote mailserver",
6123 "enum" : [
6124 "pop3",
6125 "imap"
6126 ],
6127 "optional" : 1,
6128 "type" : "string"
6129 },
6130 "server" : {
6131 "description" : "Server address (IP or DNS name).",
6132 "format" : "address",
6133 "optional" : 1,
6134 "type" : "string"
6135 },
6136 "ssl" : {
6137 "default" : 0,
6138 "description" : "Use SSL.",
6139 "optional" : 1,
6140 "type" : "boolean"
6141 },
6142 "target" : {
6143 "description" : "The target email address (where to deliver fetched mails).",
6144 "maxLength" : 512,
6145 "minLength" : 3,
6146 "optional" : 1,
6147 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
6148 "type" : "string"
6149 },
6150 "user" : {
6151 "description" : "The user identification to be used when logging in to the server",
6152 "maxLength" : 64,
6153 "minLength" : 1,
6154 "optional" : 1,
eff914dc
DM
6155 "type" : "string"
6156 }
6157 },
6158 "type" : "object"
6159 },
6160 "links" : [
6161 {
732d76e1 6162 "href" : "{id}",
eff914dc
DM
6163 "rel" : "child"
6164 }
6165 ],
6166 "type" : "array"
6167 }
6168 },
6169 "POST" : {
732d76e1 6170 "description" : "Create fetchmail user configuration.",
eff914dc
DM
6171 "method" : "POST",
6172 "name" : "create",
6173 "parameters" : {
6174 "additionalProperties" : 0,
6175 "properties" : {
732d76e1
DM
6176 "enable" : {
6177 "default" : 0,
6178 "description" : "Flag to enable or disable polling.",
6179 "optional" : 1,
6180 "type" : "boolean",
6181 "typetext" : "<boolean>"
6182 },
6183 "interval" : {
6184 "description" : "Only check this site every <interval> poll cycles. A poll cycle is 5 minutes.",
6185 "maximum" : 2016,
6186 "minimum" : 1,
6187 "optional" : 1,
6188 "type" : "integer",
6189 "typetext" : "<integer> (1 - 2016)"
6190 },
6191 "keep" : {
6192 "default" : 0,
6193 "description" : "Keep retrieved messages on the remote mailserver.",
eff914dc 6194 "optional" : 1,
732d76e1
DM
6195 "type" : "boolean",
6196 "typetext" : "<boolean>"
6197 },
6198 "pass" : {
6199 "description" : "The password used tfor server login.",
6200 "maxLength" : 64,
eff914dc
DM
6201 "type" : "string",
6202 "typetext" : "<string>"
6203 },
732d76e1
DM
6204 "port" : {
6205 "description" : "Port number.",
6206 "maximum" : 65535,
6207 "minimum" : 1,
6208 "optional" : 1,
6209 "type" : "integer",
6210 "typetext" : "<integer> (1 - 65535)"
6211 },
6212 "protocol" : {
6213 "description" : "Specify the protocol to use when communicating with the remote mailserver",
6214 "enum" : [
6215 "pop3",
6216 "imap"
6217 ],
6218 "type" : "string"
6219 },
6220 "server" : {
6221 "description" : "Server address (IP or DNS name).",
6222 "format" : "address",
6223 "type" : "string",
6224 "typetext" : "<string>"
6225 },
6226 "ssl" : {
6227 "default" : 0,
6228 "description" : "Use SSL.",
6229 "optional" : 1,
6230 "type" : "boolean",
6231 "typetext" : "<boolean>"
6232 },
6233 "target" : {
6234 "description" : "The target email address (where to deliver fetched mails).",
6235 "maxLength" : 512,
6236 "minLength" : 3,
6237 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
6238 "type" : "string"
6239 },
6240 "user" : {
6241 "description" : "The user identification to be used when logging in to the server",
6242 "maxLength" : 64,
6243 "minLength" : 1,
eff914dc
DM
6244 "type" : "string",
6245 "typetext" : "<string>"
6246 }
6247 }
6248 },
732d76e1
DM
6249 "permissions" : {
6250 "check" : [
6251 "admin"
6252 ]
6253 },
eff914dc
DM
6254 "protected" : 1,
6255 "proxyto" : "master",
6256 "returns" : {
732d76e1
DM
6257 "description" : "Unique ID",
6258 "maxLength" : 16,
6259 "pattern" : "[A-Za-z0-9]+",
6260 "type" : "string"
eff914dc
DM
6261 }
6262 }
6263 },
6264 "leaf" : 0,
732d76e1
DM
6265 "path" : "/config/fetchmail",
6266 "text" : "fetchmail"
eff914dc
DM
6267 },
6268 {
6269 "children" : [
6270 {
6271 "info" : {
6272 "DELETE" : {
6273 "description" : "Delete a transport map entry",
6274 "method" : "DELETE",
6275 "name" : "delete",
6276 "parameters" : {
6277 "additionalProperties" : 0,
6278 "properties" : {
6279 "domain" : {
6280 "description" : "Domain name.",
6281 "format" : "transport-domain",
6282 "type" : "string",
6283 "typetext" : "<string>"
6284 }
6285 }
6286 },
732d76e1
DM
6287 "permissions" : {
6288 "check" : [
6289 "admin"
6290 ]
6291 },
eff914dc
DM
6292 "protected" : 1,
6293 "proxyto" : "master",
6294 "returns" : {
6295 "type" : "null"
6296 }
6297 },
6298 "GET" : {
6299 "description" : "Read transport map entry.",
6300 "method" : "GET",
6301 "name" : "read",
6302 "parameters" : {
6303 "additionalProperties" : 0,
6304 "properties" : {
6305 "domain" : {
6306 "description" : "Domain name.",
6307 "format" : "transport-domain",
6308 "type" : "string",
6309 "typetext" : "<string>"
6310 }
6311 }
6312 },
732d76e1
DM
6313 "permissions" : {
6314 "check" : [
6315 "admin",
6316 "audit"
6317 ]
6318 },
eff914dc
DM
6319 "proxyto" : "master",
6320 "returns" : {
6321 "properties" : {
6322 "comment" : {
6323 "type" : "string"
6324 },
6325 "domain" : {
6326 "type" : "string"
410dc2c9 6327 },
eff914dc
DM
6328 "host" : {
6329 "type" : "string"
6330 },
6331 "port" : {
6332 "type" : "integer"
6333 },
6334 "use_mx" : {
6335 "type" : "boolean"
6336 }
6337 },
6338 "type" : "object"
6339 }
6340 },
6341 "PUT" : {
6342 "description" : "Update transport map entry.",
6343 "method" : "PUT",
6344 "name" : "write",
6345 "parameters" : {
6346 "additionalProperties" : 0,
6347 "properties" : {
6348 "comment" : {
6349 "description" : "Comment.",
410dc2c9
DM
6350 "optional" : 1,
6351 "type" : "string",
6352 "typetext" : "<string>"
6353 },
eff914dc
DM
6354 "domain" : {
6355 "description" : "Domain name.",
6356 "format" : "transport-domain",
410dc2c9
DM
6357 "type" : "string",
6358 "typetext" : "<string>"
6359 },
eff914dc
DM
6360 "host" : {
6361 "description" : "Target host (name or IP address).",
6362 "format" : "address",
410dc2c9
DM
6363 "optional" : 1,
6364 "type" : "string",
6365 "typetext" : "<string>"
6366 },
410dc2c9 6367 "port" : {
eff914dc 6368 "description" : "SMTP port.",
410dc2c9
DM
6369 "maximum" : 65535,
6370 "minimum" : 1,
6371 "optional" : 1,
6372 "type" : "integer",
6373 "typetext" : "<integer> (1 - 65535)"
6374 },
eff914dc
DM
6375 "use_mx" : {
6376 "description" : "Enable MX lookups.",
410dc2c9 6377 "optional" : 1,
eff914dc
DM
6378 "type" : "boolean",
6379 "typetext" : "<boolean>"
410dc2c9 6380 }
eff914dc 6381 }
410dc2c9 6382 },
732d76e1
DM
6383 "permissions" : {
6384 "check" : [
6385 "admin"
6386 ]
6387 },
410dc2c9
DM
6388 "protected" : 1,
6389 "proxyto" : "master",
6390 "returns" : {
6391 "type" : "null"
6392 }
6393 }
6394 },
6395 "leaf" : 1,
eff914dc
DM
6396 "path" : "/config/transport/{domain}",
6397 "text" : "{domain}"
410dc2c9
DM
6398 }
6399 ],
6400 "info" : {
6401 "GET" : {
eff914dc 6402 "description" : "List transport map entries.",
410dc2c9
DM
6403 "method" : "GET",
6404 "name" : "index",
6405 "parameters" : {
6406 "additionalProperties" : 0
6407 },
732d76e1
DM
6408 "permissions" : {
6409 "check" : [
6410 "admin",
6411 "audit"
6412 ]
6413 },
410dc2c9
DM
6414 "proxyto" : "master",
6415 "returns" : {
6416 "items" : {
6417 "properties" : {
eff914dc 6418 "comment" : {
410dc2c9
DM
6419 "type" : "string"
6420 },
eff914dc 6421 "domain" : {
410dc2c9
DM
6422 "type" : "string"
6423 },
eff914dc 6424 "host" : {
410dc2c9 6425 "type" : "string"
eff914dc
DM
6426 },
6427 "port" : {
6428 "type" : "integer"
6429 },
6430 "use_mx" : {
6431 "type" : "boolean"
410dc2c9
DM
6432 }
6433 },
6434 "type" : "object"
6435 },
6436 "links" : [
6437 {
eff914dc 6438 "href" : "{id}",
410dc2c9
DM
6439 "rel" : "child"
6440 }
6441 ],
6442 "type" : "array"
6443 }
6444 },
6445 "POST" : {
eff914dc 6446 "description" : "Add transport map entry.",
410dc2c9
DM
6447 "method" : "POST",
6448 "name" : "create",
6449 "parameters" : {
6450 "additionalProperties" : 0,
6451 "properties" : {
eff914dc
DM
6452 "comment" : {
6453 "description" : "Comment.",
410dc2c9
DM
6454 "optional" : 1,
6455 "type" : "string",
6456 "typetext" : "<string>"
6457 },
eff914dc
DM
6458 "domain" : {
6459 "description" : "Domain name.",
6460 "format" : "transport-domain",
410dc2c9
DM
6461 "type" : "string",
6462 "typetext" : "<string>"
6463 },
eff914dc
DM
6464 "host" : {
6465 "description" : "Target host (name or IP address).",
6466 "format" : "address",
410dc2c9
DM
6467 "type" : "string",
6468 "typetext" : "<string>"
6469 },
410dc2c9 6470 "port" : {
eff914dc
DM
6471 "default" : 25,
6472 "description" : "SMTP port.",
410dc2c9
DM
6473 "maximum" : 65535,
6474 "minimum" : 1,
6475 "optional" : 1,
6476 "type" : "integer",
6477 "typetext" : "<integer> (1 - 65535)"
6478 },
eff914dc
DM
6479 "use_mx" : {
6480 "default" : 1,
6481 "description" : "Enable MX lookups.",
410dc2c9 6482 "optional" : 1,
eff914dc
DM
6483 "type" : "boolean",
6484 "typetext" : "<boolean>"
410dc2c9 6485 }
eff914dc 6486 }
410dc2c9 6487 },
732d76e1
DM
6488 "permissions" : {
6489 "check" : [
6490 "admin"
6491 ]
6492 },
410dc2c9
DM
6493 "protected" : 1,
6494 "proxyto" : "master",
6495 "returns" : {
6496 "type" : "null"
6497 }
6498 }
6499 },
6500 "leaf" : 0,
eff914dc
DM
6501 "path" : "/config/transport",
6502 "text" : "transport"
410dc2c9
DM
6503 },
6504 {
6505 "children" : [
6506 {
6507 "info" : {
6508 "DELETE" : {
eff914dc 6509 "description" : "Delete a truster network",
410dc2c9
DM
6510 "method" : "DELETE",
6511 "name" : "delete",
6512 "parameters" : {
6513 "additionalProperties" : 0,
6514 "properties" : {
eff914dc
DM
6515 "cidr" : {
6516 "description" : "IPv4 or IPv6 network in CIDR notation.",
6517 "format" : "CIDR",
6518 "type" : "string",
6519 "typetext" : "<string>"
6520 }
6521 }
6522 },
732d76e1
DM
6523 "permissions" : {
6524 "check" : [
6525 "admin"
6526 ]
6527 },
eff914dc
DM
6528 "protected" : 1,
6529 "proxyto" : "master",
6530 "returns" : {
6531 "type" : "null"
6532 }
6533 },
6534 "GET" : {
6535 "description" : "Read trusted network data (comment).",
6536 "method" : "GET",
6537 "name" : "read",
6538 "parameters" : {
6539 "additionalProperties" : 0,
6540 "properties" : {
6541 "cidr" : {
6542 "description" : "IPv4 or IPv6 network in CIDR notation.",
6543 "format" : "CIDR",
6544 "type" : "string",
6545 "typetext" : "<string>"
6546 }
6547 }
6548 },
732d76e1
DM
6549 "permissions" : {
6550 "check" : [
6551 "admin",
6552 "audit"
6553 ]
6554 },
eff914dc
DM
6555 "proxyto" : "master",
6556 "returns" : {
6557 "properties" : {
6558 "cidr" : {
6559 "type" : "string"
6560 },
6561 "comment" : {
6562 "type" : "string"
6563 }
6564 },
6565 "type" : "object"
6566 }
6567 },
6568 "PUT" : {
6569 "description" : "Update trusted data (comment).",
6570 "method" : "PUT",
6571 "name" : "write",
6572 "parameters" : {
6573 "additionalProperties" : 0,
6574 "properties" : {
6575 "cidr" : {
6576 "description" : "IPv4 or IPv6 network in CIDR notation.",
6577 "type" : "string",
6578 "typetext" : "<string>"
6579 },
6580 "comment" : {
6581 "description" : "Comment.",
410dc2c9
DM
6582 "type" : "string",
6583 "typetext" : "<string>"
6584 }
6585 }
6586 },
732d76e1
DM
6587 "permissions" : {
6588 "check" : [
6589 "admin"
6590 ]
6591 },
410dc2c9
DM
6592 "protected" : 1,
6593 "proxyto" : "master",
6594 "returns" : {
6595 "type" : "null"
6596 }
6597 }
6598 },
6599 "leaf" : 1,
eff914dc
DM
6600 "path" : "/config/mynetworks/{cidr}",
6601 "text" : "{cidr}"
410dc2c9
DM
6602 }
6603 ],
6604 "info" : {
6605 "GET" : {
eff914dc 6606 "description" : "List of trusted networks from where SMTP clients are allowed to relay mail through Proxmox Mail Gateway.",
410dc2c9
DM
6607 "method" : "GET",
6608 "name" : "index",
6609 "parameters" : {
6610 "additionalProperties" : 0
6611 },
732d76e1
DM
6612 "permissions" : {
6613 "check" : [
6614 "admin",
6615 "audit"
6616 ]
6617 },
410dc2c9
DM
6618 "proxyto" : "master",
6619 "returns" : {
6620 "items" : {
6621 "properties" : {
eff914dc 6622 "cidr" : {
410dc2c9
DM
6623 "type" : "string"
6624 }
6625 },
6626 "type" : "object"
6627 },
6628 "links" : [
6629 {
eff914dc 6630 "href" : "{cide}",
410dc2c9
DM
6631 "rel" : "child"
6632 }
6633 ],
6634 "type" : "array"
6635 }
6636 },
6637 "POST" : {
eff914dc 6638 "description" : "Add a trusted network.",
410dc2c9
DM
6639 "method" : "POST",
6640 "name" : "create",
6641 "parameters" : {
6642 "additionalProperties" : 0,
6643 "properties" : {
eff914dc
DM
6644 "cidr" : {
6645 "description" : "IPv4 or IPv6 network in CIDR notation.",
6646 "format" : "CIDR",
6647 "type" : "string",
6648 "typetext" : "<string>"
6649 },
6650 "comment" : {
6651 "description" : "Comment.",
6652 "optional" : 1,
410dc2c9
DM
6653 "type" : "string",
6654 "typetext" : "<string>"
6655 }
6656 }
6657 },
732d76e1
DM
6658 "permissions" : {
6659 "check" : [
6660 "admin"
6661 ]
6662 },
410dc2c9
DM
6663 "protected" : 1,
6664 "proxyto" : "master",
6665 "returns" : {
6666 "type" : "null"
6667 }
6668 }
6669 },
6670 "leaf" : 0,
eff914dc
DM
6671 "path" : "/config/mynetworks",
6672 "text" : "mynetworks"
410dc2c9
DM
6673 },
6674 {
d7cd791b
DM
6675 "children" : [
6676 {
6677 "info" : {
6678 "GET" : {
6679 "description" : "Cluster node index.",
6680 "method" : "GET",
6681 "name" : "nodes",
6682 "parameters" : {
6683 "additionalProperties" : 0
6684 },
6685 "permissions" : {
6686 "check" : [
bb6e6e0d
DM
6687 "admin",
6688 "qmanager",
6689 "audit"
d7cd791b
DM
6690 ]
6691 },
6692 "returns" : {
6693 "items" : {
6694 "properties" : {
6695 "cid" : {
6696 "type" : "integer"
6697 },
6698 "fingerprint" : {
6699 "type" : "string"
6700 },
6701 "hostrsapubkey" : {
6702 "type" : "string"
6703 },
6704 "ip" : {
6705 "type" : "string"
6706 },
6707 "name" : {
6708 "type" : "string"
6709 },
6710 "rootrsapubkey" : {
6711 "type" : "string"
6712 },
6713 "type" : {
6714 "type" : "string"
6715 }
6716 },
6717 "type" : "object"
6718 },
d7cd791b
DM
6719 "type" : "array"
6720 }
6721 },
6722 "POST" : {
6723 "description" : "Add an node to the cluster config.",
6724 "method" : "POST",
6725 "name" : "add_node",
6726 "parameters" : {
6727 "additionalProperties" : 0,
6728 "properties" : {
6729 "fingerprint" : {
6730 "description" : "SSL certificate fingerprint.",
6731 "optional" : 0,
6732 "pattern" : "^(:?[A-Z0-9][A-Z0-9]:){31}[A-Z0-9][A-Z0-9]$",
6733 "type" : "string"
6734 },
6735 "hostrsapubkey" : {
6736 "description" : "Public SSH RSA key for the host.",
6737 "optional" : 0,
6738 "pattern" : "^[A-Za-z0-9\\.\\/\\+]{200,}$",
6739 "type" : "string"
6740 },
6741 "ip" : {
6742 "description" : "IP address.",
6743 "format" : "ip",
6744 "optional" : 0,
6745 "type" : "string",
6746 "typetext" : "<string>"
6747 },
6748 "maxcid" : {
6749 "description" : "Maximum used cluster node ID (used internally, do not modify).",
6750 "minimum" : 1,
6751 "optional" : 1,
6752 "type" : "integer",
6753 "typetext" : "<integer> (1 - N)"
6754 },
6755 "name" : {
6756 "description" : "Node name.",
6757 "format" : "pve-node",
6758 "optional" : 0,
6759 "type" : "string",
6760 "typetext" : "<string>"
6761 },
6762 "rootrsapubkey" : {
6763 "description" : "Public SSH RSA key for the root user.",
6764 "optional" : 0,
6765 "pattern" : "^[A-Za-z0-9\\.\\/\\+]{200,}$",
6766 "type" : "string"
6767 }
6768 },
6769 "type" : "object"
6770 },
6771 "protected" : 1,
6772 "proxyto" : "master",
6773 "returns" : {
6774 "description" : "Returns the resulting node list.",
6775 "items" : {
6776 "properties" : {
6777 "cid" : {
6778 "type" : "integer"
6779 }
6780 },
6781 "type" : "object"
6782 },
6783 "type" : "array"
6784 }
6785 }
6786 },
6787 "leaf" : 1,
6788 "path" : "/config/cluster/nodes",
6789 "text" : "nodes"
6790 },
6791 {
6792 "info" : {
6793 "GET" : {
6794 "description" : "Cluster node status.",
6795 "method" : "GET",
6796 "name" : "status",
6797 "parameters" : {
bb6e6e0d
DM
6798 "additionalProperties" : 0,
6799 "properties" : {
6800 "list_single_node" : {
6801 "default" : 0,
6802 "description" : "List local node if there is no cluster defined. Please note that RSA keys and fingerprint are not valid in that case.",
6803 "optional" : 1,
6804 "type" : "boolean",
6805 "typetext" : "<boolean>"
6806 }
6807 }
d7cd791b
DM
6808 },
6809 "permissions" : {
6810 "check" : [
bb6e6e0d
DM
6811 "admin",
6812 "qmanager",
6813 "audit"
d7cd791b
DM
6814 ]
6815 },
6816 "returns" : {
6817 "items" : {
6818 "properties" : {
6819 "cid" : {
6820 "type" : "integer"
6821 },
6822 "fingerprint" : {
6823 "type" : "string"
6824 },
6825 "hostrsapubkey" : {
6826 "type" : "string"
6827 },
6828 "ip" : {
6829 "type" : "string"
6830 },
6831 "name" : {
6832 "type" : "string"
6833 },
6834 "rootrsapubkey" : {
6835 "type" : "string"
6836 },
6837 "type" : {
6838 "type" : "string"
6839 }
6840 },
6841 "type" : "object"
6842 },
6843 "links" : [
6844 {
6845 "href" : "{cid}",
6846 "rel" : "child"
6847 }
6848 ],
6849 "type" : "array"
6850 }
6851 }
6852 },
6853 "leaf" : 1,
6854 "path" : "/config/cluster/status",
6855 "text" : "status"
6856 },
6857 {
6858 "info" : {
6859 "POST" : {
6860 "description" : "Create initial cluster config with current node as master.",
6861 "method" : "POST",
6862 "name" : "create",
6863 "parameters" : {
6864 "additionalProperties" : 0
6865 },
6866 "protected" : 1,
6867 "returns" : {
6868 "type" : "string"
6869 }
6870 }
6871 },
6872 "leaf" : 1,
6873 "path" : "/config/cluster/create",
6874 "text" : "create"
6875 },
6876 {
6877 "info" : {
6878 "POST" : {
6879 "description" : "Join local node to an existing cluster.",
6880 "method" : "POST",
6881 "name" : "join",
6882 "parameters" : {
6883 "additionalProperties" : 0,
6884 "properties" : {
6885 "fingerprint" : {
6886 "description" : "SSL certificate fingerprint.",
6887 "pattern" : "^(:?[A-Z0-9][A-Z0-9]:){31}[A-Z0-9][A-Z0-9]$",
6888 "type" : "string"
6889 },
6890 "master_ip" : {
6891 "description" : "IP address.",
6892 "format" : "ip",
6893 "type" : "string",
6894 "typetext" : "<string>"
6895 },
6896 "password" : {
6897 "description" : "Superuser password.",
6898 "maxLength" : 128,
6899 "type" : "string",
6900 "typetext" : "<string>"
6901 }
6902 }
6903 },
6904 "protected" : 1,
6905 "returns" : {
6906 "type" : "string"
6907 }
6908 }
6909 },
6910 "leaf" : 1,
6911 "path" : "/config/cluster/join",
6912 "text" : "join"
6913 }
6914 ],
410dc2c9
DM
6915 "info" : {
6916 "GET" : {
d7cd791b 6917 "description" : "Directory index.",
410dc2c9
DM
6918 "method" : "GET",
6919 "name" : "index",
6920 "parameters" : {
6921 "additionalProperties" : 0
6922 },
d7cd791b
DM
6923 "permissions" : {
6924 "user" : "all"
6925 },
410dc2c9
DM
6926 "returns" : {
6927 "items" : {
d7cd791b 6928 "properties" : {},
410dc2c9
DM
6929 "type" : "object"
6930 },
6931 "links" : [
6932 {
d7cd791b 6933 "href" : "{name}",
410dc2c9
DM
6934 "rel" : "child"
6935 }
6936 ],
6937 "type" : "array"
6938 }
6939 }
6940 },
d7cd791b 6941 "leaf" : 0,
410dc2c9
DM
6942 "path" : "/config/cluster",
6943 "text" : "cluster"
6944 },
9fda36b0
DM
6945 {
6946 "info" : {
6947 "GET" : {
6948 "description" : "Get Mime Types List",
6949 "method" : "GET",
6950 "name" : "index",
6951 "parameters" : {
6952 "additionalProperties" : 0
6953 },
6954 "returns" : {
6955 "items" : {
6956 "properties" : {
6957 "mimetype" : {
6958 "type" : "string"
6959 },
6960 "text" : {
6961 "type" : "string"
6962 }
6963 },
6964 "type" : "object"
6965 },
6966 "type" : "array"
6967 }
6968 }
6969 },
6970 "leaf" : 1,
6971 "path" : "/config/mimetypes",
6972 "text" : "mimetypes"
6973 },
410dc2c9
DM
6974 {
6975 "info" : {
6976 "GET" : {
6977 "description" : "Read admin configuration properties.",
6978 "method" : "GET",
6979 "name" : "read_admin_section",
6980 "parameters" : {
6981 "additionalProperties" : 0
6982 },
732d76e1
DM
6983 "permissions" : {
6984 "check" : [
6985 "admin",
6986 "audit"
6987 ]
6988 },
410dc2c9
DM
6989 "proxyto" : "master",
6990 "returns" : {
6991 "type" : "object"
6992 }
6993 },
6994 "PUT" : {
6995 "description" : "Update admin configuration properties.",
6996 "method" : "PUT",
6997 "name" : "update_admin_section",
6998 "parameters" : {
6999 "additionalProperties" : 0,
7000 "properties" : {
9fda36b0
DM
7001 "advfilter" : {
7002 "default" : 1,
7003 "description" : "Use advanced filters for statistic.",
7004 "optional" : 1,
7005 "type" : "boolean",
7006 "typetext" : "<boolean>"
7007 },
410dc2c9
DM
7008 "dailyreport" : {
7009 "default" : 1,
7010 "description" : "Send daily reports.",
7011 "optional" : 1,
7012 "type" : "boolean",
7013 "typetext" : "<boolean>"
7014 },
7015 "delete" : {
7016 "description" : "A list of settings you want to delete.",
7017 "format" : "pve-configid-list",
7018 "maxLength" : 4096,
7019 "optional" : 1,
7020 "type" : "string",
7021 "typetext" : "<string>"
7022 },
7023 "demo" : {
7024 "default" : 0,
7025 "description" : "Demo mode - do not start SMTP filter.",
7026 "optional" : 1,
7027 "type" : "boolean",
7028 "typetext" : "<boolean>"
7029 },
7030 "digest" : {
7031 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7032 "maxLength" : 40,
7033 "optional" : 1,
7034 "type" : "string",
7035 "typetext" : "<string>"
7036 },
eff914dc
DM
7037 "email" : {
7038 "default" : "admin@domain.tld",
7039 "description" : "Administrator E-Mail address.",
7040 "format" : "email",
7041 "optional" : 1,
7042 "type" : "string",
7043 "typetext" : "<string>"
7044 },
9fda36b0
DM
7045 "http_proxy" : {
7046 "description" : "Specify external http proxy which is used for downloads (example: 'http://username:password@host:port/')",
410dc2c9 7047 "optional" : 1,
9fda36b0
DM
7048 "pattern" : "http://.*",
7049 "type" : "string"
a55e94a6
DM
7050 },
7051 "statlifetime" : {
7052 "default" : 7,
7053 "description" : "User Statistics Lifetime (days)",
7054 "minimum" : 1,
7055 "optional" : 1,
7056 "type" : "integer",
7057 "typetext" : "<integer> (1 - N)"
410dc2c9
DM
7058 }
7059 },
7060 "type" : "object"
7061 },
732d76e1
DM
7062 "permissions" : {
7063 "check" : [
7064 "admin"
7065 ]
7066 },
410dc2c9
DM
7067 "protected" : 1,
7068 "proxyto" : "master",
7069 "returns" : {
7070 "type" : "null"
7071 }
7072 }
7073 },
7074 "leaf" : 1,
7075 "path" : "/config/admin",
7076 "text" : "admin"
7077 },
7078 {
7079 "info" : {
7080 "GET" : {
7081 "description" : "Read clamav configuration properties.",
7082 "method" : "GET",
7083 "name" : "read_clamav_section",
7084 "parameters" : {
7085 "additionalProperties" : 0
7086 },
732d76e1
DM
7087 "permissions" : {
7088 "check" : [
7089 "admin",
7090 "audit"
7091 ]
7092 },
410dc2c9
DM
7093 "proxyto" : "master",
7094 "returns" : {
7095 "type" : "object"
7096 }
7097 },
7098 "PUT" : {
7099 "description" : "Update clamav configuration properties.",
7100 "method" : "PUT",
7101 "name" : "update_clamav_section",
7102 "parameters" : {
7103 "additionalProperties" : 0,
7104 "properties" : {
7105 "archiveblockencrypted" : {
7106 "default" : 0,
7107 "description" : "Wether to block encrypted archives. Mark encrypted archives as viruses.",
7108 "optional" : 1,
7109 "type" : "boolean",
7110 "typetext" : "<boolean>"
7111 },
7112 "archivemaxfiles" : {
7113 "default" : 1000,
7114 "description" : "Number of files to be scanned within an archive, a document, or any other kind of container. Warning: disabling this limit or setting it too high may result in severe damage to the system.",
7115 "minimum" : 0,
7116 "optional" : 1,
7117 "type" : "integer",
7118 "typetext" : "<integer> (0 - N)"
7119 },
7120 "archivemaxrec" : {
7121 "default" : 5,
7122 "description" : "Nested archives are scanned recursively, e.g. if a ZIP archive contains a TAR file, all files within it will also be scanned. This options specifies how deeply the process should be continued. Warning: setting this limit too high may result in severe damage to the system.",
7123 "minimum" : 1,
7124 "optional" : 1,
7125 "type" : "integer",
7126 "typetext" : "<integer> (1 - N)"
7127 },
7128 "archivemaxsize" : {
7129 "default" : 25000000,
7130 "description" : "Files larger than this limit won't be scanned.",
7131 "minimum" : 1000000,
7132 "optional" : 1,
7133 "type" : "integer",
7134 "typetext" : "<integer> (1000000 - N)"
7135 },
7136 "dbmirror" : {
7137 "default" : "database.clamav.net",
7138 "description" : "ClamAV database mirror server.",
7139 "optional" : 1,
7140 "type" : "string",
7141 "typetext" : "<string>"
7142 },
7143 "delete" : {
7144 "description" : "A list of settings you want to delete.",
7145 "format" : "pve-configid-list",
7146 "maxLength" : 4096,
7147 "optional" : 1,
7148 "type" : "string",
7149 "typetext" : "<string>"
7150 },
7151 "digest" : {
7152 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7153 "maxLength" : 40,
7154 "optional" : 1,
7155 "type" : "string",
7156 "typetext" : "<string>"
7157 },
7158 "maxcccount" : {
7159 "default" : 0,
7160 "description" : "This option sets the lowest number of Credit Card or Social Security numbers found in a file to generate a detect.",
7161 "minimum" : 0,
7162 "optional" : 1,
7163 "type" : "integer",
7164 "typetext" : "<integer> (0 - N)"
7165 },
7166 "maxscansize" : {
7167 "default" : 100000000,
7168 "description" : "Sets the maximum amount of data to be scanned for each input file.",
7169 "minimum" : 1000000,
7170 "optional" : 1,
7171 "type" : "integer",
7172 "typetext" : "<integer> (1000000 - N)"
f245a28c
DM
7173 },
7174 "safebrowsing" : {
7175 "default" : 1,
7176 "description" : "Enables support for Google Safe Browsing.",
7177 "optional" : 1,
7178 "type" : "boolean",
7179 "typetext" : "<boolean>"
410dc2c9
DM
7180 }
7181 },
7182 "type" : "object"
7183 },
732d76e1
DM
7184 "permissions" : {
7185 "check" : [
7186 "admin"
7187 ]
7188 },
410dc2c9
DM
7189 "protected" : 1,
7190 "proxyto" : "master",
7191 "returns" : {
7192 "type" : "null"
7193 }
7194 }
7195 },
7196 "leaf" : 1,
7197 "path" : "/config/clamav",
7198 "text" : "clamav"
7199 },
7200 {
7201 "info" : {
7202 "GET" : {
7203 "description" : "Read mail configuration properties.",
7204 "method" : "GET",
7205 "name" : "read_mail_section",
7206 "parameters" : {
7207 "additionalProperties" : 0
7208 },
732d76e1
DM
7209 "permissions" : {
7210 "check" : [
7211 "admin",
7212 "audit"
7213 ]
7214 },
410dc2c9
DM
7215 "proxyto" : "master",
7216 "returns" : {
7217 "type" : "object"
7218 }
7219 },
7220 "PUT" : {
7221 "description" : "Update mail configuration properties.",
7222 "method" : "PUT",
7223 "name" : "update_mail_section",
7224 "parameters" : {
7225 "additionalProperties" : 0,
7226 "properties" : {
7227 "banner" : {
7228 "default" : "ESMTP Proxmox",
7229 "description" : "ESMTP banner.",
7230 "maxLength" : 1024,
7231 "optional" : 1,
7232 "type" : "string",
7233 "typetext" : "<string>"
7234 },
7235 "conn_count_limit" : {
7236 "default" : 50,
7237 "description" : "How many simultaneous connections any client is allowed to make to this service. To disable this feature, specify a limit of 0.",
7238 "minimum" : 0,
7239 "optional" : 1,
7240 "type" : "integer",
7241 "typetext" : "<integer> (0 - N)"
7242 },
7243 "conn_rate_limit" : {
7244 "default" : 0,
7245 "description" : "The maximal number of connection attempts any client is allowed to make to this service per minute. To disable this feature, specify a limit of 0.",
7246 "minimum" : 0,
7247 "optional" : 1,
7248 "type" : "integer",
7249 "typetext" : "<integer> (0 - N)"
7250 },
7251 "delete" : {
7252 "description" : "A list of settings you want to delete.",
7253 "format" : "pve-configid-list",
7254 "maxLength" : 4096,
7255 "optional" : 1,
7256 "type" : "string",
7257 "typetext" : "<string>"
7258 },
7259 "digest" : {
7260 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7261 "maxLength" : 40,
7262 "optional" : 1,
7263 "type" : "string",
7264 "typetext" : "<string>"
7265 },
7266 "dnsbl_sites" : {
7267 "description" : "Optional list of DNS white/blacklist domains (see postscreen_dnsbl_sites parameter).",
7268 "optional" : 1,
7269 "type" : "string",
7270 "typetext" : "<string>"
7271 },
7272 "dwarning" : {
7273 "default" : 4,
7274 "description" : "SMTP delay warning time (in hours).",
7275 "minimum" : 0,
7276 "optional" : 1,
7277 "type" : "integer",
7278 "typetext" : "<integer> (0 - N)"
7279 },
eff914dc
DM
7280 "ext_port" : {
7281 "default" : 26,
7282 "description" : "SMTP port number for incoming mail (untrusted). This must be a different number than 'int_port'.",
7283 "maximum" : 65535,
7284 "minimum" : 1,
7285 "optional" : 1,
7286 "type" : "integer",
7287 "typetext" : "<integer> (1 - 65535)"
7288 },
410dc2c9
DM
7289 "greylist" : {
7290 "default" : 1,
7291 "description" : "Use Greylisting.",
7292 "optional" : 1,
7293 "type" : "boolean",
7294 "typetext" : "<boolean>"
7295 },
7296 "helotests" : {
7297 "default" : 0,
7298 "description" : "Use SMTP HELO tests.",
7299 "optional" : 1,
7300 "type" : "boolean",
7301 "typetext" : "<boolean>"
7302 },
7303 "hide_received" : {
7304 "default" : 0,
7305 "description" : "Hide received header in outgoing mails.",
7306 "optional" : 1,
7307 "type" : "boolean",
7308 "typetext" : "<boolean>"
7309 },
eff914dc
DM
7310 "int_port" : {
7311 "default" : 25,
7312 "description" : "SMTP port number for outgoing mail (trusted).",
7313 "maximum" : 65535,
7314 "minimum" : 1,
7315 "optional" : 1,
7316 "type" : "integer",
7317 "typetext" : "<integer> (1 - 65535)"
7318 },
410dc2c9
DM
7319 "max_filters" : {
7320 "default" : 15,
7321 "description" : "Maximum number of pmg-smtp-filter processes.",
7322 "maximum" : 40,
7323 "minimum" : 3,
7324 "optional" : 1,
7325 "type" : "integer",
7326 "typetext" : "<integer> (3 - 40)"
7327 },
7328 "max_policy" : {
7329 "default" : 5,
7330 "description" : "Maximum number of pmgpolicy processes.",
7331 "maximum" : 10,
7332 "minimum" : 2,
7333 "optional" : 1,
7334 "type" : "integer",
7335 "typetext" : "<integer> (2 - 10)"
7336 },
7337 "max_smtpd_in" : {
7338 "default" : 99,
7339 "description" : "Maximum number of SMTP daemon processes (in).",
7340 "maximum" : 100,
7341 "minimum" : 3,
7342 "optional" : 1,
7343 "type" : "integer",
7344 "typetext" : "<integer> (3 - 100)"
7345 },
7346 "max_smtpd_out" : {
7347 "default" : 99,
7348 "description" : "Maximum number of SMTP daemon processes (out).",
7349 "maximum" : 100,
7350 "minimum" : 3,
7351 "optional" : 1,
7352 "type" : "integer",
7353 "typetext" : "<integer> (3 - 100)"
7354 },
7355 "maxsize" : {
7356 "default" : 10485760,
7357 "description" : "Maximum email size. Larger mails are rejected.",
7358 "minimum" : 1024,
7359 "optional" : 1,
7360 "type" : "integer",
7361 "typetext" : "<integer> (1024 - N)"
7362 },
7363 "message_rate_limit" : {
7364 "default" : 0,
7365 "description" : "The maximal number of message delivery requests that any client is allowed to make to this service per minute.To disable this feature, specify a limit of 0.",
7366 "minimum" : 0,
7367 "optional" : 1,
7368 "type" : "integer",
7369 "typetext" : "<integer> (0 - N)"
7370 },
7371 "rejectunknown" : {
7372 "default" : 0,
7373 "description" : "Reject unknown clients.",
7374 "optional" : 1,
7375 "type" : "boolean",
7376 "typetext" : "<boolean>"
7377 },
7378 "rejectunknownsender" : {
7379 "default" : 0,
7380 "description" : "Reject unknown senders.",
7381 "optional" : 1,
7382 "type" : "boolean",
7383 "typetext" : "<boolean>"
7384 },
7385 "relay" : {
7386 "description" : "The default mail delivery transport (incoming mails).",
eff914dc 7387 "format" : "address",
410dc2c9
DM
7388 "optional" : 1,
7389 "type" : "string",
7390 "typetext" : "<string>"
7391 },
7392 "relaynomx" : {
7393 "default" : 0,
7394 "description" : "Disable MX lookups for default relay.",
7395 "optional" : 1,
7396 "type" : "boolean",
7397 "typetext" : "<boolean>"
7398 },
7399 "relayport" : {
7400 "default" : 25,
7401 "description" : "SMTP port number for relay host.",
7402 "maximum" : 65535,
7403 "minimum" : 1,
7404 "optional" : 1,
7405 "type" : "integer",
7406 "typetext" : "<integer> (1 - 65535)"
7407 },
eff914dc
DM
7408 "smarthost" : {
7409 "description" : "When set, all outgoing mails are deliverd to the specified smarthost.",
7410 "format" : "address",
7411 "optional" : 1,
7412 "type" : "string",
7413 "typetext" : "<string>"
7414 },
410dc2c9
DM
7415 "spf" : {
7416 "default" : 1,
7417 "description" : "Use Sender Policy Framework.",
7418 "optional" : 1,
7419 "type" : "boolean",
7420 "typetext" : "<boolean>"
7421 },
7422 "tls" : {
7423 "default" : 0,
eff914dc
DM
7424 "description" : "Enable TLS.",
7425 "optional" : 1,
7426 "type" : "boolean",
7427 "typetext" : "<boolean>"
7428 },
7429 "tlsheader" : {
7430 "default" : 0,
7431 "description" : "Add TLS received header.",
7432 "optional" : 1,
7433 "type" : "boolean",
7434 "typetext" : "<boolean>"
7435 },
7436 "tlslog" : {
7437 "default" : 0,
7438 "description" : "Enable TLS Logging.",
410dc2c9
DM
7439 "optional" : 1,
7440 "type" : "boolean",
7441 "typetext" : "<boolean>"
7442 },
7443 "use_rbl" : {
7444 "default" : 1,
7445 "description" : "Use Realtime Blacklists.",
7446 "optional" : 1,
7447 "type" : "boolean",
7448 "typetext" : "<boolean>"
7449 },
7450 "verifyreceivers" : {
eff914dc
DM
7451 "description" : "Enable receiver verification. The value spefifies the numerical reply code when the Postfix SMTP server rejects a recipient address.",
7452 "enum" : [
7453 "450",
7454 "550"
7455 ],
410dc2c9 7456 "optional" : 1,
eff914dc 7457 "type" : "string"
410dc2c9
DM
7458 }
7459 },
7460 "type" : "object"
7461 },
732d76e1
DM
7462 "permissions" : {
7463 "check" : [
7464 "admin"
7465 ]
7466 },
410dc2c9
DM
7467 "protected" : 1,
7468 "proxyto" : "master",
7469 "returns" : {
7470 "type" : "null"
7471 }
7472 }
7473 },
7474 "leaf" : 1,
7475 "path" : "/config/mail",
7476 "text" : "mail"
7477 },
7478 {
7479 "info" : {
7480 "GET" : {
7481 "description" : "Read spam configuration properties.",
7482 "method" : "GET",
7483 "name" : "read_spam_section",
7484 "parameters" : {
7485 "additionalProperties" : 0
7486 },
732d76e1
DM
7487 "permissions" : {
7488 "check" : [
7489 "admin",
7490 "audit"
7491 ]
7492 },
410dc2c9
DM
7493 "proxyto" : "master",
7494 "returns" : {
7495 "type" : "object"
7496 }
7497 },
7498 "PUT" : {
7499 "description" : "Update spam configuration properties.",
7500 "method" : "PUT",
7501 "name" : "update_spam_section",
7502 "parameters" : {
7503 "additionalProperties" : 0,
7504 "properties" : {
7505 "bounce_score" : {
7506 "default" : 0,
7507 "description" : "Additional score for bounce mails.",
7508 "maximum" : 1000,
7509 "minimum" : 0,
7510 "optional" : 1,
7511 "type" : "integer",
7512 "typetext" : "<integer> (0 - 1000)"
7513 },
7514 "delete" : {
7515 "description" : "A list of settings you want to delete.",
7516 "format" : "pve-configid-list",
7517 "maxLength" : 4096,
7518 "optional" : 1,
7519 "type" : "string",
7520 "typetext" : "<string>"
7521 },
7522 "digest" : {
7523 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7524 "maxLength" : 40,
7525 "optional" : 1,
7526 "type" : "string",
7527 "typetext" : "<string>"
7528 },
7529 "languages" : {
7530 "default" : "all",
7531 "description" : "This option is used to specify which languages are considered OK for incoming mail.",
7532 "optional" : 1,
7533 "pattern" : "(all|([a-z][a-z])+( ([a-z][a-z])+)*)",
7534 "type" : "string"
7535 },
7536 "maxspamsize" : {
7537 "default" : 204800,
7538 "description" : "Maximum size of spam messages in bytes.",
7539 "minimum" : 64,
7540 "optional" : 1,
7541 "type" : "integer",
7542 "typetext" : "<integer> (64 - N)"
7543 },
7544 "rbl_checks" : {
7545 "default" : 1,
7546 "description" : "Enable real time blacklists (RBL) checks.",
7547 "optional" : 1,
7548 "type" : "boolean",
7549 "typetext" : "<boolean>"
7550 },
7551 "use_awl" : {
7552 "default" : 1,
7553 "description" : "Use the Auto-Whitelist plugin.",
7554 "optional" : 1,
7555 "type" : "boolean",
7556 "typetext" : "<boolean>"
7557 },
7558 "use_bayes" : {
7559 "default" : 1,
7560 "description" : "Whether to use the naive-Bayesian-style classifier.",
7561 "optional" : 1,
7562 "type" : "boolean",
7563 "typetext" : "<boolean>"
7564 },
410dc2c9
DM
7565 "use_razor" : {
7566 "default" : 1,
7567 "description" : "Whether to use Razor2, if it is available.",
7568 "optional" : 1,
7569 "type" : "boolean",
7570 "typetext" : "<boolean>"
7571 },
7572 "wl_bounce_relays" : {
7573 "description" : "Whitelist legitimate bounce relays.",
7574 "optional" : 1,
7575 "type" : "string",
7576 "typetext" : "<string>"
7577 }
7578 },
7579 "type" : "object"
7580 },
732d76e1
DM
7581 "permissions" : {
7582 "check" : [
7583 "admin"
7584 ]
7585 },
410dc2c9
DM
7586 "protected" : 1,
7587 "proxyto" : "master",
7588 "returns" : {
7589 "type" : "null"
7590 }
7591 }
7592 },
7593 "leaf" : 1,
7594 "path" : "/config/spam",
7595 "text" : "spam"
f245a28c
DM
7596 },
7597 {
7598 "info" : {
7599 "GET" : {
7600 "description" : "Read spamquar configuration properties.",
7601 "method" : "GET",
7602 "name" : "read_spamquar_section",
7603 "parameters" : {
7604 "additionalProperties" : 0
7605 },
732d76e1
DM
7606 "permissions" : {
7607 "check" : [
7608 "admin",
7609 "audit"
7610 ]
7611 },
f245a28c
DM
7612 "proxyto" : "master",
7613 "returns" : {
7614 "type" : "object"
7615 }
7616 },
7617 "PUT" : {
7618 "description" : "Update spamquar configuration properties.",
7619 "method" : "PUT",
7620 "name" : "update_spamquar_section",
7621 "parameters" : {
7622 "additionalProperties" : 0,
7623 "properties" : {
7624 "allowhrefs" : {
7625 "default" : 1,
7626 "description" : "Allow to view hyperlinks.",
7627 "optional" : 1,
7628 "type" : "boolean",
7629 "typetext" : "<boolean>"
7630 },
7631 "authmode" : {
7632 "default" : "ticket",
7633 "description" : "Authentication mode to access the quarantine interface. Mode 'ticket' allows login using tickets sent with the daily spam report. Mode 'ldap' requires to login using an LDAP account. Finally, mode 'ldapticket' allows both ways.",
7634 "enum" : [
7635 "ticket",
7636 "ldap",
7637 "ldapticket"
7638 ],
7639 "optional" : 1,
7640 "type" : "string"
7641 },
7642 "delete" : {
7643 "description" : "A list of settings you want to delete.",
7644 "format" : "pve-configid-list",
7645 "maxLength" : 4096,
7646 "optional" : 1,
7647 "type" : "string",
7648 "typetext" : "<string>"
7649 },
7650 "digest" : {
7651 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7652 "maxLength" : 40,
7653 "optional" : 1,
7654 "type" : "string",
7655 "typetext" : "<string>"
7656 },
7657 "hostname" : {
7658 "description" : "Quarantine Host. Usefule if you run a Cluster and want users to connect to a specific host.",
7659 "format" : "address",
7660 "optional" : 1,
7661 "type" : "string",
7662 "typetext" : "<string>"
7663 },
7664 "lifetime" : {
7665 "default" : 7,
7666 "description" : "Quarantine life time (days)",
7667 "minimum" : 1,
7668 "optional" : 1,
7669 "type" : "integer",
7670 "typetext" : "<integer> (1 - N)"
7671 },
7672 "mailfrom" : {
7673 "description" : "Text for 'From' header in daily spam report mails.",
7674 "optional" : 1,
7675 "type" : "string",
7676 "typetext" : "<string>"
7677 },
7678 "reportstyle" : {
7679 "default" : "verbose",
7680 "description" : "Spam report style.",
7681 "enum" : [
7682 "none",
7683 "short",
7684 "verbose",
f245a28c
DM
7685 "custom"
7686 ],
7687 "optional" : 1,
7688 "type" : "string"
7689 },
a55e94a6
DM
7690 "viewimages" : {
7691 "default" : 1,
7692 "description" : "Allow to view images.",
7693 "optional" : 1,
7694 "type" : "boolean",
7695 "typetext" : "<boolean>"
7696 }
7697 },
7698 "type" : "object"
7699 },
732d76e1
DM
7700 "permissions" : {
7701 "check" : [
7702 "admin"
7703 ]
7704 },
a55e94a6
DM
7705 "protected" : 1,
7706 "proxyto" : "master",
7707 "returns" : {
7708 "type" : "null"
7709 }
7710 }
7711 },
7712 "leaf" : 1,
7713 "path" : "/config/spamquar",
7714 "text" : "spamquar"
7715 },
7716 {
7717 "info" : {
7718 "GET" : {
7719 "description" : "Read virusquar configuration properties.",
7720 "method" : "GET",
7721 "name" : "read_virusquar_section",
7722 "parameters" : {
7723 "additionalProperties" : 0
7724 },
732d76e1
DM
7725 "permissions" : {
7726 "check" : [
7727 "admin",
7728 "audit"
7729 ]
7730 },
a55e94a6
DM
7731 "proxyto" : "master",
7732 "returns" : {
7733 "type" : "object"
7734 }
7735 },
7736 "PUT" : {
7737 "description" : "Update virusquar configuration properties.",
7738 "method" : "PUT",
7739 "name" : "update_virusquar_section",
7740 "parameters" : {
7741 "additionalProperties" : 0,
7742 "properties" : {
7743 "allowhrefs" : {
7744 "default" : 1,
7745 "description" : "Allow to view hyperlinks.",
7746 "optional" : 1,
7747 "type" : "boolean",
7748 "typetext" : "<boolean>"
7749 },
7750 "delete" : {
7751 "description" : "A list of settings you want to delete.",
7752 "format" : "pve-configid-list",
7753 "maxLength" : 4096,
7754 "optional" : 1,
7755 "type" : "string",
7756 "typetext" : "<string>"
7757 },
7758 "digest" : {
7759 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7760 "maxLength" : 40,
7761 "optional" : 1,
7762 "type" : "string",
7763 "typetext" : "<string>"
7764 },
7765 "lifetime" : {
7766 "default" : 7,
7767 "description" : "Quarantine life time (days)",
7768 "minimum" : 1,
7769 "optional" : 1,
7770 "type" : "integer",
7771 "typetext" : "<integer> (1 - N)"
7772 },
7773 "viewimages" : {
7774 "default" : 1,
7775 "description" : "Allow to view images.",
7776 "optional" : 1,
7777 "type" : "boolean",
7778 "typetext" : "<boolean>"
7779 }
7780 },
7781 "type" : "object"
7782 },
732d76e1
DM
7783 "permissions" : {
7784 "check" : [
7785 "admin"
7786 ]
7787 },
a55e94a6
DM
7788 "protected" : 1,
7789 "proxyto" : "master",
7790 "returns" : {
7791 "type" : "null"
7792 }
7793 }
7794 },
7795 "leaf" : 1,
7796 "path" : "/config/virusquar",
7797 "text" : "virusquar"
9fda36b0
DM
7798 },
7799 {
7800 "info" : {
7801 "POST" : {
7802 "description" : "Test Regex",
7803 "method" : "POST",
7804 "name" : "regextest",
7805 "parameters" : {
7806 "additionalProperties" : 0,
7807 "properties" : {
7808 "regex" : {
7809 "description" : "The Regex to test",
7810 "maxLength" : 1024,
7811 "type" : "string",
7812 "typetext" : "<string>"
7813 },
7814 "text" : {
7815 "description" : "The String to test",
7816 "maxLength" : 1024,
7817 "type" : "string",
7818 "typetext" : "<string>"
7819 }
7820 }
7821 },
7822 "permissions" : {
7823 "check" : [
7824 "admin",
7825 "qmanager",
7826 "audit"
7827 ]
7828 },
7829 "protected" : 0,
7830 "returns" : {
7831 "type" : "number"
7832 }
7833 }
7834 },
7835 "leaf" : 1,
7836 "path" : "/config/regextest",
7837 "text" : "regextest"
a55e94a6
DM
7838 }
7839 ],
7840 "info" : {
7841 "GET" : {
7842 "description" : "Directory index.",
7843 "method" : "GET",
7844 "name" : "index",
7845 "parameters" : {
7846 "additionalProperties" : 0
7847 },
7848 "returns" : {
7849 "items" : {
7850 "properties" : {
7851 "section" : {
7852 "type" : "string"
7853 }
7854 },
7855 "type" : "object"
7856 },
7857 "links" : [
7858 {
7859 "href" : "{section}",
7860 "rel" : "child"
7861 }
7862 ],
7863 "type" : "array"
7864 }
7865 }
7866 },
7867 "leaf" : 0,
7868 "path" : "/config",
7869 "text" : "config"
7870 },
7871 {
7872 "children" : [
7873 {
7874 "children" : [
7875 {
7876 "children" : [
7877 {
7878 "info" : {
7879 "GET" : {
7880 "description" : "Print Postfix queue domain and age distribution.",
7881 "method" : "GET",
7882 "name" : "qshape",
7883 "parameters" : {
7884 "additionalProperties" : 0,
7885 "properties" : {
7886 "node" : {
7887 "description" : "The cluster node name.",
7888 "format" : "pve-node",
7889 "type" : "string",
7890 "typetext" : "<string>"
7891 },
7892 "queue" : {
7893 "default" : "deferred",
7894 "description" : "Postfix queue name.",
7895 "enum" : [
7896 "deferred",
7897 "active",
7898 "incoming",
7899 "hold"
7900 ],
7901 "optional" : 1,
7902 "type" : "string"
7903 }
7904 }
7905 },
7906 "permissions" : {
7907 "check" : [
732d76e1
DM
7908 "admin",
7909 "audit"
a55e94a6
DM
7910 ]
7911 },
7912 "protected" : 1,
7913 "proxyto" : "node",
7914 "returns" : {
7915 "items" : {
7916 "properties" : {},
7917 "type" : "object"
7918 },
7919 "type" : "array"
7920 }
7921 }
7922 },
7923 "leaf" : 1,
7924 "path" : "/nodes/{node}/postfix/qshape",
7925 "text" : "qshape"
7926 },
7927 {
7928 "children" : [
7929 {
7930 "children" : [
7931 {
7932 "info" : {
7933 "DELETE" : {
7934 "description" : "Delete one message with the named queue ID.",
7935 "method" : "DELETE",
7936 "name" : "delete_queued_mail",
7937 "parameters" : {
7938 "additionalProperties" : 0,
7939 "properties" : {
7940 "node" : {
7941 "description" : "The cluster node name.",
7942 "format" : "pve-node",
7943 "type" : "string",
7944 "typetext" : "<string>"
7945 },
7946 "queue" : {
7947 "description" : "Postfix queue name.",
7948 "enum" : [
7949 "deferred",
7950 "active",
7951 "incoming",
7952 "hold"
7953 ],
7954 "type" : "string"
7955 },
7956 "queue_id" : {
7957 "description" : "The Message queue ID.",
7958 "maxLength" : 20,
7959 "minLength" : 8,
7960 "pattern" : "[a-zA-Z0-9]+",
7961 "type" : "string"
7962 }
7963 }
7964 },
7965 "permissions" : {
7966 "check" : [
7967 "admin"
7968 ]
7969 },
7970 "protected" : 1,
7971 "proxyto" : "node",
7972 "returns" : {
7973 "type" : "null"
7974 }
7975 },
7976 "GET" : {
7977 "description" : "Get the contents of a queued mail.",
7978 "method" : "GET",
7979 "name" : "read_queued_mail",
7980 "parameters" : {
7981 "additionalProperties" : 0,
7982 "properties" : {
7983 "body" : {
7984 "default" : 0,
7985 "description" : "Include body content.",
7986 "optional" : 1,
7987 "type" : "boolean",
7988 "typetext" : "<boolean>"
7989 },
7990 "header" : {
7991 "default" : 1,
7992 "description" : "Show message header content.",
7993 "optional" : 1,
7994 "type" : "boolean",
7995 "typetext" : "<boolean>"
7996 },
7997 "node" : {
7998 "description" : "The cluster node name.",
7999 "format" : "pve-node",
8000 "type" : "string",
8001 "typetext" : "<string>"
8002 },
8003 "queue" : {
8004 "description" : "Postfix queue name.",
8005 "enum" : [
8006 "deferred",
8007 "active",
8008 "incoming",
8009 "hold"
8010 ],
8011 "type" : "string"
8012 },
8013 "queue_id" : {
8014 "description" : "The Message queue ID.",
8015 "maxLength" : 20,
8016 "minLength" : 8,
8017 "pattern" : "[a-zA-Z0-9]+",
8018 "type" : "string"
8019 }
8020 }
8021 },
8022 "permissions" : {
8023 "check" : [
8024 "admin"
8025 ]
8026 },
8027 "protected" : 1,
8028 "proxyto" : "node",
8029 "returns" : {
8030 "type" : "string"
8031 }
8032 },
8033 "POST" : {
8034 "description" : "Schedule immediate delivery of deferred mail with the specified queue ID.",
8035 "method" : "POST",
8036 "name" : "flush_queued_mail",
8037 "parameters" : {
8038 "additionalProperties" : 0,
8039 "properties" : {
8040 "node" : {
8041 "description" : "The cluster node name.",
8042 "format" : "pve-node",
8043 "type" : "string",
8044 "typetext" : "<string>"
8045 },
8046 "queue" : {
8047 "description" : "Postfix queue name.",
8048 "enum" : [
8049 "deferred",
8050 "active",
8051 "incoming",
8052 "hold"
8053 ],
8054 "type" : "string"
8055 },
8056 "queue_id" : {
8057 "description" : "The Message queue ID.",
8058 "maxLength" : 20,
8059 "minLength" : 8,
8060 "pattern" : "[a-zA-Z0-9]+",
8061 "type" : "string"
8062 }
8063 }
8064 },
8065 "permissions" : {
8066 "check" : [
8067 "admin"
8068 ]
8069 },
8070 "protected" : 1,
8071 "proxyto" : "node",
8072 "returns" : {
8073 "type" : "null"
8074 }
8075 }
8076 },
8077 "leaf" : 1,
8078 "path" : "/nodes/{node}/postfix/queue/{queue}/{queue_id}",
8079 "text" : "{queue_id}"
8080 }
8081 ],
8082 "info" : {
8083 "DELETE" : {
8084 "description" : "Delete all mails in the queue.",
8085 "method" : "DELETE",
8086 "name" : "delete_queue",
8087 "parameters" : {
8088 "additionalProperties" : 0,
8089 "properties" : {
8090 "node" : {
8091 "description" : "The cluster node name.",
8092 "format" : "pve-node",
8093 "type" : "string",
8094 "typetext" : "<string>"
8095 },
8096 "queue" : {
8097 "description" : "Postfix queue name.",
8098 "enum" : [
8099 "deferred",
8100 "active",
8101 "incoming",
8102 "hold"
8103 ],
8104 "type" : "string"
8105 }
8106 }
8107 },
8108 "permissions" : {
8109 "check" : [
8110 "admin"
8111 ]
8112 },
8113 "protected" : 1,
8114 "proxyto" : "node",
8115 "returns" : {
8116 "type" : "null"
8117 }
8118 },
8119 "GET" : {
8120 "description" : "List the mail queue for a specific domain.",
8121 "method" : "GET",
8122 "name" : "mailq",
8123 "parameters" : {
8124 "additionalProperties" : 0,
8125 "properties" : {
8126 "filter" : {
8127 "description" : "Filter string.",
8128 "maxLength" : 64,
8129 "optional" : 1,
8130 "type" : "string",
8131 "typetext" : "<string>"
8132 },
8133 "limit" : {
8134 "minimum" : 0,
8135 "optional" : 1,
8136 "type" : "integer",
8137 "typetext" : "<integer> (0 - N)"
8138 },
8139 "node" : {
8140 "description" : "The cluster node name.",
8141 "format" : "pve-node",
8142 "type" : "string",
8143 "typetext" : "<string>"
8144 },
8145 "queue" : {
8146 "description" : "Postfix queue name.",
8147 "enum" : [
8148 "deferred",
8149 "active",
8150 "incoming",
8151 "hold"
8152 ],
8153 "type" : "string"
8154 },
8155 "start" : {
8156 "minimum" : 0,
8157 "optional" : 1,
8158 "type" : "integer",
8159 "typetext" : "<integer> (0 - N)"
8160 }
8161 }
8162 },
8163 "permissions" : {
8164 "check" : [
732d76e1
DM
8165 "admin",
8166 "audit"
a55e94a6
DM
8167 ]
8168 },
8169 "protected" : 1,
8170 "proxyto" : "node",
8171 "returns" : {
8172 "items" : {
8173 "properties" : {},
8174 "type" : "object"
8175 },
8176 "links" : [
8177 {
8178 "href" : "{queue_id}",
8179 "rel" : "child"
8180 }
8181 ],
8182 "type" : "array"
8183 }
8184 }
8185 },
8186 "leaf" : 0,
8187 "path" : "/nodes/{node}/postfix/queue/{queue}",
8188 "text" : "{queue}"
8189 }
8190 ],
8191 "info" : {
9fda36b0
DM
8192 "DELETE" : {
8193 "description" : "Delete all mails in all posfix queues.",
8194 "method" : "DELETE",
8195 "name" : "delete_all_queues",
8196 "parameters" : {
8197 "additionalProperties" : 0,
8198 "properties" : {
8199 "node" : {
8200 "description" : "The cluster node name.",
8201 "format" : "pve-node",
8202 "type" : "string",
8203 "typetext" : "<string>"
8204 }
8205 }
8206 },
8207 "permissions" : {
8208 "check" : [
8209 "admin"
8210 ]
8211 },
8212 "protected" : 1,
8213 "proxyto" : "node",
8214 "returns" : {
8215 "type" : "null"
8216 }
8217 },
a55e94a6
DM
8218 "GET" : {
8219 "description" : "Directory index.",
8220 "method" : "GET",
8221 "name" : "queue_index",
8222 "parameters" : {
8223 "additionalProperties" : 0,
8224 "properties" : {
8225 "node" : {
8226 "description" : "The cluster node name.",
8227 "format" : "pve-node",
8228 "type" : "string",
8229 "typetext" : "<string>"
8230 }
8231 }
8232 },
8233 "permissions" : {
8234 "user" : "all"
8235 },
8236 "returns" : {
8237 "items" : {
8238 "properties" : {},
8239 "type" : "object"
8240 },
8241 "links" : [
8242 {
8243 "href" : "{name}",
8244 "rel" : "child"
8245 }
8246 ],
8247 "type" : "array"
8248 }
8249 }
8250 },
8251 "leaf" : 0,
8252 "path" : "/nodes/{node}/postfix/queue",
8253 "text" : "queue"
f245a28c 8254 },
a55e94a6
DM
8255 {
8256 "info" : {
8257 "POST" : {
8258 "description" : "Flush the queue: attempt to deliver all queued mail.",
8259 "method" : "POST",
8260 "name" : "flush_queues",
8261 "parameters" : {
8262 "additionalProperties" : 0,
8263 "properties" : {
8264 "node" : {
8265 "description" : "The cluster node name.",
8266 "format" : "pve-node",
8267 "type" : "string",
8268 "typetext" : "<string>"
8269 }
8270 }
8271 },
8272 "permissions" : {
8273 "check" : [
8274 "admin"
8275 ]
8276 },
8277 "protected" : 1,
8278 "proxyto" : "node",
8279 "returns" : {
8280 "type" : "null"
8281 }
8282 }
f245a28c 8283 },
a55e94a6
DM
8284 "leaf" : 1,
8285 "path" : "/nodes/{node}/postfix/flush_queues",
8286 "text" : "flush_queues"
8287 },
8288 {
8289 "info" : {
8290 "POST" : {
8291 "description" : "Discards the address verification cache.",
8292 "method" : "POST",
8293 "name" : "discard_verify_cache",
8294 "parameters" : {
8295 "additionalProperties" : 0,
8296 "properties" : {
8297 "node" : {
8298 "description" : "The cluster node name.",
8299 "format" : "pve-node",
8300 "type" : "string",
8301 "typetext" : "<string>"
8302 }
8303 }
8304 },
8305 "permissions" : {
8306 "check" : [
8307 "admin"
8308 ]
8309 },
8310 "protected" : 1,
8311 "proxyto" : "node",
8312 "returns" : {
8313 "type" : "null"
8314 }
8315 }
f245a28c 8316 },
a55e94a6
DM
8317 "leaf" : 1,
8318 "path" : "/nodes/{node}/postfix/discard_verify_cache",
8319 "text" : "discard_verify_cache"
8320 }
8321 ],
8322 "info" : {
8323 "GET" : {
8324 "description" : "Directory index.",
8325 "method" : "GET",
8326 "name" : "index",
8327 "parameters" : {
8328 "additionalProperties" : 0,
8329 "properties" : {
8330 "node" : {
8331 "description" : "The cluster node name.",
8332 "format" : "pve-node",
8333 "type" : "string",
8334 "typetext" : "<string>"
8335 }
8336 }
f245a28c 8337 },
a55e94a6
DM
8338 "permissions" : {
8339 "user" : "all"
f245a28c 8340 },
a55e94a6
DM
8341 "returns" : {
8342 "items" : {
8343 "properties" : {},
8344 "type" : "object"
8345 },
8346 "links" : [
8347 {
8348 "href" : "{name}",
8349 "rel" : "child"
8350 }
8351 ],
8352 "type" : "array"
f245a28c 8353 }
410dc2c9
DM
8354 }
8355 },
a55e94a6
DM
8356 "leaf" : 0,
8357 "path" : "/nodes/{node}/postfix",
8358 "text" : "postfix"
410dc2c9 8359 },
f245a28c
DM
8360 {
8361 "children" : [
8362 {
8363 "info" : {
8364 "GET" : {
8365 "description" : "ClamAV virus database status.",
8366 "method" : "GET",
8367 "name" : "database_status",
8368 "parameters" : {
8369 "additionalProperties" : 0,
8370 "properties" : {
8371 "node" : {
8372 "description" : "The cluster node name.",
8373 "format" : "pve-node",
8374 "type" : "string",
8375 "typetext" : "<string>"
8376 }
8377 }
8378 },
bb6e6e0d
DM
8379 "permissions" : {
8380 "check" : [
8381 "admin",
8382 "audit"
8383 ]
8384 },
8385 "proxyto" : "node",
f245a28c
DM
8386 "returns" : {
8387 "items" : {
8388 "properties" : {
8389 "build_time" : {
8390 "type" : "string"
8391 },
8392 "nsigs" : {
8393 "type" : "integer"
8394 },
8395 "type" : {
8396 "type" : "string"
8397 },
8398 "version" : {
8399 "optional" : 1,
8400 "type" : "string"
8401 }
8402 },
8403 "type" : "object"
8404 },
8405 "type" : "array"
8406 }
8407 },
8408 "POST" : {
8409 "description" : "Update ClamAV virus databases.",
8410 "method" : "POST",
8411 "name" : "update_database",
8412 "parameters" : {
8413 "additionalProperties" : 0,
8414 "properties" : {
8415 "node" : {
8416 "description" : "The cluster node name.",
8417 "format" : "pve-node",
8418 "type" : "string",
8419 "typetext" : "<string>"
8420 }
8421 }
8422 },
bb6e6e0d
DM
8423 "permissions" : {
8424 "check" : [
8425 "admin"
8426 ]
8427 },
f245a28c 8428 "protected" : 1,
bb6e6e0d 8429 "proxyto" : "node",
f245a28c
DM
8430 "returns" : {
8431 "type" : "string"
8432 }
8433 }
8434 },
8435 "leaf" : 1,
8436 "path" : "/nodes/{node}/clamav/database",
8437 "text" : "database"
8438 }
8439 ],
8440 "info" : {
8441 "GET" : {
8442 "description" : "Directory index.",
8443 "method" : "GET",
8444 "name" : "index",
8445 "parameters" : {
8446 "additionalProperties" : 0,
8447 "properties" : {
8448 "node" : {
8449 "description" : "The cluster node name.",
8450 "format" : "pve-node",
8451 "type" : "string",
8452 "typetext" : "<string>"
8453 }
8454 }
8455 },
bb6e6e0d
DM
8456 "permissions" : {
8457 "check" : [
8458 "admin",
8459 "audit"
8460 ]
8461 },
f245a28c
DM
8462 "returns" : {
8463 "items" : {
8464 "properties" : {},
8465 "type" : "object"
8466 },
8467 "links" : [
8468 {
8469 "href" : "{subdir}",
8470 "rel" : "child"
8471 }
8472 ],
8473 "type" : "array"
8474 }
8475 }
8476 },
8477 "leaf" : 0,
8478 "path" : "/nodes/{node}/clamav",
8479 "text" : "clamav"
8480 },
bb6e6e0d
DM
8481 {
8482 "children" : [
8483 {
8484 "info" : {
8485 "GET" : {
8486 "description" : "SpamAssassin rules status.",
8487 "method" : "GET",
8488 "name" : "rules_status",
8489 "parameters" : {
8490 "additionalProperties" : 0,
8491 "properties" : {
8492 "node" : {
8493 "description" : "The cluster node name.",
8494 "format" : "pve-node",
8495 "type" : "string",
8496 "typetext" : "<string>"
8497 }
8498 }
8499 },
8500 "permissions" : {
8501 "check" : [
8502 "admin",
8503 "audit"
8504 ]
8505 },
8506 "proxyto" : "node",
8507 "returns" : {
8508 "items" : {
8509 "properties" : {
8510 "channel" : {
8511 "type" : "string"
8512 },
8513 "last_updated" : {
8514 "optional" : 1,
8515 "type" : "integer"
8516 },
8517 "update_avail" : {
8518 "type" : "boolean"
8519 },
8520 "update_version" : {
8521 "optional" : 1,
8522 "type" : "string"
8523 },
8524 "version" : {
8525 "optional" : 1,
8526 "type" : "string"
8527 }
8528 },
8529 "type" : "object"
8530 },
8531 "type" : "array"
8532 }
8533 },
8534 "POST" : {
8535 "description" : "Update SpamAssassin rules.",
8536 "method" : "POST",
8537 "name" : "update_rules",
8538 "parameters" : {
8539 "additionalProperties" : 0,
8540 "properties" : {
8541 "node" : {
8542 "description" : "The cluster node name.",
8543 "format" : "pve-node",
8544 "type" : "string",
8545 "typetext" : "<string>"
8546 }
8547 }
8548 },
8549 "permissions" : {
8550 "check" : [
8551 "admin"
8552 ]
8553 },
8554 "protected" : 1,
8555 "proxyto" : "node",
8556 "returns" : {
8557 "type" : "string"
8558 }
8559 }
8560 },
8561 "leaf" : 1,
8562 "path" : "/nodes/{node}/spamassassin/rules",
8563 "text" : "rules"
8564 }
8565 ],
8566 "info" : {
8567 "GET" : {
8568 "description" : "Directory index.",
8569 "method" : "GET",
8570 "name" : "index",
8571 "parameters" : {
8572 "additionalProperties" : 0,
8573 "properties" : {
8574 "node" : {
8575 "description" : "The cluster node name.",
8576 "format" : "pve-node",
8577 "type" : "string",
8578 "typetext" : "<string>"
8579 }
8580 }
8581 },
8582 "permissions" : {
8583 "check" : [
8584 "admin",
8585 "audit"
8586 ]
8587 },
8588 "returns" : {
8589 "items" : {
8590 "properties" : {},
8591 "type" : "object"
8592 },
8593 "links" : [
8594 {
8595 "href" : "{subdir}",
8596 "rel" : "child"
8597 }
8598 ],
8599 "type" : "array"
8600 }
8601 }
8602 },
8603 "leaf" : 0,
8604 "path" : "/nodes/{node}/spamassassin",
8605 "text" : "spamassassin"
8606 },
410dc2c9
DM
8607 {
8608 "children" : [
8609 {
8610 "info" : {
8611 "DELETE" : {
8612 "description" : "Delete network device configuration",
8613 "method" : "DELETE",
8614 "name" : "delete_network",
8615 "parameters" : {
8616 "additionalProperties" : 0,
8617 "properties" : {
8618 "iface" : {
8619 "description" : "Network interface name.",
8620 "format" : "pve-iface",
8621 "maxLength" : 20,
8622 "minLength" : 2,
8623 "type" : "string",
8624 "typetext" : "<string>"
8625 },
8626 "node" : {
8627 "description" : "The cluster node name.",
8628 "format" : "pve-node",
8629 "type" : "string",
8630 "typetext" : "<string>"
8631 }
8632 }
8633 },
8634 "protected" : 1,
8635 "proxyto" : "node",
8636 "returns" : {
8637 "type" : "null"
8638 }
8639 },
8640 "GET" : {
8641 "description" : "Read network device configuration",
8642 "method" : "GET",
8643 "name" : "network_config",
8644 "parameters" : {
8645 "additionalProperties" : 0,
8646 "properties" : {
8647 "iface" : {
8648 "description" : "Network interface name.",
8649 "format" : "pve-iface",
8650 "maxLength" : 20,
8651 "minLength" : 2,
8652 "type" : "string",
8653 "typetext" : "<string>"
8654 },
8655 "node" : {
8656 "description" : "The cluster node name.",
8657 "format" : "pve-node",
8658 "type" : "string",
8659 "typetext" : "<string>"
8660 }
8661 }
8662 },
732d76e1
DM
8663 "permissions" : {
8664 "check" : [
8665 "admin",
8666 "audit"
8667 ]
8668 },
410dc2c9
DM
8669 "proxyto" : "node",
8670 "returns" : {
8671 "properties" : {
8672 "method" : {
8673 "type" : "string"
8674 },
8675 "type" : {
8676 "type" : "string"
8677 }
8678 },
8679 "type" : "object"
8680 }
8681 },
8682 "PUT" : {
8683 "description" : "Update network device configuration",
8684 "method" : "PUT",
8685 "name" : "update_network",
8686 "parameters" : {
8687 "additionalProperties" : 0,
8688 "properties" : {
8689 "address" : {
8690 "description" : "IP address.",
8691 "format" : "ipv4",
8692 "optional" : 1,
8693 "requires" : "netmask",
8694 "type" : "string",
8695 "typetext" : "<string>"
8696 },
8697 "address6" : {
8698 "description" : "IP address.",
8699 "format" : "ipv6",
8700 "optional" : 1,
8701 "requires" : "netmask6",
8702 "type" : "string",
8703 "typetext" : "<string>"
8704 },
8705 "autostart" : {
8706 "description" : "Automatically start interface on boot.",
8707 "optional" : 1,
8708 "type" : "boolean",
8709 "typetext" : "<boolean>"
8710 },
8711 "bond_mode" : {
8712 "description" : "Bonding mode.",
8713 "enum" : [
8714 "balance-rr",
8715 "active-backup",
8716 "balance-xor",
8717 "broadcast",
8718 "802.3ad",
8719 "balance-tlb",
8720 "balance-alb",
8721 "balance-slb",
8722 "lacp-balance-slb",
8723 "lacp-balance-tcp"
8724 ],
8725 "optional" : 1,
8726 "type" : "string"
8727 },
8728 "bond_xmit_hash_policy" : {
8729 "description" : "Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes.",
8730 "enum" : [
8731 "layer2",
8732 "layer2+3",
8733 "layer3+4"
8734 ],
8735 "optional" : 1,
8736 "type" : "string"
8737 },
8738 "bridge_ports" : {
8739 "description" : "Specify the iterfaces you want to add to your bridge.",
8740 "format" : "pve-iface-list",
8741 "optional" : 1,
8742 "type" : "string",
8743 "typetext" : "<string>"
8744 },
8745 "bridge_vlan_aware" : {
8746 "description" : "Enable bridge vlan support.",
8747 "optional" : 1,
8748 "type" : "boolean",
8749 "typetext" : "<boolean>"
8750 },
8751 "comments" : {
8752 "description" : "Comments",
8753 "optional" : 1,
8754 "type" : "string",
8755 "typetext" : "<string>"
8756 },
8757 "comments6" : {
8758 "description" : "Comments",
8759 "optional" : 1,
8760 "type" : "string",
8761 "typetext" : "<string>"
8762 },
8763 "delete" : {
8764 "description" : "A list of settings you want to delete.",
8765 "format" : "pve-configid-list",
8766 "optional" : 1,
8767 "type" : "string",
8768 "typetext" : "<string>"
8769 },
8770 "gateway" : {
8771 "description" : "Default gateway address.",
8772 "format" : "ipv4",
8773 "optional" : 1,
8774 "type" : "string",
8775 "typetext" : "<string>"
8776 },
8777 "gateway6" : {
8778 "description" : "Default ipv6 gateway address.",
8779 "format" : "ipv6",
8780 "optional" : 1,
8781 "type" : "string",
8782 "typetext" : "<string>"
8783 },
8784 "iface" : {
8785 "description" : "Network interface name.",
8786 "format" : "pve-iface",
8787 "maxLength" : 20,
8788 "minLength" : 2,
8789 "type" : "string",
8790 "typetext" : "<string>"
8791 },
8792 "netmask" : {
8793 "description" : "Network mask.",
8794 "format" : "ipv4mask",
8795 "optional" : 1,
8796 "requires" : "address",
8797 "type" : "string",
8798 "typetext" : "<string>"
8799 },
8800 "netmask6" : {
8801 "description" : "Network mask.",
8802 "maximum" : 128,
8803 "minimum" : 0,
8804 "optional" : 1,
8805 "requires" : "address6",
8806 "type" : "integer",
8807 "typetext" : "<integer> (0 - 128)"
8808 },
8809 "node" : {
8810 "description" : "The cluster node name.",
8811 "format" : "pve-node",
8812 "type" : "string",
8813 "typetext" : "<string>"
8814 },
8815 "ovs_bonds" : {
8816 "description" : "Specify the interfaces used by the bonding device.",
8817 "format" : "pve-iface-list",
8818 "optional" : 1,
8819 "type" : "string",
8820 "typetext" : "<string>"
8821 },
8822 "ovs_bridge" : {
8823 "description" : "The OVS bridge associated with a OVS port. This is required when you create an OVS port.",
8824 "format" : "pve-iface",
8825 "optional" : 1,
8826 "type" : "string",
8827 "typetext" : "<string>"
8828 },
8829 "ovs_options" : {
8830 "description" : "OVS interface options.",
8831 "maxLength" : 1024,
8832 "optional" : 1,
8833 "type" : "string",
8834 "typetext" : "<string>"
8835 },
8836 "ovs_ports" : {
8837 "description" : "Specify the iterfaces you want to add to your bridge.",
8838 "format" : "pve-iface-list",
8839 "optional" : 1,
8840 "type" : "string",
8841 "typetext" : "<string>"
8842 },
8843 "ovs_tag" : {
8844 "description" : "Specify a VLan tag (used by OVSPort, OVSIntPort, OVSBond)",
8845 "maximum" : 4094,
8846 "minimum" : 1,
8847 "optional" : 1,
8848 "type" : "integer",
8849 "typetext" : "<integer> (1 - 4094)"
8850 },
8851 "slaves" : {
8852 "description" : "Specify the interfaces used by the bonding device.",
8853 "format" : "pve-iface-list",
8854 "optional" : 1,
8855 "type" : "string",
8856 "typetext" : "<string>"
8857 },
8858 "type" : {
8859 "description" : "Network interface type",
8860 "enum" : [
8861 "bridge",
8862 "bond",
8863 "eth",
8864 "alias",
8865 "vlan",
8866 "OVSBridge",
8867 "OVSBond",
8868 "OVSPort",
8869 "OVSIntPort",
8870 "unknown"
8871 ],
8872 "type" : "string"
8873 }
8874 }
8875 },
8876 "protected" : 1,
8877 "proxyto" : "node",
8878 "returns" : {
8879 "type" : "null"
8880 }
8881 }
8882 },
8883 "leaf" : 1,
8884 "path" : "/nodes/{node}/network/{iface}",
8885 "text" : "{iface}"
8886 }
8887 ],
8888 "info" : {
8889 "DELETE" : {
8890 "description" : "Revert network configuration changes.",
8891 "method" : "DELETE",
8892 "name" : "revert_network_changes",
8893 "parameters" : {
8894 "additionalProperties" : 0,
8895 "properties" : {
8896 "node" : {
8897 "description" : "The cluster node name.",
8898 "format" : "pve-node",
8899 "type" : "string",
8900 "typetext" : "<string>"
8901 }
8902 }
8903 },
8904 "protected" : 1,
8905 "proxyto" : "node",
8906 "returns" : {
8907 "type" : "null"
8908 }
8909 },
8910 "GET" : {
8911 "description" : "List available networks",
8912 "method" : "GET",
8913 "name" : "index",
8914 "parameters" : {
8915 "additionalProperties" : 0,
8916 "properties" : {
8917 "node" : {
8918 "description" : "The cluster node name.",
8919 "format" : "pve-node",
8920 "type" : "string",
8921 "typetext" : "<string>"
8922 },
8923 "type" : {
8924 "description" : "Only list specific interface types.",
8925 "enum" : [
8926 "bridge",
8927 "bond",
8928 "eth",
8929 "alias",
8930 "vlan",
8931 "OVSBridge",
8932 "OVSBond",
8933 "OVSPort",
8934 "OVSIntPort",
8935 "any_bridge"
8936 ],
8937 "optional" : 1,
8938 "type" : "string"
8939 }
8940 }
8941 },
732d76e1
DM
8942 "permissions" : {
8943 "check" : [
8944 "admin",
8945 "audit"
8946 ]
8947 },
410dc2c9
DM
8948 "proxyto" : "node",
8949 "returns" : {
8950 "items" : {
8951 "properties" : {},
8952 "type" : "object"
8953 },
8954 "links" : [
8955 {
8956 "href" : "{iface}",
8957 "rel" : "child"
8958 }
8959 ],
8960 "type" : "array"
8961 }
8962 },
8963 "POST" : {
8964 "description" : "Create network device configuration",
8965 "method" : "POST",
8966 "name" : "create_network",
8967 "parameters" : {
8968 "additionalProperties" : 0,
8969 "properties" : {
8970 "address" : {
8971 "description" : "IP address.",
8972 "format" : "ipv4",
8973 "optional" : 1,
8974 "requires" : "netmask",
8975 "type" : "string",
8976 "typetext" : "<string>"
8977 },
8978 "address6" : {
8979 "description" : "IP address.",
8980 "format" : "ipv6",
8981 "optional" : 1,
8982 "requires" : "netmask6",
8983 "type" : "string",
8984 "typetext" : "<string>"
8985 },
8986 "autostart" : {
8987 "description" : "Automatically start interface on boot.",
8988 "optional" : 1,
8989 "type" : "boolean",
8990 "typetext" : "<boolean>"
8991 },
8992 "bond_mode" : {
8993 "description" : "Bonding mode.",
8994 "enum" : [
8995 "balance-rr",
8996 "active-backup",
8997 "balance-xor",
8998 "broadcast",
8999 "802.3ad",
9000 "balance-tlb",
9001 "balance-alb",
9002 "balance-slb",
9003 "lacp-balance-slb",
9004 "lacp-balance-tcp"
9005 ],
9006 "optional" : 1,
9007 "type" : "string"
9008 },
9009 "bond_xmit_hash_policy" : {
9010 "description" : "Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes.",
9011 "enum" : [
9012 "layer2",
9013 "layer2+3",
9014 "layer3+4"
9015 ],
9016 "optional" : 1,
9017 "type" : "string"
9018 },
9019 "bridge_ports" : {
9020 "description" : "Specify the iterfaces you want to add to your bridge.",
9021 "format" : "pve-iface-list",
9022 "optional" : 1,
9023 "type" : "string",
9024 "typetext" : "<string>"
9025 },
9026 "bridge_vlan_aware" : {
9027 "description" : "Enable bridge vlan support.",
9028 "optional" : 1,
9029 "type" : "boolean",
9030 "typetext" : "<boolean>"
9031 },
9032 "comments" : {
9033 "description" : "Comments",
9034 "optional" : 1,
9035 "type" : "string",
9036 "typetext" : "<string>"
9037 },
9038 "comments6" : {
9039 "description" : "Comments",
9040 "optional" : 1,
9041 "type" : "string",
9042 "typetext" : "<string>"
9043 },
9044 "gateway" : {
9045 "description" : "Default gateway address.",
9046 "format" : "ipv4",
9047 "optional" : 1,
9048 "type" : "string",
9049 "typetext" : "<string>"
9050 },
9051 "gateway6" : {
9052 "description" : "Default ipv6 gateway address.",
9053 "format" : "ipv6",
9054 "optional" : 1,
9055 "type" : "string",
9056 "typetext" : "<string>"
9057 },
9058 "iface" : {
9059 "description" : "Network interface name.",
9060 "format" : "pve-iface",
9061 "maxLength" : 20,
9062 "minLength" : 2,
9063 "type" : "string",
9064 "typetext" : "<string>"
9065 },
9066 "netmask" : {
9067 "description" : "Network mask.",
9068 "format" : "ipv4mask",
9069 "optional" : 1,
9070 "requires" : "address",
9071 "type" : "string",
9072 "typetext" : "<string>"
9073 },
9074 "netmask6" : {
9075 "description" : "Network mask.",
9076 "maximum" : 128,
9077 "minimum" : 0,
9078 "optional" : 1,
9079 "requires" : "address6",
9080 "type" : "integer",
9081 "typetext" : "<integer> (0 - 128)"
9082 },
9083 "node" : {
9084 "description" : "The cluster node name.",
9085 "format" : "pve-node",
9086 "type" : "string",
9087 "typetext" : "<string>"
9088 },
9089 "ovs_bonds" : {
9090 "description" : "Specify the interfaces used by the bonding device.",
9091 "format" : "pve-iface-list",
9092 "optional" : 1,
9093 "type" : "string",
9094 "typetext" : "<string>"
9095 },
9096 "ovs_bridge" : {
9097 "description" : "The OVS bridge associated with a OVS port. This is required when you create an OVS port.",
9098 "format" : "pve-iface",
9099 "optional" : 1,
9100 "type" : "string",
9101 "typetext" : "<string>"
9102 },
9103 "ovs_options" : {
9104 "description" : "OVS interface options.",
9105 "maxLength" : 1024,
9106 "optional" : 1,
9107 "type" : "string",
9108 "typetext" : "<string>"
9109 },
9110 "ovs_ports" : {
9111 "description" : "Specify the iterfaces you want to add to your bridge.",
9112 "format" : "pve-iface-list",
9113 "optional" : 1,
9114 "type" : "string",
9115 "typetext" : "<string>"
9116 },
9117 "ovs_tag" : {
9118 "description" : "Specify a VLan tag (used by OVSPort, OVSIntPort, OVSBond)",
9119 "maximum" : 4094,
9120 "minimum" : 1,
9121 "optional" : 1,
9122 "type" : "integer",
9123 "typetext" : "<integer> (1 - 4094)"
9124 },
9125 "slaves" : {
9126 "description" : "Specify the interfaces used by the bonding device.",
9127 "format" : "pve-iface-list",
9128 "optional" : 1,
9129 "type" : "string",
9130 "typetext" : "<string>"
9131 },
9132 "type" : {
9133 "description" : "Network interface type",
9134 "enum" : [
9135 "bridge",
9136 "bond",
9137 "eth",
9138 "alias",
9139 "vlan",
9140 "OVSBridge",
9141 "OVSBond",
9142 "OVSPort",
9143 "OVSIntPort",
9144 "unknown"
9145 ],
9146 "type" : "string"
9147 }
9148 }
9149 },
9150 "protected" : 1,
9151 "proxyto" : "node",
9152 "returns" : {
9153 "type" : "null"
9154 }
9155 }
9156 },
9157 "leaf" : 0,
9158 "path" : "/nodes/{node}/network",
9159 "text" : "network"
9160 },
9161 {
9162 "children" : [
9163 {
9164 "children" : [
9165 {
9166 "info" : {
9167 "GET" : {
9168 "description" : "Read task log.",
9169 "method" : "GET",
9170 "name" : "read_task_log",
9171 "parameters" : {
9172 "additionalProperties" : 0,
9173 "properties" : {
9174 "limit" : {
9175 "minimum" : 0,
9176 "optional" : 1,
9177 "type" : "integer",
9178 "typetext" : "<integer> (0 - N)"
9179 },
9180 "node" : {
9181 "description" : "The cluster node name.",
9182 "format" : "pve-node",
9183 "type" : "string",
9184 "typetext" : "<string>"
9185 },
9186 "start" : {
9187 "minimum" : 0,
9188 "optional" : 1,
9189 "type" : "integer",
9190 "typetext" : "<integer> (0 - N)"
9191 },
9192 "upid" : {
9193 "type" : "string",
9194 "typetext" : "<string>"
9195 }
9196 }
9197 },
732d76e1
DM
9198 "permissions" : {
9199 "check" : [
9200 "admin",
9201 "audit"
9202 ]
9203 },
410dc2c9
DM
9204 "protected" : 1,
9205 "proxyto" : "node",
9206 "returns" : {
9207 "items" : {
9208 "properties" : {
9209 "n" : {
9210 "description" : "Line number",
9211 "type" : "integer"
9212 },
9213 "t" : {
9214 "description" : "Line text",
9215 "type" : "string"
9216 }
9217 },
9218 "type" : "object"
9219 },
9220 "type" : "array"
9221 }
9222 }
9223 },
9224 "leaf" : 1,
9225 "path" : "/nodes/{node}/tasks/{upid}/log",
9226 "text" : "log"
9227 },
9228 {
9229 "info" : {
9230 "GET" : {
9231 "description" : "Read task status.",
9232 "method" : "GET",
9233 "name" : "read_task_status",
9234 "parameters" : {
9235 "additionalProperties" : 0,
9236 "properties" : {
9237 "node" : {
9238 "description" : "The cluster node name.",
9239 "format" : "pve-node",
9240 "type" : "string",
9241 "typetext" : "<string>"
9242 },
9243 "upid" : {
9244 "type" : "string",
9245 "typetext" : "<string>"
9246 }
9247 }
9248 },
732d76e1
DM
9249 "permissions" : {
9250 "check" : [
9251 "admin",
9252 "audit"
9253 ]
9254 },
410dc2c9
DM
9255 "protected" : 1,
9256 "proxyto" : "node",
9257 "returns" : {
9258 "properties" : {
9259 "pid" : {
9260 "type" : "integer"
9261 },
9262 "status" : {
9263 "enum" : [
9264 "running",
9265 "stopped"
9266 ],
9267 "type" : "string"
9268 }
9269 },
9270 "type" : "object"
9271 }
9272 }
9273 },
9274 "leaf" : 1,
9275 "path" : "/nodes/{node}/tasks/{upid}/status",
9276 "text" : "status"
9277 }
9278 ],
9279 "info" : {
9280 "DELETE" : {
9281 "description" : "Stop a task.",
9282 "method" : "DELETE",
9283 "name" : "stop_task",
9284 "parameters" : {
9285 "additionalProperties" : 0,
9286 "properties" : {
9287 "node" : {
9288 "description" : "The cluster node name.",
9289 "format" : "pve-node",
9290 "type" : "string",
9291 "typetext" : "<string>"
9292 },
9293 "upid" : {
9294 "type" : "string",
9295 "typetext" : "<string>"
9296 }
9297 }
9298 },
732d76e1
DM
9299 "permissions" : {
9300 "check" : [
9301 "admin"
9302 ]
9303 },
410dc2c9
DM
9304 "protected" : 1,
9305 "proxyto" : "node",
9306 "returns" : {
9307 "type" : "null"
9308 }
9309 },
9310 "GET" : {
9311 "description" : "",
9312 "method" : "GET",
9313 "name" : "upid_index",
9314 "parameters" : {
9315 "additionalProperties" : 0,
9316 "properties" : {
9317 "node" : {
9318 "description" : "The cluster node name.",
9319 "format" : "pve-node",
9320 "type" : "string",
9321 "typetext" : "<string>"
9322 },
9323 "upid" : {
9324 "type" : "string",
9325 "typetext" : "<string>"
9326 }
9327 }
9328 },
732d76e1
DM
9329 "permissions" : {
9330 "check" : [
9331 "admin",
9332 "audit"
9333 ]
9334 },
410dc2c9
DM
9335 "returns" : {
9336 "items" : {
9337 "properties" : {},
9338 "type" : "object"
9339 },
9340 "links" : [
9341 {
9342 "href" : "{name}",
9343 "rel" : "child"
9344 }
9345 ],
9346 "type" : "array"
9347 }
9348 }
9349 },
9350 "leaf" : 0,
9351 "path" : "/nodes/{node}/tasks/{upid}",
9352 "text" : "{upid}"
9353 }
9354 ],
9355 "info" : {
9356 "GET" : {
9357 "description" : "Read task list for one node (finished tasks).",
9358 "method" : "GET",
9359 "name" : "node_tasks",
9360 "parameters" : {
9361 "additionalProperties" : 0,
9362 "properties" : {
9363 "errors" : {
9364 "optional" : 1,
9365 "type" : "boolean",
9366 "typetext" : "<boolean>"
9367 },
9368 "limit" : {
9369 "minimum" : 0,
9370 "optional" : 1,
9371 "type" : "integer",
9372 "typetext" : "<integer> (0 - N)"
9373 },
9374 "node" : {
9375 "description" : "The cluster node name.",
9376 "format" : "pve-node",
9377 "type" : "string",
9378 "typetext" : "<string>"
9379 },
9380 "start" : {
9381 "minimum" : 0,
9382 "optional" : 1,
9383 "type" : "integer",
9384 "typetext" : "<integer> (0 - N)"
9385 },
9386 "userfilter" : {
9387 "optional" : 1,
9388 "type" : "string",
9389 "typetext" : "<string>"
9390 }
9391 }
9392 },
732d76e1
DM
9393 "permissions" : {
9394 "check" : [
9395 "admin",
9396 "audit"
9397 ]
9398 },
410dc2c9
DM
9399 "proxyto" : "node",
9400 "returns" : {
9401 "items" : {
9402 "properties" : {
9403 "upid" : {
9404 "type" : "string"
9405 }
9406 },
9407 "type" : "object"
9408 },
9409 "links" : [
9410 {
9411 "href" : "{upid}",
9412 "rel" : "child"
9413 }
9414 ],
9415 "type" : "array"
9416 }
9417 }
9418 },
9419 "leaf" : 0,
9420 "path" : "/nodes/{node}/tasks",
9421 "text" : "tasks"
9422 },
9423 {
9424 "children" : [
9425 {
9426 "children" : [
9427 {
9428 "info" : {
9429 "GET" : {
9430 "description" : "Read service properties",
9431 "method" : "GET",
9432 "name" : "service_state",
9433 "parameters" : {
9434 "additionalProperties" : 0,
9435 "properties" : {
9436 "node" : {
9437 "description" : "The cluster node name.",
9438 "format" : "pve-node",
9439 "type" : "string",
9440 "typetext" : "<string>"
9441 },
9442 "service" : {
9443 "description" : "Service ID",
9444 "enum" : [
a55e94a6
DM
9445 "clamav-daemon",
9446 "clamav-freshclam",
732d76e1 9447 "fetchmail",
410dc2c9
DM
9448 "pmgproxy",
9449 "pmgdaemon",
a55e94a6 9450 "pmgpolicy",
410dc2c9 9451 "pmg-smtp-filter",
d7cd791b
DM
9452 "pmgtunnel",
9453 "pmgmirror",
9454 "ssh",
9455 "rsyslog",
410dc2c9 9456 "postfix",
d7cd791b 9457 "postgres",
a55e94a6
DM
9458 "systemd-timesyncd",
9459 "pmg-hourly",
d7cd791b 9460 "pmg-daily",
9fda36b0 9461 "pmgreport",
d7cd791b 9462 "pmgspamreport"
410dc2c9
DM
9463 ],
9464 "type" : "string"
9465 }
9466 }
9467 },
732d76e1
DM
9468 "permissions" : {
9469 "check" : [
9470 "admin",
9471 "audit"
9472 ]
9473 },
410dc2c9
DM
9474 "protected" : 1,
9475 "proxyto" : "node",
9476 "returns" : {
9477 "properties" : {},
9478 "type" : "object"
9479 }
9480 }
9481 },
9482 "leaf" : 1,
9483 "path" : "/nodes/{node}/services/{service}/state",
9484 "text" : "state"
9485 },
9486 {
9487 "info" : {
9488 "POST" : {
9489 "description" : "Start service.",
9490 "method" : "POST",
9491 "name" : "service_start",
9492 "parameters" : {
9493 "additionalProperties" : 0,
9494 "properties" : {
9495 "node" : {
9496 "description" : "The cluster node name.",
9497 "format" : "pve-node",
9498 "type" : "string",
9499 "typetext" : "<string>"
9500 },
9501 "service" : {
9502 "description" : "Service ID",
9503 "enum" : [
a55e94a6
DM
9504 "clamav-daemon",
9505 "clamav-freshclam",
732d76e1 9506 "fetchmail",
410dc2c9
DM
9507 "pmgproxy",
9508 "pmgdaemon",
a55e94a6 9509 "pmgpolicy",
410dc2c9 9510 "pmg-smtp-filter",
d7cd791b
DM
9511 "pmgtunnel",
9512 "pmgmirror",
9513 "ssh",
9514 "rsyslog",
410dc2c9 9515 "postfix",
d7cd791b 9516 "postgres",
a55e94a6
DM
9517 "systemd-timesyncd",
9518 "pmg-hourly",
d7cd791b 9519 "pmg-daily",
9fda36b0 9520 "pmgreport",
d7cd791b 9521 "pmgspamreport"
410dc2c9
DM
9522 ],
9523 "type" : "string"
9524 }
9525 }
9526 },
732d76e1
DM
9527 "permissions" : {
9528 "check" : [
9529 "admin"
9530 ]
9531 },
410dc2c9
DM
9532 "protected" : 1,
9533 "proxyto" : "node",
9534 "returns" : {
9535 "type" : "string"
9536 }
9537 }
9538 },
9539 "leaf" : 1,
9540 "path" : "/nodes/{node}/services/{service}/start",
9541 "text" : "start"
9542 },
9543 {
9544 "info" : {
9545 "POST" : {
9546 "description" : "Stop service.",
9547 "method" : "POST",
9548 "name" : "service_stop",
9549 "parameters" : {
9550 "additionalProperties" : 0,
9551 "properties" : {
9552 "node" : {
9553 "description" : "The cluster node name.",
9554 "format" : "pve-node",
9555 "type" : "string",
9556 "typetext" : "<string>"
9557 },
9558 "service" : {
9559 "description" : "Service ID",
9560 "enum" : [
a55e94a6
DM
9561 "clamav-daemon",
9562 "clamav-freshclam",
732d76e1 9563 "fetchmail",
410dc2c9
DM
9564 "pmgproxy",
9565 "pmgdaemon",
a55e94a6 9566 "pmgpolicy",
410dc2c9 9567 "pmg-smtp-filter",
d7cd791b
DM
9568 "pmgtunnel",
9569 "pmgmirror",
9570 "ssh",
9571 "rsyslog",
410dc2c9 9572 "postfix",
d7cd791b 9573 "postgres",
a55e94a6
DM
9574 "systemd-timesyncd",
9575 "pmg-hourly",
d7cd791b 9576 "pmg-daily",
9fda36b0 9577 "pmgreport",
d7cd791b 9578 "pmgspamreport"
410dc2c9
DM
9579 ],
9580 "type" : "string"
9581 }
9582 }
9583 },
732d76e1
DM
9584 "permissions" : {
9585 "check" : [
9586 "admin"
9587 ]
9588 },
410dc2c9
DM
9589 "protected" : 1,
9590 "proxyto" : "node",
9591 "returns" : {
9592 "type" : "string"
9593 }
9594 }
9595 },
9596 "leaf" : 1,
9597 "path" : "/nodes/{node}/services/{service}/stop",
9598 "text" : "stop"
9599 },
9600 {
9601 "info" : {
9602 "POST" : {
9603 "description" : "Restart service.",
9604 "method" : "POST",
9605 "name" : "service_restart",
9606 "parameters" : {
9607 "additionalProperties" : 0,
9608 "properties" : {
9609 "node" : {
9610 "description" : "The cluster node name.",
9611 "format" : "pve-node",
9612 "type" : "string",
9613 "typetext" : "<string>"
9614 },
9615 "service" : {
9616 "description" : "Service ID",
9617 "enum" : [
a55e94a6
DM
9618 "clamav-daemon",
9619 "clamav-freshclam",
732d76e1 9620 "fetchmail",
410dc2c9
DM
9621 "pmgproxy",
9622 "pmgdaemon",
a55e94a6 9623 "pmgpolicy",
410dc2c9 9624 "pmg-smtp-filter",
d7cd791b
DM
9625 "pmgtunnel",
9626 "pmgmirror",
9627 "ssh",
9628 "rsyslog",
410dc2c9 9629 "postfix",
d7cd791b 9630 "postgres",
a55e94a6
DM
9631 "systemd-timesyncd",
9632 "pmg-hourly",
d7cd791b 9633 "pmg-daily",
9fda36b0 9634 "pmgreport",
d7cd791b 9635 "pmgspamreport"
410dc2c9
DM
9636 ],
9637 "type" : "string"
9638 }
9639 }
9640 },
732d76e1
DM
9641 "permissions" : {
9642 "check" : [
9643 "admin"
9644 ]
9645 },
410dc2c9
DM
9646 "protected" : 1,
9647 "proxyto" : "node",
9648 "returns" : {
9649 "type" : "string"
9650 }
9651 }
9652 },
9653 "leaf" : 1,
9654 "path" : "/nodes/{node}/services/{service}/restart",
9655 "text" : "restart"
9656 },
9657 {
9658 "info" : {
9659 "POST" : {
9660 "description" : "Reload service.",
9661 "method" : "POST",
9662 "name" : "service_reload",
9663 "parameters" : {
9664 "additionalProperties" : 0,
9665 "properties" : {
9666 "node" : {
9667 "description" : "The cluster node name.",
9668 "format" : "pve-node",
9669 "type" : "string",
9670 "typetext" : "<string>"
9671 },
9672 "service" : {
9673 "description" : "Service ID",
9674 "enum" : [
a55e94a6
DM
9675 "clamav-daemon",
9676 "clamav-freshclam",
732d76e1 9677 "fetchmail",
410dc2c9
DM
9678 "pmgproxy",
9679 "pmgdaemon",
a55e94a6 9680 "pmgpolicy",
410dc2c9 9681 "pmg-smtp-filter",
d7cd791b
DM
9682 "pmgtunnel",
9683 "pmgmirror",
9684 "ssh",
9685 "rsyslog",
410dc2c9 9686 "postfix",
d7cd791b 9687 "postgres",
a55e94a6
DM
9688 "systemd-timesyncd",
9689 "pmg-hourly",
d7cd791b 9690 "pmg-daily",
9fda36b0 9691 "pmgreport",
d7cd791b 9692 "pmgspamreport"
410dc2c9
DM
9693 ],
9694 "type" : "string"
9695 }
9696 }
9697 },
732d76e1
DM
9698 "permissions" : {
9699 "check" : [
9700 "admin"
9701 ]
9702 },
410dc2c9
DM
9703 "protected" : 1,
9704 "proxyto" : "node",
9705 "returns" : {
9706 "type" : "string"
9707 }
9708 }
9709 },
9710 "leaf" : 1,
9711 "path" : "/nodes/{node}/services/{service}/reload",
9712 "text" : "reload"
9713 }
9714 ],
9715 "info" : {
9716 "GET" : {
9717 "description" : "Directory index",
9718 "method" : "GET",
9719 "name" : "srvcmdidx",
9720 "parameters" : {
9721 "additionalProperties" : 0,
9722 "properties" : {
9723 "node" : {
9724 "description" : "The cluster node name.",
9725 "format" : "pve-node",
9726 "type" : "string",
9727 "typetext" : "<string>"
9728 },
9729 "service" : {
9730 "description" : "Service ID",
9731 "enum" : [
a55e94a6
DM
9732 "clamav-daemon",
9733 "clamav-freshclam",
732d76e1 9734 "fetchmail",
410dc2c9
DM
9735 "pmgproxy",
9736 "pmgdaemon",
a55e94a6 9737 "pmgpolicy",
410dc2c9 9738 "pmg-smtp-filter",
d7cd791b
DM
9739 "pmgtunnel",
9740 "pmgmirror",
9741 "ssh",
9742 "rsyslog",
410dc2c9 9743 "postfix",
d7cd791b 9744 "postgres",
a55e94a6
DM
9745 "systemd-timesyncd",
9746 "pmg-hourly",
d7cd791b 9747 "pmg-daily",
9fda36b0 9748 "pmgreport",
d7cd791b 9749 "pmgspamreport"
410dc2c9
DM
9750 ],
9751 "type" : "string"
9752 }
9753 }
9754 },
732d76e1
DM
9755 "permissions" : {
9756 "check" : [
9757 "admin",
9758 "audit"
9759 ]
9760 },
410dc2c9
DM
9761 "returns" : {
9762 "items" : {
9763 "properties" : {
9764 "subdir" : {
9765 "type" : "string"
9766 }
9767 },
9768 "type" : "object"
9769 },
9770 "links" : [
9771 {
9772 "href" : "{subdir}",
9773 "rel" : "child"
9774 }
9775 ],
9776 "type" : "array"
9777 }
9778 }
9779 },
9fda36b0
DM
9780 "leaf" : 0,
9781 "path" : "/nodes/{node}/services/{service}",
9782 "text" : "{service}"
9783 }
9784 ],
9785 "info" : {
9786 "GET" : {
9787 "description" : "Service list.",
9788 "method" : "GET",
9789 "name" : "index",
9790 "parameters" : {
9791 "additionalProperties" : 0,
9792 "properties" : {
9793 "node" : {
9794 "description" : "The cluster node name.",
9795 "format" : "pve-node",
9796 "type" : "string",
9797 "typetext" : "<string>"
9798 }
9799 }
9800 },
732d76e1
DM
9801 "permissions" : {
9802 "check" : [
9803 "admin",
9804 "audit"
9805 ]
9806 },
9fda36b0
DM
9807 "protected" : 1,
9808 "proxyto" : "node",
9809 "returns" : {
9810 "items" : {
9811 "properties" : {},
9812 "type" : "object"
9813 },
9814 "links" : [
9815 {
9816 "href" : "{service}",
9817 "rel" : "child"
9818 }
9819 ],
9820 "type" : "array"
9821 }
9822 }
9823 },
9824 "leaf" : 0,
9825 "path" : "/nodes/{node}/services",
9826 "text" : "services"
9827 },
9828 {
9829 "info" : {
9830 "GET" : {
9831 "description" : "Read subscription info.",
9832 "method" : "GET",
9833 "name" : "get",
9834 "parameters" : {
9835 "additionalProperties" : 0,
9836 "properties" : {
9837 "node" : {
9838 "description" : "The cluster node name.",
9839 "format" : "pve-node",
9840 "type" : "string",
9841 "typetext" : "<string>"
9842 }
9843 }
9844 },
9845 "permissions" : {
9846 "check" : [
9847 "admin",
9848 "qmanager",
9849 "audit",
9850 "quser"
9851 ]
9852 },
9853 "proxyto" : "node",
9854 "returns" : {
9855 "type" : "object"
9856 }
732d76e1
DM
9857 },
9858 "POST" : {
9859 "description" : "Update subscription info.",
9860 "method" : "POST",
9861 "name" : "update",
9862 "parameters" : {
9863 "additionalProperties" : 0,
9864 "properties" : {
9865 "force" : {
9866 "default" : 0,
9867 "description" : "Always connect to server, even if we have up to date info inside local cache.",
9868 "optional" : 1,
9869 "type" : "boolean",
9870 "typetext" : "<boolean>"
9871 },
9872 "node" : {
9873 "description" : "The cluster node name.",
9874 "format" : "pve-node",
9875 "type" : "string",
9876 "typetext" : "<string>"
9877 }
9878 }
9879 },
9880 "permissions" : {
9881 "check" : [
9882 "admin"
9883 ]
9884 },
9885 "protected" : 1,
9886 "proxyto" : "node",
9887 "returns" : {
9888 "type" : "null"
9889 }
9890 },
9891 "PUT" : {
9892 "description" : "Set subscription key.",
9893 "method" : "PUT",
9894 "name" : "set",
9895 "parameters" : {
9896 "additionalProperties" : 0,
9897 "properties" : {
9898 "key" : {
9899 "description" : "Proxmox Mail Gateway subscription key",
9900 "maxLength" : 32,
9901 "pattern" : "pmg([cbsp])-[0-9a-f]{10}",
9902 "type" : "string"
9903 },
9904 "node" : {
9905 "description" : "The cluster node name.",
9906 "format" : "pve-node",
9907 "type" : "string",
9908 "typetext" : "<string>"
9909 }
9910 }
9911 },
9912 "protected" : 1,
9913 "proxyto" : "node",
9914 "returns" : {
9915 "type" : "null"
9916 }
9fda36b0
DM
9917 }
9918 },
9919 "leaf" : 1,
9920 "path" : "/nodes/{node}/subscription",
9921 "text" : "subscription"
9922 },
9923 {
9924 "children" : [
9925 {
9926 "info" : {
9927 "GET" : {
9928 "description" : "List available updates.",
9929 "method" : "GET",
9930 "name" : "list_updates",
9931 "parameters" : {
9932 "additionalProperties" : 0,
9933 "properties" : {
9934 "node" : {
9935 "description" : "The cluster node name.",
9936 "format" : "pve-node",
9937 "type" : "string",
9938 "typetext" : "<string>"
9939 }
9940 }
9941 },
732d76e1
DM
9942 "permissions" : {
9943 "check" : [
9944 "admin",
9945 "audit"
9946 ]
9947 },
9fda36b0
DM
9948 "protected" : 1,
9949 "proxyto" : "node",
9950 "returns" : {
9951 "items" : {
9952 "properties" : {},
9953 "type" : "object"
9954 },
9955 "type" : "array"
9956 }
9957 },
9958 "POST" : {
9959 "description" : "This is used to resynchronize the package index files from their sources (apt-get update).",
9960 "method" : "POST",
9961 "name" : "update_database",
9962 "parameters" : {
9963 "additionalProperties" : 0,
9964 "properties" : {
9965 "node" : {
9966 "description" : "The cluster node name.",
9967 "format" : "pve-node",
9968 "type" : "string",
9969 "typetext" : "<string>"
9970 },
9971 "notify" : {
9972 "default" : 0,
9973 "description" : "Send notification mail about new packages (to email address specified for user 'root@pam').",
9974 "optional" : 1,
9975 "type" : "boolean",
9976 "typetext" : "<boolean>"
9977 },
9978 "quiet" : {
9979 "default" : 0,
9980 "description" : "Only produces output suitable for logging, omitting progress indicators.",
9981 "optional" : 1,
9982 "type" : "boolean",
9983 "typetext" : "<boolean>"
9984 }
9985 }
9986 },
732d76e1
DM
9987 "permissions" : {
9988 "check" : [
9989 "admin"
9990 ]
9991 },
9fda36b0
DM
9992 "protected" : 1,
9993 "proxyto" : "node",
9994 "returns" : {
9995 "type" : "string"
9996 }
9997 }
9998 },
9999 "leaf" : 1,
10000 "path" : "/nodes/{node}/apt/update",
10001 "text" : "update"
10002 },
10003 {
10004 "info" : {
10005 "GET" : {
10006 "description" : "Get package changelogs.",
10007 "method" : "GET",
10008 "name" : "changelog",
10009 "parameters" : {
10010 "additionalProperties" : 0,
10011 "properties" : {
10012 "name" : {
10013 "description" : "Package name.",
10014 "type" : "string",
10015 "typetext" : "<string>"
10016 },
10017 "node" : {
10018 "description" : "The cluster node name.",
10019 "format" : "pve-node",
10020 "type" : "string",
10021 "typetext" : "<string>"
10022 },
10023 "version" : {
10024 "description" : "Package version.",
10025 "optional" : 1,
10026 "type" : "string",
10027 "typetext" : "<string>"
10028 }
10029 }
10030 },
732d76e1
DM
10031 "permissions" : {
10032 "check" : [
10033 "admin",
10034 "audit"
10035 ]
10036 },
9fda36b0
DM
10037 "proxyto" : "node",
10038 "returns" : {
10039 "type" : "string"
10040 }
10041 }
10042 },
10043 "leaf" : 1,
10044 "path" : "/nodes/{node}/apt/changelog",
10045 "text" : "changelog"
10046 },
10047 {
10048 "info" : {
10049 "GET" : {
10050 "description" : "Get package information for important Proxmox packages.",
10051 "method" : "GET",
10052 "name" : "versions",
10053 "parameters" : {
10054 "additionalProperties" : 0,
10055 "properties" : {
10056 "node" : {
10057 "description" : "The cluster node name.",
10058 "format" : "pve-node",
10059 "type" : "string",
10060 "typetext" : "<string>"
10061 }
10062 }
10063 },
10064 "permissions" : {
10065 "check" : [
732d76e1
DM
10066 "admin",
10067 "audit"
9fda36b0
DM
10068 ]
10069 },
10070 "proxyto" : "node",
10071 "returns" : {
10072 "items" : {
10073 "properties" : {},
10074 "type" : "object"
10075 },
10076 "type" : "array"
10077 }
10078 }
10079 },
10080 "leaf" : 1,
10081 "path" : "/nodes/{node}/apt/versions",
10082 "text" : "versions"
10083 }
10084 ],
10085 "info" : {
10086 "GET" : {
10087 "description" : "Directory index for apt (Advanced Package Tool).",
10088 "method" : "GET",
10089 "name" : "index",
10090 "parameters" : {
10091 "additionalProperties" : 0,
10092 "properties" : {
10093 "node" : {
10094 "description" : "The cluster node name.",
10095 "format" : "pve-node",
10096 "type" : "string",
10097 "typetext" : "<string>"
10098 }
10099 }
10100 },
10101 "permissions" : {
10102 "user" : "all"
10103 },
10104 "returns" : {
10105 "items" : {
10106 "properties" : {
10107 "id" : {
10108 "type" : "string"
10109 }
10110 },
10111 "type" : "object"
10112 },
10113 "links" : [
10114 {
10115 "href" : "{id}",
10116 "rel" : "child"
10117 }
10118 ],
10119 "type" : "array"
10120 }
10121 }
10122 },
10123 "leaf" : 0,
10124 "path" : "/nodes/{node}/apt",
10125 "text" : "apt"
10126 },
10127 {
10128 "children" : [
10129 {
10130 "info" : {
10131 "GET" : {
10132 "description" : "Get the detailed syslog entries for a specific mail ID.",
10133 "method" : "GET",
10134 "name" : "maillog",
10135 "parameters" : {
10136 "additionalProperties" : 0,
10137 "properties" : {
10138 "endtime" : {
10139 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
10140 "minimum" : 1,
10141 "optional" : 1,
10142 "type" : "integer",
10143 "typetext" : "<integer> (1 - N)"
10144 },
10145 "id" : {
10146 "description" : "Mail ID (as returend by the list API).",
10147 "maxLength" : 64,
10148 "minLength" : 3,
10149 "type" : "string",
10150 "typetext" : "<string>"
10151 },
10152 "node" : {
10153 "description" : "The cluster node name.",
10154 "format" : "pve-node",
10155 "type" : "string",
10156 "typetext" : "<string>"
10157 },
10158 "starttime" : {
10159 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
10160 "minimum" : 0,
10161 "optional" : 1,
10162 "type" : "integer",
10163 "typetext" : "<integer> (0 - N)"
10164 }
10165 }
10166 },
732d76e1
DM
10167 "permissions" : {
10168 "check" : [
10169 "admin",
10170 "audit"
10171 ]
10172 },
9fda36b0
DM
10173 "protected" : 1,
10174 "proxyto" : "node",
10175 "returns" : {
10176 "properties" : {
10177 "client" : {
10178 "description" : "Client address",
10179 "optional" : 1,
10180 "type" : "string"
10181 },
10182 "dstatus" : {
10183 "description" : "Delivery status.",
10184 "maxLength" : 1,
10185 "minLength" : 1,
10186 "type" : "string"
10187 },
10188 "from" : {
10189 "description" : "Sender email address.",
10190 "type" : "string"
10191 },
10192 "id" : {
10193 "description" : "Unique ID.",
10194 "type" : "string"
10195 },
10196 "logs" : {
10197 "items" : {
10198 "type" : "string"
10199 },
10200 "type" : "array"
10201 },
10202 "msgid" : {
10203 "description" : "SMTP message ID.",
10204 "optional" : 1,
10205 "type" : "string"
10206 },
10207 "qid" : {
10208 "description" : "Postfix qmgr ID.",
10209 "optional" : 1,
10210 "type" : "string"
10211 },
10212 "relay" : {
10213 "description" : "ID of relayed mail.",
10214 "optional" : 1,
10215 "type" : "string"
10216 },
10217 "rstatus" : {
10218 "description" : "Delivery status of relayed mail.",
10219 "maxLength" : 1,
10220 "minLength" : 1,
10221 "optional" : 1,
10222 "type" : "string"
10223 },
10224 "size" : {
10225 "description" : "The size of the raw email.",
10226 "optional" : 1,
10227 "type" : "number"
10228 },
10229 "time" : {
10230 "description" : "Delivery timestamp.",
10231 "type" : "integer"
10232 },
10233 "to" : {
10234 "description" : "Receiver email address.",
10235 "type" : "string"
10236 }
10237 },
10238 "type" : "object"
10239 }
10240 }
10241 },
10242 "leaf" : 1,
10243 "path" : "/nodes/{node}/tracker/{id}",
10244 "text" : "{id}"
10245 }
10246 ],
10247 "info" : {
10248 "GET" : {
10249 "description" : "Read mail list.",
10250 "method" : "GET",
10251 "name" : "list_mails",
10252 "parameters" : {
10253 "additionalProperties" : 0,
10254 "properties" : {
10255 "endtime" : {
10256 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
10257 "minimum" : 1,
10258 "optional" : 1,
10259 "type" : "integer",
10260 "typetext" : "<integer> (1 - N)"
10261 },
10262 "from" : {
10263 "description" : "Sender email address filter.",
10264 "maxLength" : 256,
10265 "minLength" : 1,
10266 "optional" : 1,
10267 "type" : "string",
10268 "typetext" : "<string>"
10269 },
10270 "greylist" : {
10271 "default" : 0,
10272 "description" : "Include Greylisted entries.",
10273 "optional" : 1,
10274 "type" : "boolean",
10275 "typetext" : "<boolean>"
10276 },
10277 "ndr" : {
10278 "default" : 0,
10279 "description" : "Include NDRs (non delivery reports).",
10280 "optional" : 1,
10281 "type" : "boolean",
10282 "typetext" : "<boolean>"
10283 },
10284 "node" : {
10285 "description" : "The cluster node name.",
10286 "format" : "pve-node",
10287 "type" : "string",
10288 "typetext" : "<string>"
10289 },
10290 "starttime" : {
10291 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
10292 "minimum" : 0,
10293 "optional" : 1,
10294 "type" : "integer",
10295 "typetext" : "<integer> (0 - N)"
10296 },
10297 "target" : {
10298 "description" : "Receiver email address filter.",
10299 "maxLength" : 256,
10300 "minLength" : 1,
10301 "optional" : 1,
10302 "type" : "string",
10303 "typetext" : "<string>"
10304 },
10305 "xfilter" : {
10306 "description" : "Only include mails containing this filter string.",
10307 "maxLength" : 256,
10308 "minLength" : 1,
10309 "optional" : 1,
10310 "type" : "string",
10311 "typetext" : "<string>"
10312 }
10313 }
10314 },
732d76e1
DM
10315 "permissions" : {
10316 "check" : [
10317 "admin",
10318 "audit"
10319 ]
10320 },
9fda36b0
DM
10321 "protected" : 1,
10322 "proxyto" : "node",
10323 "returns" : {
10324 "items" : {
10325 "properties" : {
10326 "client" : {
10327 "description" : "Client address",
10328 "optional" : 1,
10329 "type" : "string"
10330 },
10331 "dstatus" : {
10332 "description" : "Delivery status.",
10333 "maxLength" : 1,
10334 "minLength" : 1,
10335 "type" : "string"
10336 },
10337 "from" : {
10338 "description" : "Sender email address.",
10339 "type" : "string"
10340 },
10341 "id" : {
10342 "description" : "Unique ID.",
10343 "type" : "string"
10344 },
10345 "msgid" : {
10346 "description" : "SMTP message ID.",
10347 "optional" : 1,
10348 "type" : "string"
10349 },
10350 "qid" : {
10351 "description" : "Postfix qmgr ID.",
10352 "optional" : 1,
10353 "type" : "string"
10354 },
10355 "relay" : {
10356 "description" : "ID of relayed mail.",
10357 "optional" : 1,
10358 "type" : "string"
10359 },
10360 "rstatus" : {
10361 "description" : "Delivery status of relayed mail.",
10362 "maxLength" : 1,
10363 "minLength" : 1,
10364 "optional" : 1,
10365 "type" : "string"
10366 },
10367 "size" : {
10368 "description" : "The size of the raw email.",
10369 "optional" : 1,
10370 "type" : "number"
10371 },
10372 "time" : {
10373 "description" : "Delivery timestamp.",
10374 "type" : "integer"
10375 },
10376 "to" : {
10377 "description" : "Receiver email address.",
10378 "type" : "string"
10379 }
10380 },
10381 "type" : "object"
10382 },
10383 "links" : [
10384 {
10385 "href" : "{id}",
10386 "rel" : "child"
10387 }
10388 ],
10389 "type" : "array"
10390 }
10391 }
10392 },
10393 "leaf" : 0,
10394 "path" : "/nodes/{node}/tracker",
10395 "text" : "tracker"
10396 },
bb6e6e0d
DM
10397 {
10398 "children" : [
10399 {
10400 "info" : {
10401 "DELETE" : {
10402 "description" : "Delete a backup file.",
10403 "method" : "DELETE",
10404 "name" : "delete",
10405 "parameters" : {
10406 "additionalProperties" : 0,
10407 "properties" : {
10408 "filename" : {
10409 "description" : "The backup file name.",
10410 "maxLength" : 256,
10411 "minLength" : 4,
10412 "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
10413 "type" : "string"
10414 },
10415 "node" : {
10416 "description" : "The cluster node name.",
10417 "format" : "pve-node",
10418 "type" : "string",
10419 "typetext" : "<string>"
10420 }
10421 }
10422 },
10423 "permissions" : {
10424 "check" : [
10425 "admin"
10426 ]
10427 },
10428 "protected" : 1,
10429 "proxyto" : "node",
10430 "returns" : {
10431 "type" : "null"
10432 }
10433 },
10434 "GET" : {
10435 "description" : "Download a backup file.",
10436 "download" : 1,
10437 "method" : "GET",
10438 "name" : "download",
10439 "parameters" : {
10440 "additionalProperties" : 0,
10441 "properties" : {
10442 "filename" : {
10443 "description" : "The backup file name.",
10444 "maxLength" : 256,
10445 "minLength" : 4,
10446 "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
10447 "type" : "string"
10448 },
10449 "node" : {
10450 "description" : "The cluster node name.",
10451 "format" : "pve-node",
10452 "type" : "string",
10453 "typetext" : "<string>"
10454 }
10455 }
10456 },
10457 "permissions" : {
10458 "check" : [
10459 "admin"
10460 ]
10461 },
10462 "protected" : 1,
10463 "proxyto" : "node",
10464 "returns" : {
10465 "type" : "string"
10466 }
10467 },
10468 "POST" : {
10469 "description" : "Restore the system configuration.",
10470 "method" : "POST",
10471 "name" : "restore",
10472 "parameters" : {
10473 "additionalProperties" : 0,
10474 "properties" : {
10475 "config" : {
10476 "default" : 0,
10477 "description" : "Restore system configuration.",
10478 "optional" : 1,
10479 "type" : "boolean",
10480 "typetext" : "<boolean>"
10481 },
10482 "database" : {
10483 "default" : 1,
10484 "description" : "Restore the rule database. This is the default.",
10485 "optional" : 1,
10486 "type" : "boolean",
10487 "typetext" : "<boolean>"
10488 },
10489 "filename" : {
10490 "description" : "The backup file name.",
10491 "maxLength" : 256,
10492 "minLength" : 4,
10493 "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
10494 "type" : "string"
10495 },
10496 "node" : {
10497 "description" : "The cluster node name.",
10498 "format" : "pve-node",
10499 "type" : "string",
10500 "typetext" : "<string>"
10501 },
10502 "statistic" : {
10503 "default" : 0,
10504 "description" : "Restore statistic databases. Only considered when you restore the 'database'.",
10505 "optional" : 1,
10506 "type" : "boolean",
10507 "typetext" : "<boolean>"
10508 }
10509 }
10510 },
10511 "permissions" : {
10512 "check" : [
10513 "admin"
10514 ]
10515 },
10516 "protected" : 1,
10517 "proxyto" : "node",
10518 "returns" : {
10519 "type" : "string"
10520 }
10521 }
10522 },
10523 "leaf" : 1,
10524 "path" : "/nodes/{node}/backup/{filename}",
10525 "text" : "{filename}"
10526 }
10527 ],
10528 "info" : {
10529 "GET" : {
10530 "description" : "List all stored backups (files named proxmox-backup_{DATE}.tgz).",
10531 "method" : "GET",
10532 "name" : "list",
10533 "parameters" : {
10534 "additionalProperties" : 0,
10535 "properties" : {
10536 "node" : {
10537 "description" : "The cluster node name.",
10538 "format" : "pve-node",
10539 "type" : "string",
10540 "typetext" : "<string>"
10541 }
10542 }
10543 },
10544 "permissions" : {
10545 "check" : [
10546 "admin",
10547 "audit"
10548 ]
10549 },
10550 "protected" : 1,
10551 "proxyto" : "node",
10552 "returns" : {
10553 "items" : {
10554 "properties" : {
10555 "filename" : {
10556 "description" : "The backup file name.",
10557 "maxLength" : 256,
10558 "minLength" : 4,
10559 "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
10560 "type" : "string"
10561 },
10562 "size" : {
10563 "description" : "Size of backup file in bytes.",
10564 "type" : "integer"
10565 },
10566 "timestamp" : {
10567 "description" : "Backup timestamp (Unix epoch).",
10568 "type" : "integer"
10569 }
10570 },
10571 "type" : "object"
10572 },
10573 "links" : [
10574 {
10575 "href" : "{filename}",
10576 "rel" : "child"
10577 }
10578 ],
10579 "type" : "array"
10580 }
10581 },
10582 "POST" : {
10583 "description" : "Backup the system configuration.",
10584 "method" : "POST",
10585 "name" : "backup",
10586 "parameters" : {
10587 "additionalProperties" : 0,
10588 "properties" : {
10589 "node" : {
10590 "description" : "The cluster node name.",
10591 "format" : "pve-node",
10592 "type" : "string",
10593 "typetext" : "<string>"
10594 },
10595 "statistic" : {
10596 "default" : 1,
10597 "description" : "Backup statistic databases.",
10598 "optional" : 1,
10599 "type" : "boolean",
10600 "typetext" : "<boolean>"
10601 }
10602 }
10603 },
10604 "permissions" : {
10605 "check" : [
10606 "admin"
10607 ]
10608 },
10609 "protected" : 1,
10610 "proxyto" : "node",
10611 "returns" : {
10612 "type" : "string"
10613 }
10614 }
10615 },
10616 "leaf" : 0,
10617 "path" : "/nodes/{node}/backup",
10618 "text" : "backup"
10619 },
9fda36b0
DM
10620 {
10621 "info" : {
10622 "GET" : {
10623 "description" : "Read node RRD statistics",
10624 "method" : "GET",
10625 "name" : "rrddata",
10626 "parameters" : {
10627 "additionalProperties" : 0,
10628 "properties" : {
10629 "cf" : {
10630 "description" : "The RRD consolidation function",
10631 "enum" : [
10632 "AVERAGE",
10633 "MAX"
10634 ],
10635 "optional" : 1,
10636 "type" : "string"
10637 },
10638 "node" : {
10639 "description" : "The cluster node name.",
10640 "format" : "pve-node",
10641 "type" : "string",
10642 "typetext" : "<string>"
10643 },
10644 "timeframe" : {
10645 "description" : "Specify the time frame you are interested in.",
10646 "enum" : [
10647 "hour",
10648 "day",
10649 "week",
10650 "month",
10651 "year"
10652 ],
10653 "type" : "string"
10654 }
10655 }
10656 },
732d76e1
DM
10657 "permissions" : {
10658 "check" : [
10659 "admin",
10660 "audit"
10661 ]
10662 },
9fda36b0
DM
10663 "protected" : 1,
10664 "proxyto" : "node",
10665 "returns" : {
10666 "items" : {
10667 "properties" : {},
10668 "type" : "object"
10669 },
10670 "type" : "array"
10671 }
10672 }
10673 },
10674 "leaf" : 1,
10675 "path" : "/nodes/{node}/rrddata",
10676 "text" : "rrddata"
10677 },
10678 {
10679 "info" : {
10680 "GET" : {
10681 "description" : "Read system log",
10682 "method" : "GET",
10683 "name" : "syslog",
10684 "parameters" : {
10685 "additionalProperties" : 0,
10686 "properties" : {
10687 "limit" : {
10688 "minimum" : 0,
10689 "optional" : 1,
10690 "type" : "integer",
10691 "typetext" : "<integer> (0 - N)"
10692 },
10693 "node" : {
10694 "description" : "The cluster node name.",
10695 "format" : "pve-node",
10696 "type" : "string",
10697 "typetext" : "<string>"
10698 },
10699 "service" : {
10700 "description" : "Service ID",
10701 "maxLength" : 128,
10702 "optional" : 1,
10703 "type" : "string",
10704 "typetext" : "<string>"
10705 },
10706 "since" : {
10707 "description" : "Display all log since this date-time string.",
10708 "optional" : 1,
10709 "pattern" : "^\\d{4}-\\d{2}-\\d{2}( \\d{2}:\\d{2}(:\\d{2})?)?$",
10710 "type" : "string"
10711 },
10712 "start" : {
10713 "minimum" : 0,
10714 "optional" : 1,
10715 "type" : "integer",
10716 "typetext" : "<integer> (0 - N)"
10717 },
10718 "until" : {
10719 "description" : "Display all log until this date-time string.",
10720 "optional" : 1,
10721 "pattern" : "^\\d{4}-\\d{2}-\\d{2}( \\d{2}:\\d{2}(:\\d{2})?)?$",
10722 "type" : "string"
10723 }
10724 }
10725 },
732d76e1
DM
10726 "permissions" : {
10727 "check" : [
10728 "admin",
10729 "audit"
10730 ]
10731 },
9fda36b0
DM
10732 "protected" : 1,
10733 "proxyto" : "node",
10734 "returns" : {
10735 "items" : {
10736 "properties" : {
10737 "n" : {
10738 "description" : "Line number",
10739 "type" : "integer"
10740 },
10741 "t" : {
10742 "description" : "Line text",
10743 "type" : "string"
10744 }
10745 },
10746 "type" : "object"
10747 },
10748 "type" : "array"
10749 }
10750 }
10751 },
10752 "leaf" : 1,
10753 "path" : "/nodes/{node}/syslog",
10754 "text" : "syslog"
10755 },
10756 {
10757 "info" : {
10758 "POST" : {
10759 "description" : "Creates a VNC Shell proxy.",
10760 "method" : "POST",
10761 "name" : "vncshell",
10762 "parameters" : {
10763 "additionalProperties" : 0,
10764 "properties" : {
10765 "node" : {
10766 "description" : "The cluster node name.",
10767 "format" : "pve-node",
10768 "type" : "string",
10769 "typetext" : "<string>"
10770 },
10771 "upgrade" : {
10772 "default" : 0,
10773 "description" : "Run 'apt-get dist-upgrade' instead of normal shell.",
10774 "optional" : 1,
10775 "type" : "boolean",
10776 "typetext" : "<boolean>"
10777 },
10778 "websocket" : {
10779 "default" : 1,
10780 "description" : "use websocket instead of standard vnc.",
10781 "optional" : 1,
10782 "type" : "boolean",
10783 "typetext" : "<boolean>"
10784 }
10785 }
10786 },
10787 "protected" : 1,
10788 "returns" : {
10789 "additionalProperties" : 0,
10790 "properties" : {
10791 "port" : {
10792 "type" : "integer"
10793 },
10794 "ticket" : {
10795 "type" : "string"
10796 },
10797 "upid" : {
10798 "type" : "string"
10799 },
10800 "user" : {
10801 "type" : "string"
10802 }
10803 }
10804 }
10805 }
10806 },
10807 "leaf" : 1,
10808 "path" : "/nodes/{node}/vncshell",
10809 "text" : "vncshell"
10810 },
10811 {
10812 "info" : {
10813 "GET" : {
10814 "description" : "Opens a weksocket for VNC traffic.",
10815 "method" : "GET",
10816 "name" : "vncwebsocket",
10817 "parameters" : {
10818 "additionalProperties" : 0,
10819 "properties" : {
10820 "node" : {
10821 "description" : "The cluster node name.",
10822 "format" : "pve-node",
10823 "type" : "string",
10824 "typetext" : "<string>"
10825 },
10826 "port" : {
10827 "description" : "Port number returned by previous vncproxy call.",
10828 "maximum" : 5999,
10829 "minimum" : 5900,
10830 "type" : "integer",
10831 "typetext" : "<integer> (5900 - 5999)"
10832 },
10833 "vncticket" : {
10834 "description" : "Ticket from previous call to vncproxy.",
10835 "maxLength" : 512,
10836 "type" : "string",
10837 "typetext" : "<string>"
10838 }
10839 }
10840 },
10841 "returns" : {
10842 "properties" : {
10843 "port" : {
10844 "type" : "string"
10845 }
10846 },
10847 "type" : "object"
10848 }
10849 }
10850 },
10851 "leaf" : 1,
10852 "path" : "/nodes/{node}/vncwebsocket",
10853 "text" : "vncwebsocket"
10854 },
10855 {
10856 "info" : {
10857 "GET" : {
10858 "description" : "Read DNS settings.",
10859 "method" : "GET",
10860 "name" : "dns",
10861 "parameters" : {
10862 "additionalProperties" : 0,
10863 "properties" : {
10864 "node" : {
10865 "description" : "The cluster node name.",
10866 "format" : "pve-node",
10867 "type" : "string",
10868 "typetext" : "<string>"
10869 }
10870 }
10871 },
732d76e1
DM
10872 "permissions" : {
10873 "check" : [
10874 "admin",
10875 "audit"
10876 ]
10877 },
9fda36b0
DM
10878 "proxyto" : "node",
10879 "returns" : {
10880 "additionalProperties" : 0,
10881 "properties" : {
10882 "dns1" : {
10883 "description" : "First name server IP address.",
10884 "optional" : 1,
10885 "type" : "string"
10886 },
10887 "dns2" : {
10888 "description" : "Second name server IP address.",
10889 "optional" : 1,
10890 "type" : "string"
10891 },
10892 "dns3" : {
10893 "description" : "Third name server IP address.",
10894 "optional" : 1,
10895 "type" : "string"
10896 },
10897 "search" : {
10898 "description" : "Search domain for host-name lookup.",
10899 "optional" : 1,
10900 "type" : "string"
10901 }
10902 },
10903 "type" : "object"
10904 }
10905 },
10906 "PUT" : {
10907 "description" : "Write DNS settings.",
10908 "method" : "PUT",
10909 "name" : "update_dns",
10910 "parameters" : {
10911 "additionalProperties" : 0,
10912 "properties" : {
10913 "dns1" : {
10914 "description" : "First name server IP address.",
10915 "format" : "ip",
10916 "optional" : 1,
10917 "type" : "string",
10918 "typetext" : "<string>"
10919 },
10920 "dns2" : {
10921 "description" : "Second name server IP address.",
10922 "format" : "ip",
10923 "optional" : 1,
10924 "type" : "string",
10925 "typetext" : "<string>"
10926 },
10927 "dns3" : {
10928 "description" : "Third name server IP address.",
10929 "format" : "ip",
10930 "optional" : 1,
10931 "type" : "string",
10932 "typetext" : "<string>"
10933 },
10934 "node" : {
10935 "description" : "The cluster node name.",
10936 "format" : "pve-node",
10937 "type" : "string",
10938 "typetext" : "<string>"
10939 },
10940 "search" : {
10941 "description" : "Search domain for host-name lookup.",
10942 "type" : "string",
10943 "typetext" : "<string>"
10944 }
10945 }
10946 },
10947 "protected" : 1,
10948 "proxyto" : "node",
10949 "returns" : {
10950 "type" : "null"
10951 }
10952 }
10953 },
10954 "leaf" : 1,
10955 "path" : "/nodes/{node}/dns",
10956 "text" : "dns"
10957 },
10958 {
10959 "info" : {
10960 "GET" : {
10961 "description" : "Read server time and time zone settings.",
10962 "method" : "GET",
10963 "name" : "time",
10964 "parameters" : {
10965 "additionalProperties" : 0,
10966 "properties" : {
10967 "node" : {
10968 "description" : "The cluster node name.",
10969 "format" : "pve-node",
10970 "type" : "string",
10971 "typetext" : "<string>"
10972 }
10973 }
10974 },
732d76e1
DM
10975 "permissions" : {
10976 "check" : [
10977 "admin",
10978 "audit"
10979 ]
10980 },
9fda36b0
DM
10981 "proxyto" : "node",
10982 "returns" : {
10983 "additionalProperties" : 0,
10984 "properties" : {
10985 "localtime" : {
10986 "description" : "Seconds since 1970-01-01 00:00:00 (local time)",
10987 "minimum" : 1297163644,
10988 "type" : "integer"
10989 },
10990 "time" : {
10991 "description" : "Seconds since 1970-01-01 00:00:00 UTC.",
10992 "minimum" : 1297163644,
10993 "type" : "integer"
10994 },
10995 "timezone" : {
10996 "description" : "Time zone",
10997 "type" : "string"
10998 }
10999 },
11000 "type" : "object"
11001 }
11002 },
11003 "PUT" : {
11004 "description" : "Set time zone.",
11005 "method" : "PUT",
11006 "name" : "set_timezone",
11007 "parameters" : {
11008 "additionalProperties" : 0,
11009 "properties" : {
11010 "node" : {
11011 "description" : "The cluster node name.",
11012 "format" : "pve-node",
11013 "type" : "string",
11014 "typetext" : "<string>"
11015 },
11016 "timezone" : {
11017 "description" : "Time zone. The file '/usr/share/zoneinfo/zone.tab' contains the list of valid names.",
11018 "type" : "string",
11019 "typetext" : "<string>"
11020 }
11021 }
11022 },
11023 "protected" : 1,
11024 "proxyto" : "node",
11025 "returns" : {
11026 "type" : "null"
11027 }
11028 }
11029 },
11030 "leaf" : 1,
11031 "path" : "/nodes/{node}/time",
11032 "text" : "time"
11033 },
11034 {
11035 "info" : {
11036 "GET" : {
11037 "description" : "Read server status. This is used by the cluster manager to test the node health.",
11038 "method" : "GET",
11039 "name" : "status",
11040 "parameters" : {
11041 "additionalProperties" : 0,
11042 "properties" : {
11043 "node" : {
11044 "description" : "The cluster node name.",
11045 "format" : "pve-node",
11046 "type" : "string",
11047 "typetext" : "<string>"
11048 }
11049 }
11050 },
11051 "protected" : 1,
11052 "proxyto" : "node",
11053 "returns" : {
11054 "additionalProperties" : 1,
11055 "properties" : {
11056 "insync" : {
11057 "description" : "Database is synced with other nodes.",
11058 "type" : "boolean"
11059 },
11060 "time" : {
11061 "description" : "Seconds since 1970-01-01 00:00:00 UTC.",
11062 "minimum" : 1297163644,
11063 "type" : "integer"
11064 },
11065 "uptime" : {
11066 "description" : "The uptime of the system in seconds.",
11067 "minimum" : 0,
11068 "type" : "integer"
11069 }
11070 },
11071 "type" : "object"
11072 }
11073 }
11074 },
11075 "leaf" : 1,
11076 "path" : "/nodes/{node}/status",
11077 "text" : "status"
11078 }
11079 ],
11080 "info" : {
11081 "GET" : {
11082 "description" : "Node index.",
11083 "method" : "GET",
11084 "name" : "index",
11085 "parameters" : {
11086 "additionalProperties" : 0,
11087 "properties" : {
11088 "node" : {
11089 "description" : "The cluster node name.",
11090 "format" : "pve-node",
11091 "type" : "string",
11092 "typetext" : "<string>"
11093 }
11094 }
11095 },
11096 "permissions" : {
11097 "user" : "all"
11098 },
11099 "returns" : {
11100 "items" : {
11101 "properties" : {},
11102 "type" : "object"
11103 },
11104 "links" : [
11105 {
11106 "href" : "{name}",
11107 "rel" : "child"
11108 }
11109 ],
11110 "type" : "array"
11111 }
11112 }
11113 },
11114 "leaf" : 0,
11115 "path" : "/nodes/{node}",
11116 "text" : "{node}"
11117 }
11118 ],
11119 "info" : {
11120 "GET" : {
11121 "description" : "Cluster node index.",
11122 "method" : "GET",
11123 "name" : "index",
11124 "parameters" : {
11125 "additionalProperties" : 0
11126 },
11127 "permissions" : {
11128 "user" : "all"
11129 },
11130 "returns" : {
11131 "items" : {
11132 "properties" : {},
11133 "type" : "object"
11134 },
11135 "links" : [
11136 {
11137 "href" : "{node}",
11138 "rel" : "child"
11139 }
11140 ],
11141 "type" : "array"
11142 }
11143 }
11144 },
11145 "leaf" : 0,
11146 "path" : "/nodes",
11147 "text" : "nodes"
11148 },
11149 {
11150 "children" : [
11151 {
11152 "children" : [
11153 {
11154 "info" : {
11155 "DELETE" : {
11156 "description" : "Delete a user.",
11157 "method" : "DELETE",
11158 "name" : "delete",
11159 "parameters" : {
11160 "additionalProperties" : 0,
11161 "properties" : {
11162 "userid" : {
11163 "description" : "User ID",
11164 "format" : "pmg-userid",
11165 "maxLength" : 64,
11166 "minLength" : 4,
11167 "type" : "string",
11168 "typetext" : "<string>"
11169 }
11170 }
11171 },
11172 "protected" : 1,
11173 "proxyto" : "master",
11174 "returns" : {
11175 "type" : "null"
11176 }
11177 },
11178 "GET" : {
11179 "description" : "Read User data.",
11180 "method" : "GET",
11181 "name" : "read",
11182 "parameters" : {
11183 "additionalProperties" : 0,
11184 "properties" : {
11185 "userid" : {
11186 "description" : "User ID",
11187 "format" : "pmg-userid",
11188 "maxLength" : 64,
11189 "minLength" : 4,
11190 "type" : "string",
11191 "typetext" : "<string>"
11192 }
11193 }
11194 },
11195 "protected" : 1,
11196 "proxyto" : "master",
11197 "returns" : {
11198 "properties" : {},
11199 "type" : "object"
11200 }
11201 },
11202 "PUT" : {
11203 "description" : "Update user data.",
11204 "method" : "PUT",
11205 "name" : "write",
11206 "parameters" : {
11207 "additionalProperties" : 0,
11208 "properties" : {
11209 "comment" : {
11210 "description" : "Comment.",
11211 "optional" : 1,
11212 "type" : "string",
11213 "typetext" : "<string>"
11214 },
11215 "crypt_pass" : {
11216 "description" : "Encrypted password (see `man crypt`)",
11217 "optional" : 1,
11218 "pattern" : "\\$\\d\\$[a-zA-Z0-9\\.\\/]+\\$[a-zA-Z0-9\\.\\/]+",
11219 "type" : "string"
11220 },
11221 "delete" : {
11222 "description" : "A list of settings you want to delete.",
11223 "format" : "pve-configid-list",
11224 "maxLength" : 4096,
11225 "optional" : 1,
11226 "type" : "string",
11227 "typetext" : "<string>"
11228 },
11229 "email" : {
11230 "description" : "Users E-Mail address.",
11231 "format" : "email",
11232 "optional" : 1,
11233 "type" : "string",
11234 "typetext" : "<string>"
11235 },
11236 "enable" : {
11237 "default" : 0,
11238 "description" : "Flag to enable or disable the account.",
11239 "optional" : 1,
11240 "type" : "boolean",
11241 "typetext" : "<boolean>"
11242 },
11243 "expire" : {
11244 "default" : 0,
11245 "description" : "Account expiration date (seconds since epoch). '0' means no expiration date.",
11246 "minimum" : 0,
11247 "optional" : 1,
11248 "type" : "integer",
11249 "typetext" : "<integer> (0 - N)"
11250 },
11251 "firstname" : {
11252 "description" : "First name.",
11253 "maxLength" : 64,
11254 "optional" : 1,
11255 "type" : "string",
11256 "typetext" : "<string>"
11257 },
11258 "keys" : {
11259 "description" : "Keys for two factor auth (yubico).",
11260 "maxLength" : 128,
11261 "optional" : 1,
11262 "type" : "string",
11263 "typetext" : "<string>"
11264 },
11265 "lastname" : {
11266 "description" : "Last name.",
11267 "maxLength" : 64,
11268 "optional" : 1,
11269 "type" : "string",
11270 "typetext" : "<string>"
11271 },
11272 "password" : {
11273 "description" : "Password",
11274 "maxLength" : 32,
11275 "minLength" : 5,
11276 "optional" : 1,
11277 "type" : "string",
11278 "typetext" : "<string>"
11279 },
11280 "role" : {
11281 "description" : "User role. Role 'root' is reseved for the Unix Superuser.",
11282 "enum" : [
11283 "root",
11284 "admin",
11285 "qmanager",
11286 "audit"
11287 ],
11288 "optional" : 1,
11289 "type" : "string"
11290 },
11291 "userid" : {
11292 "description" : "User ID",
11293 "format" : "pmg-userid",
11294 "maxLength" : 64,
11295 "minLength" : 4,
11296 "type" : "string",
11297 "typetext" : "<string>"
11298 }
11299 }
11300 },
11301 "protected" : 1,
11302 "proxyto" : "master",
11303 "returns" : {
11304 "type" : "null"
11305 }
11306 }
11307 },
11308 "leaf" : 1,
11309 "path" : "/access/users/{userid}",
11310 "text" : "{userid}"
11311 }
11312 ],
11313 "info" : {
11314 "GET" : {
11315 "description" : "List users.",
11316 "method" : "GET",
11317 "name" : "index",
11318 "parameters" : {
11319 "additionalProperties" : 0
11320 },
11321 "permissions" : {
11322 "check" : [
11323 "admin"
11324 ]
11325 },
11326 "protected" : 1,
11327 "proxyto" : "master",
11328 "returns" : {
11329 "items" : {
11330 "properties" : {
11331 "comment" : {
11332 "optional" : 1,
11333 "type" : "string"
11334 },
11335 "enable" : {
11336 "type" : "boolean"
11337 },
11338 "role" : {
11339 "type" : "string"
11340 },
11341 "userid" : {
11342 "type" : "string"
11343 }
11344 },
11345 "type" : "object"
11346 },
11347 "links" : [
11348 {
11349 "href" : "{userid}",
11350 "rel" : "child"
11351 }
11352 ],
11353 "type" : "array"
11354 }
11355 },
11356 "POST" : {
11357 "description" : "Creat new user",
11358 "method" : "POST",
11359 "name" : "create",
11360 "parameters" : {
11361 "additionalProperties" : 0,
11362 "properties" : {
11363 "comment" : {
11364 "description" : "Comment.",
11365 "optional" : 1,
11366 "type" : "string",
11367 "typetext" : "<string>"
11368 },
11369 "crypt_pass" : {
11370 "description" : "Encrypted password (see `man crypt`)",
11371 "optional" : 1,
11372 "pattern" : "\\$\\d\\$[a-zA-Z0-9\\.\\/]+\\$[a-zA-Z0-9\\.\\/]+",
11373 "type" : "string"
11374 },
11375 "email" : {
11376 "description" : "Users E-Mail address.",
11377 "format" : "email",
11378 "optional" : 1,
11379 "type" : "string",
11380 "typetext" : "<string>"
11381 },
11382 "enable" : {
11383 "default" : 0,
11384 "description" : "Flag to enable or disable the account.",
11385 "optional" : 1,
11386 "type" : "boolean",
11387 "typetext" : "<boolean>"
11388 },
11389 "expire" : {
11390 "default" : 0,
11391 "description" : "Account expiration date (seconds since epoch). '0' means no expiration date.",
11392 "minimum" : 0,
11393 "optional" : 1,
11394 "type" : "integer",
11395 "typetext" : "<integer> (0 - N)"
11396 },
11397 "firstname" : {
11398 "description" : "First name.",
11399 "maxLength" : 64,
11400 "optional" : 1,
11401 "type" : "string",
11402 "typetext" : "<string>"
a55e94a6 11403 },
9fda36b0
DM
11404 "keys" : {
11405 "description" : "Keys for two factor auth (yubico).",
11406 "maxLength" : 128,
11407 "optional" : 1,
11408 "type" : "string",
11409 "typetext" : "<string>"
11410 },
11411 "lastname" : {
11412 "description" : "Last name.",
11413 "maxLength" : 64,
11414 "optional" : 1,
11415 "type" : "string",
11416 "typetext" : "<string>"
11417 },
11418 "password" : {
11419 "description" : "Password",
11420 "maxLength" : 32,
11421 "minLength" : 5,
11422 "optional" : 1,
11423 "type" : "string",
11424 "typetext" : "<string>"
11425 },
11426 "role" : {
11427 "description" : "User role. Role 'root' is reseved for the Unix Superuser.",
11428 "enum" : [
11429 "root",
11430 "admin",
11431 "qmanager",
11432 "audit"
a55e94a6 11433 ],
9fda36b0
DM
11434 "type" : "string"
11435 },
11436 "userid" : {
11437 "description" : "User ID",
11438 "format" : "pmg-userid",
11439 "maxLength" : 64,
11440 "minLength" : 4,
11441 "type" : "string",
11442 "typetext" : "<string>"
a55e94a6
DM
11443 }
11444 }
11445 },
9fda36b0
DM
11446 "protected" : 1,
11447 "proxyto" : "master",
11448 "returns" : {
11449 "type" : "null"
11450 }
11451 }
11452 },
11453 "leaf" : 0,
11454 "path" : "/access/users",
11455 "text" : "users"
11456 },
11457 {
11458 "info" : {
11459 "GET" : {
11460 "description" : "Dummy. Useful for formaters which want to priovde a login page.",
11461 "method" : "GET",
11462 "name" : "get_ticket",
11463 "parameters" : {
11464 "additionalProperties" : 0
11465 },
11466 "permissions" : {
11467 "user" : "world"
11468 },
11469 "returns" : {
11470 "type" : "null"
11471 }
a55e94a6 11472 },
9fda36b0
DM
11473 "POST" : {
11474 "description" : "Create or verify authentication ticket.",
11475 "method" : "POST",
11476 "name" : "create_ticket",
11477 "parameters" : {
11478 "additionalProperties" : 0,
11479 "properties" : {
11480 "otp" : {
11481 "description" : "One-time password for Two-factor authentication.",
11482 "optional" : 1,
11483 "type" : "string",
11484 "typetext" : "<string>"
410dc2c9 11485 },
9fda36b0
DM
11486 "password" : {
11487 "description" : "The secret password. This can also be a valid ticket.",
11488 "type" : "string",
11489 "typetext" : "<string>"
11490 },
11491 "realm" : {
11492 "description" : "You can optionally pass the realm using this parameter. Normally the realm is simply added to the username <username>@<relam>.",
732d76e1
DM
11493 "enum" : [
11494 "pam",
11495 "pmg",
11496 "quarantine"
11497 ],
9fda36b0
DM
11498 "maxLength" : 32,
11499 "optional" : 1,
732d76e1 11500 "type" : "string"
9fda36b0
DM
11501 },
11502 "username" : {
11503 "description" : "User name",
11504 "maxLength" : 64,
11505 "type" : "string",
11506 "typetext" : "<string>"
11507 }
11508 }
11509 },
11510 "permissions" : {
11511 "description" : "You need to pass valid credientials.",
11512 "user" : "world"
11513 },
11514 "protected" : 1,
11515 "returns" : {
11516 "properties" : {
11517 "CSRFPreventionToken" : {
11518 "optional" : 1,
11519 "type" : "string"
11520 },
11521 "role" : {
11522 "optional" : 1,
11523 "type" : "string"
11524 },
11525 "ticket" : {
11526 "optional" : 1,
11527 "type" : "string"
11528 },
11529 "username" : {
11530 "type" : "string"
11531 }
11532 },
11533 "type" : "object"
11534 }
11535 }
11536 },
11537 "leaf" : 1,
11538 "path" : "/access/ticket",
11539 "text" : "ticket"
11540 },
11541 {
11542 "info" : {
11543 "PUT" : {
11544 "description" : "Change user password.",
11545 "method" : "PUT",
11546 "name" : "change_passsword",
11547 "parameters" : {
11548 "additionalProperties" : 0,
11549 "properties" : {
11550 "password" : {
11551 "description" : "The new password.",
11552 "maxLength" : 64,
11553 "minLength" : 5,
11554 "type" : "string",
11555 "typetext" : "<string>"
11556 },
11557 "userid" : {
11558 "description" : "User ID",
11559 "format" : "pmg-userid",
11560 "maxLength" : 64,
11561 "minLength" : 4,
11562 "type" : "string",
11563 "typetext" : "<string>"
410dc2c9
DM
11564 }
11565 }
11566 },
9fda36b0
DM
11567 "permissions" : {
11568 "description" : "Each user is allowed to change his own password. Only root can change the password of another user.",
11569 "user" : "all"
11570 },
11571 "protected" : 1,
11572 "returns" : {
11573 "type" : "null"
11574 }
11575 }
11576 },
11577 "leaf" : 1,
11578 "path" : "/access/password",
11579 "text" : "password"
11580 }
11581 ],
11582 "info" : {
11583 "GET" : {
11584 "description" : "Directory index.",
11585 "method" : "GET",
11586 "name" : "index",
11587 "parameters" : {
11588 "additionalProperties" : 0
11589 },
11590 "permissions" : {
11591 "user" : "all"
11592 },
11593 "returns" : {
11594 "items" : {
11595 "properties" : {
11596 "subdir" : {
11597 "type" : "string"
11598 }
11599 },
11600 "type" : "object"
410dc2c9 11601 },
9fda36b0
DM
11602 "links" : [
11603 {
11604 "href" : "{subdir}",
11605 "rel" : "child"
11606 }
11607 ],
11608 "type" : "array"
11609 }
11610 }
11611 },
11612 "leaf" : 0,
11613 "path" : "/access",
11614 "text" : "access"
11615 },
11616 {
11617 "children" : [
11618 {
11619 "children" : [
410dc2c9
DM
11620 {
11621 "info" : {
9fda36b0
DM
11622 "DELETE" : {
11623 "description" : "Delete user whitelist entries.",
11624 "method" : "DELETE",
11625 "name" : "whitelist_delete",
410dc2c9
DM
11626 "parameters" : {
11627 "additionalProperties" : 0,
11628 "properties" : {
9fda36b0
DM
11629 "address" : {
11630 "description" : "The address you want to remove.",
11631 "maxLength" : 512,
11632 "minLength" : 3,
11633 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
11634 "type" : "string"
410dc2c9 11635 },
9fda36b0
DM
11636 "pmail" : {
11637 "description" : "List entries for the user with this primary email address. Quarantine users cannot speficy this parameter, but it is required for all other roles.",
11638 "format" : "email",
d7cd791b
DM
11639 "optional" : 1,
11640 "type" : "string",
11641 "typetext" : "<string>"
410dc2c9
DM
11642 }
11643 }
11644 },
9fda36b0
DM
11645 "permissions" : {
11646 "check" : [
11647 "admin",
11648 "qmanager",
11649 "audit",
11650 "quser"
11651 ]
11652 },
410dc2c9 11653 "protected" : 1,
410dc2c9 11654 "returns" : {
9fda36b0 11655 "type" : "null"
410dc2c9
DM
11656 }
11657 }
11658 },
11659 "leaf" : 1,
9fda36b0
DM
11660 "path" : "/quarantine/whitelist/{address}",
11661 "text" : "{address}"
11662 }
11663 ],
11664 "info" : {
11665 "GET" : {
11666 "description" : "Show user whitelist.",
11667 "method" : "GET",
11668 "name" : "whitelist",
11669 "parameters" : {
11670 "additionalProperties" : 0,
11671 "properties" : {
11672 "pmail" : {
11673 "description" : "List entries for the user with this primary email address. Quarantine users cannot speficy this parameter, but it is required for all other roles.",
11674 "format" : "email",
11675 "optional" : 1,
11676 "type" : "string",
11677 "typetext" : "<string>"
11678 }
11679 }
11680 },
11681 "permissions" : {
11682 "check" : [
11683 "admin",
11684 "qmanager",
11685 "audit",
11686 "quser"
11687 ]
11688 },
11689 "returns" : {
11690 "items" : {
11691 "properties" : {
11692 "address" : {
11693 "type" : "string"
410dc2c9
DM
11694 }
11695 },
9fda36b0
DM
11696 "type" : "object"
11697 },
11698 "type" : "array"
11699 }
11700 },
11701 "POST" : {
11702 "description" : "Add user whitelist entries.",
11703 "method" : "POST",
11704 "name" : "whitelist_add",
11705 "parameters" : {
11706 "additionalProperties" : 0,
11707 "properties" : {
11708 "address" : {
11709 "description" : "The address you want to add.",
11710 "maxLength" : 512,
11711 "minLength" : 3,
11712 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
11713 "type" : "string"
11714 },
11715 "pmail" : {
11716 "description" : "List entries for the user with this primary email address. Quarantine users cannot speficy this parameter, but it is required for all other roles.",
11717 "format" : "email",
11718 "optional" : 1,
11719 "type" : "string",
11720 "typetext" : "<string>"
410dc2c9
DM
11721 }
11722 }
11723 },
9fda36b0
DM
11724 "permissions" : {
11725 "check" : [
11726 "admin",
11727 "qmanager",
11728 "audit",
11729 "quser"
11730 ]
11731 },
11732 "protected" : 1,
11733 "returns" : {
11734 "type" : "null"
11735 }
11736 }
11737 },
11738 "leaf" : 0,
11739 "path" : "/quarantine/whitelist",
11740 "text" : "whitelist"
11741 },
11742 {
11743 "children" : [
11744 {
11745 "info" : {
11746 "DELETE" : {
11747 "description" : "Delete user blacklist entries.",
11748 "method" : "DELETE",
11749 "name" : "blacklist_delete",
11750 "parameters" : {
11751 "additionalProperties" : 0,
11752 "properties" : {
11753 "address" : {
11754 "description" : "The address you want to remove.",
410dc2c9 11755 "maxLength" : 512,
9fda36b0
DM
11756 "minLength" : 3,
11757 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
11758 "type" : "string"
11759 },
11760 "pmail" : {
11761 "description" : "List entries for the user with this primary email address. Quarantine users cannot speficy this parameter, but it is required for all other roles.",
11762 "format" : "email",
11763 "optional" : 1,
410dc2c9
DM
11764 "type" : "string",
11765 "typetext" : "<string>"
11766 }
11767 }
11768 },
9fda36b0
DM
11769 "permissions" : {
11770 "check" : [
11771 "admin",
11772 "qmanager",
11773 "audit",
11774 "quser"
11775 ]
11776 },
11777 "protected" : 1,
410dc2c9 11778 "returns" : {
9fda36b0 11779 "type" : "null"
410dc2c9
DM
11780 }
11781 }
11782 },
11783 "leaf" : 1,
9fda36b0
DM
11784 "path" : "/quarantine/blacklist/{address}",
11785 "text" : "{address}"
11786 }
11787 ],
11788 "info" : {
11789 "GET" : {
11790 "description" : "Show user blacklist.",
11791 "method" : "GET",
11792 "name" : "blacklist",
11793 "parameters" : {
11794 "additionalProperties" : 0,
11795 "properties" : {
11796 "pmail" : {
11797 "description" : "List entries for the user with this primary email address. Quarantine users cannot speficy this parameter, but it is required for all other roles.",
11798 "format" : "email",
11799 "optional" : 1,
11800 "type" : "string",
11801 "typetext" : "<string>"
11802 }
11803 }
11804 },
11805 "permissions" : {
11806 "check" : [
11807 "admin",
11808 "qmanager",
11809 "audit",
11810 "quser"
11811 ]
11812 },
11813 "returns" : {
11814 "items" : {
11815 "properties" : {
11816 "address" : {
11817 "type" : "string"
410dc2c9
DM
11818 }
11819 },
9fda36b0
DM
11820 "type" : "object"
11821 },
11822 "type" : "array"
11823 }
11824 },
11825 "POST" : {
11826 "description" : "Add user blacklist entries.",
11827 "method" : "POST",
11828 "name" : "blacklist_add",
11829 "parameters" : {
11830 "additionalProperties" : 0,
11831 "properties" : {
11832 "address" : {
11833 "description" : "The address you want to add.",
11834 "maxLength" : 512,
11835 "minLength" : 3,
11836 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
11837 "type" : "string"
11838 },
11839 "pmail" : {
11840 "description" : "List entries for the user with this primary email address. Quarantine users cannot speficy this parameter, but it is required for all other roles.",
11841 "format" : "email",
11842 "optional" : 1,
11843 "type" : "string",
11844 "typetext" : "<string>"
11845 }
11846 }
11847 },
11848 "permissions" : {
11849 "check" : [
11850 "admin",
11851 "qmanager",
11852 "audit",
11853 "quser"
11854 ]
11855 },
11856 "protected" : 1,
11857 "returns" : {
11858 "type" : "null"
11859 }
11860 }
11861 },
11862 "leaf" : 0,
11863 "path" : "/quarantine/blacklist",
11864 "text" : "blacklist"
11865 },
11866 {
11867 "info" : {
11868 "GET" : {
11869 "description" : "Get a list of receivers of spam in the given timespan (Default the last 24 hours).",
11870 "method" : "GET",
11871 "name" : "spamusers",
11872 "parameters" : {
11873 "additionalProperties" : 0,
11874 "properties" : {
11875 "endtime" : {
11876 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
11877 "minimum" : 1,
11878 "optional" : 1,
11879 "type" : "integer",
11880 "typetext" : "<integer> (1 - N)"
11881 },
11882 "starttime" : {
11883 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
11884 "minimum" : 0,
11885 "optional" : 1,
11886 "type" : "integer",
11887 "typetext" : "<integer> (0 - N)"
410dc2c9 11888 }
9fda36b0
DM
11889 }
11890 },
11891 "permissions" : {
11892 "check" : [
11893 "admin",
11894 "qmanager",
11895 "audit"
11896 ]
11897 },
11898 "returns" : {
11899 "items" : {
11900 "properties" : {
11901 "mail" : {
11902 "description" : "the receiving email",
11903 "type" : "string"
11904 }
11905 },
11906 "type" : "object"
410dc2c9 11907 },
9fda36b0
DM
11908 "type" : "array"
11909 }
11910 }
11911 },
11912 "leaf" : 1,
11913 "path" : "/quarantine/spamusers",
11914 "text" : "spamusers"
11915 },
11916 {
11917 "info" : {
11918 "GET" : {
11919 "description" : "Get Spam Quarantine Status",
11920 "method" : "GET",
11921 "name" : "spamstatus",
11922 "parameters" : {
11923 "additionalProperties" : 0
11924 },
11925 "permissions" : {
11926 "check" : [
11927 "admin",
11928 "qmanager",
11929 "audit"
11930 ]
11931 },
11932 "returns" : {
11933 "properties" : {
11934 "avgbytes" : {
11935 "description" : "Average size of stored mails in bytes.",
11936 "type" : "number"
11937 },
11938 "avgspam" : {
11939 "description" : "Average spam level.",
11940 "type" : "number"
11941 },
11942 "count" : {
11943 "description" : "Number of stored mails.",
11944 "type" : "integer"
11945 },
11946 "mbytes" : {
11947 "description" : "Estimated disk space usage in MByte.",
11948 "type" : "number"
11949 }
11950 },
11951 "type" : "object"
11952 }
11953 }
11954 },
11955 "leaf" : 1,
11956 "path" : "/quarantine/spamstatus",
11957 "text" : "spamstatus"
11958 },
11959 {
11960 "info" : {
11961 "GET" : {
11962 "description" : "Get a list of users with whitelist/blacklist setttings.",
11963 "method" : "GET",
11964 "name" : "quarusers",
11965 "parameters" : {
11966 "additionalProperties" : 0
11967 },
11968 "permissions" : {
11969 "check" : [
11970 "admin",
11971 "qmanager",
11972 "audit"
11973 ]
11974 },
11975 "returns" : {
11976 "items" : {
11977 "properties" : {
11978 "mail" : {
11979 "description" : "the receiving email",
11980 "type" : "string"
410dc2c9
DM
11981 }
11982 },
9fda36b0
DM
11983 "type" : "object"
11984 },
11985 "type" : "array"
11986 }
11987 }
11988 },
11989 "leaf" : 1,
11990 "path" : "/quarantine/quarusers",
11991 "text" : "quarusers"
11992 },
11993 {
11994 "info" : {
11995 "GET" : {
11996 "description" : "Get a list of quarantined spam mails in the given timeframe (default the last 24 hours) for the given user.",
11997 "method" : "GET",
11998 "name" : "spam",
11999 "parameters" : {
12000 "additionalProperties" : 0,
12001 "properties" : {
12002 "endtime" : {
12003 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12004 "minimum" : 1,
12005 "optional" : 1,
12006 "type" : "integer",
12007 "typetext" : "<integer> (1 - N)"
12008 },
12009 "pmail" : {
12010 "description" : "List entries for the user with this primary email address. Quarantine users cannot speficy this parameter, but it is required for all other roles.",
12011 "format" : "email",
12012 "optional" : 1,
12013 "type" : "string",
12014 "typetext" : "<string>"
12015 },
12016 "starttime" : {
12017 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12018 "minimum" : 0,
12019 "optional" : 1,
12020 "type" : "integer",
12021 "typetext" : "<integer> (0 - N)"
410dc2c9
DM
12022 }
12023 }
12024 },
9fda36b0
DM
12025 "permissions" : {
12026 "check" : [
12027 "admin",
12028 "qmanager",
12029 "audit",
12030 "quser"
12031 ]
12032 },
12033 "returns" : {
12034 "items" : {
12035 "properties" : {
12036 "bytes" : {
12037 "description" : "Size of raw email.",
12038 "type" : "integer"
12039 },
12040 "envelope_sender" : {
12041 "description" : "SMTP envelope sender.",
12042 "type" : "string"
12043 },
12044 "from" : {
12045 "description" : "Header 'From' field.",
12046 "type" : "string"
12047 },
12048 "id" : {
12049 "description" : "Unique ID",
12050 "type" : "string"
12051 },
12052 "receiver" : {
12053 "description" : "Receiver email address",
12054 "type" : "string"
12055 },
12056 "sender" : {
12057 "description" : "Header 'Sender' field.",
12058 "optional" : 1,
12059 "type" : "string"
12060 },
12061 "spamlevel" : {
12062 "description" : "Spam score.",
12063 "type" : "number"
12064 },
12065 "subject" : {
12066 "description" : "Header 'Subject' field.",
12067 "type" : "string"
12068 },
12069 "time" : {
12070 "description" : "Receive time stamp",
12071 "type" : "integer"
410dc2c9
DM
12072 }
12073 },
9fda36b0 12074 "type" : "object"
410dc2c9 12075 },
9fda36b0
DM
12076 "type" : "array"
12077 }
12078 }
12079 },
12080 "leaf" : 1,
12081 "path" : "/quarantine/spam",
12082 "text" : "spam"
12083 },
12084 {
12085 "info" : {
12086 "GET" : {
12087 "description" : "Get a list of quarantined virus mails in the given timeframe (default the last 24 hours).",
12088 "method" : "GET",
12089 "name" : "virus",
12090 "parameters" : {
12091 "additionalProperties" : 0,
12092 "properties" : {
12093 "endtime" : {
12094 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12095 "minimum" : 1,
12096 "optional" : 1,
12097 "type" : "integer",
12098 "typetext" : "<integer> (1 - N)"
410dc2c9 12099 },
9fda36b0
DM
12100 "starttime" : {
12101 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12102 "minimum" : 0,
12103 "optional" : 1,
12104 "type" : "integer",
12105 "typetext" : "<integer> (0 - N)"
410dc2c9
DM
12106 }
12107 }
12108 },
9fda36b0
DM
12109 "permissions" : {
12110 "check" : [
12111 "admin",
12112 "qmanager",
12113 "audit"
12114 ]
12115 },
12116 "returns" : {
12117 "items" : {
12118 "properties" : {
12119 "bytes" : {
12120 "description" : "Size of raw email.",
12121 "type" : "integer"
12122 },
12123 "envelope_sender" : {
12124 "description" : "SMTP envelope sender.",
12125 "type" : "string"
12126 },
12127 "from" : {
12128 "description" : "Header 'From' field.",
12129 "type" : "string"
12130 },
12131 "id" : {
12132 "description" : "Unique ID",
12133 "type" : "string"
12134 },
12135 "receiver" : {
12136 "description" : "Receiver email address",
12137 "type" : "string"
12138 },
12139 "sender" : {
12140 "description" : "Header 'Sender' field.",
12141 "optional" : 1,
12142 "type" : "string"
12143 },
12144 "subject" : {
12145 "description" : "Header 'Subject' field.",
12146 "type" : "string"
12147 },
12148 "time" : {
12149 "description" : "Receive time stamp",
12150 "type" : "integer"
12151 },
12152 "virusname" : {
12153 "description" : "Virus name.",
12154 "type" : "string"
d7cd791b
DM
12155 }
12156 },
9fda36b0
DM
12157 "type" : "object"
12158 },
12159 "type" : "array"
12160 }
12161 }
12162 },
12163 "leaf" : 1,
12164 "path" : "/quarantine/virus",
12165 "text" : "virus"
12166 },
12167 {
12168 "info" : {
12169 "GET" : {
12170 "description" : "Get Virus Quarantine Status",
12171 "method" : "GET",
12172 "name" : "virusstatus",
12173 "parameters" : {
12174 "additionalProperties" : 0
12175 },
12176 "permissions" : {
12177 "check" : [
12178 "admin",
12179 "qmanager",
12180 "audit"
12181 ]
12182 },
12183 "returns" : {
12184 "properties" : {
12185 "avgbytes" : {
12186 "description" : "Average size of stored mails in bytes.",
12187 "type" : "number"
12188 },
12189 "count" : {
12190 "description" : "Number of stored mails.",
12191 "type" : "integer"
12192 },
12193 "mbytes" : {
12194 "description" : "Estimated disk space usage in MByte.",
12195 "type" : "number"
d7cd791b 12196 }
9fda36b0
DM
12197 },
12198 "type" : "object"
12199 }
d7cd791b 12200 }
9fda36b0
DM
12201 },
12202 "leaf" : 1,
12203 "path" : "/quarantine/virusstatus",
12204 "text" : "virusstatus"
12205 },
12206 {
d7cd791b
DM
12207 "info" : {
12208 "GET" : {
9fda36b0 12209 "description" : "Get email data. There is a special formatter called 'htmlmail' to get sanitized html view of the mail content (use the '/api2/htmlmail/quarantine/content' url).",
d7cd791b 12210 "method" : "GET",
9fda36b0 12211 "name" : "content",
d7cd791b
DM
12212 "parameters" : {
12213 "additionalProperties" : 0,
12214 "properties" : {
9fda36b0
DM
12215 "id" : {
12216 "description" : "Unique ID",
12217 "maxLength" : 40,
12218 "pattern" : "C\\d+R\\d+",
12219 "type" : "string"
12220 },
12221 "raw" : {
12222 "default" : 0,
12223 "description" : "Display 'raw' eml data. This is only used with the 'htmlmail' formatter.",
12224 "optional" : 1,
12225 "type" : "boolean",
12226 "typetext" : "<boolean>"
d7cd791b
DM
12227 }
12228 }
12229 },
12230 "permissions" : {
9fda36b0
DM
12231 "check" : [
12232 "admin",
12233 "qmanager",
12234 "audit",
12235 "quser"
12236 ]
d7cd791b
DM
12237 },
12238 "returns" : {
9fda36b0
DM
12239 "properties" : {
12240 "bytes" : {
12241 "description" : "Size of raw email.",
12242 "type" : "integer"
12243 },
12244 "content" : {
12245 "description" : "Raw email data (first 4096 bytes). Useful for preview. NOTE: The 'htmlmail' formatter displays the whole email.",
12246 "type" : "string"
12247 },
12248 "envelope_sender" : {
12249 "description" : "SMTP envelope sender.",
12250 "type" : "string"
12251 },
12252 "from" : {
12253 "description" : "Header 'From' field.",
12254 "type" : "string"
12255 },
12256 "header" : {
12257 "description" : "Raw email header data.",
12258 "type" : "string"
12259 },
12260 "id" : {
12261 "description" : "Unique ID",
12262 "type" : "string"
12263 },
12264 "receiver" : {
12265 "description" : "Receiver email address",
12266 "type" : "string"
12267 },
12268 "sender" : {
12269 "description" : "Header 'Sender' field.",
12270 "optional" : 1,
12271 "type" : "string"
12272 },
12273 "spaminfo" : {
12274 "description" : "Information about matched spam tests (name, score, desc, url).",
12275 "type" : "array"
12276 },
12277 "spamlevel" : {
12278 "description" : "Spam score.",
12279 "type" : "number"
12280 },
12281 "subject" : {
12282 "description" : "Header 'Subject' field.",
12283 "type" : "string"
12284 },
12285 "time" : {
12286 "description" : "Receive time stamp",
12287 "type" : "integer"
12288 }
d7cd791b 12289 },
9fda36b0
DM
12290 "type" : "object"
12291 }
12292 },
12293 "POST" : {
12294 "description" : "Execute quarantine actions.",
12295 "method" : "POST",
12296 "name" : "action",
12297 "parameters" : {
12298 "additionalProperties" : 0,
12299 "properties" : {
12300 "action" : {
12301 "description" : "Action - specify what you want to do with the mail.",
12302 "enum" : [
12303 "whitelist",
12304 "blacklist",
12305 "deliver",
12306 "delete"
12307 ],
12308 "type" : "string"
12309 },
12310 "id" : {
12311 "description" : "Unique ID",
12312 "maxLength" : 40,
12313 "pattern" : "C\\d+R\\d+",
12314 "type" : "string"
410dc2c9 12315 }
9fda36b0
DM
12316 }
12317 },
12318 "permissions" : {
12319 "check" : [
12320 "admin",
12321 "qmanager",
12322 "quser"
12323 ]
12324 },
12325 "protected" : 1,
12326 "returns" : {
12327 "type" : "null"
410dc2c9
DM
12328 }
12329 }
12330 },
9fda36b0
DM
12331 "leaf" : 1,
12332 "path" : "/quarantine/content",
12333 "text" : "content"
410dc2c9
DM
12334 }
12335 ],
12336 "info" : {
12337 "GET" : {
9fda36b0 12338 "description" : "Directory index.",
410dc2c9
DM
12339 "method" : "GET",
12340 "name" : "index",
12341 "parameters" : {
12342 "additionalProperties" : 0
12343 },
12344 "permissions" : {
12345 "user" : "all"
12346 },
12347 "returns" : {
12348 "items" : {
12349 "properties" : {},
12350 "type" : "object"
12351 },
12352 "links" : [
12353 {
9fda36b0 12354 "href" : "{name}",
410dc2c9
DM
12355 "rel" : "child"
12356 }
12357 ],
12358 "type" : "array"
12359 }
12360 }
12361 },
12362 "leaf" : 0,
9fda36b0
DM
12363 "path" : "/quarantine",
12364 "text" : "quarantine"
410dc2c9
DM
12365 },
12366 {
12367 "children" : [
a55e94a6
DM
12368 {
12369 "children" : [
12370 {
12371 "info" : {
a55e94a6 12372 "GET" : {
9fda36b0 12373 "description" : "Detailed Contact Statistics.",
a55e94a6 12374 "method" : "GET",
9fda36b0 12375 "name" : "contactdetails",
a55e94a6
DM
12376 "parameters" : {
12377 "additionalProperties" : 0,
9fda36b0
DM
12378 "properties" : {
12379 "contact" : {
12380 "description" : "Contact email address.",
12381 "maxLength" : 512,
12382 "minLength" : 3,
12383 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
12384 "type" : "string"
a55e94a6 12385 },
9fda36b0
DM
12386 "day" : {
12387 "description" : "Day of month. Get statistics for a single day.",
12388 "maximum" : 31,
12389 "minimum" : 1,
a55e94a6
DM
12390 "optional" : 1,
12391 "type" : "integer",
9fda36b0 12392 "typetext" : "<integer> (1 - 31)"
a55e94a6 12393 },
9fda36b0
DM
12394 "endtime" : {
12395 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12396 "minimum" : 1,
a55e94a6 12397 "optional" : 1,
9fda36b0
DM
12398 "type" : "integer",
12399 "typetext" : "<integer> (1 - N)"
a55e94a6 12400 },
9fda36b0
DM
12401 "filter" : {
12402 "description" : "Sender address filter.",
12403 "maxLength" : 512,
a55e94a6
DM
12404 "optional" : 1,
12405 "type" : "string",
12406 "typetext" : "<string>"
12407 },
9fda36b0
DM
12408 "month" : {
12409 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12410 "maximum" : 12,
12411 "minimum" : 1,
a55e94a6 12412 "optional" : 1,
9fda36b0
DM
12413 "type" : "integer",
12414 "typetext" : "<integer> (1 - 12)"
a55e94a6 12415 },
9fda36b0
DM
12416 "orderby" : {
12417 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12418 "maxLength" : 4096,
a55e94a6
DM
12419 "optional" : 1,
12420 "type" : "string",
12421 "typetext" : "<string>"
12422 },
9fda36b0
DM
12423 "starttime" : {
12424 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12425 "minimum" : 0,
a55e94a6 12426 "optional" : 1,
9fda36b0
DM
12427 "type" : "integer",
12428 "typetext" : "<integer> (0 - N)"
a55e94a6 12429 },
9fda36b0
DM
12430 "year" : {
12431 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12432 "maximum" : 3000,
12433 "minimum" : 1900,
12434 "optional" : 1,
12435 "type" : "integer",
12436 "typetext" : "<integer> (1900 - 3000)"
a55e94a6
DM
12437 }
12438 }
12439 },
9fda36b0
DM
12440 "permissions" : {
12441 "check" : [
12442 "admin",
12443 "qmanager",
12444 "audit"
12445 ]
12446 },
a55e94a6 12447 "returns" : {
9fda36b0
DM
12448 "items" : {
12449 "properties" : {
12450 "blocked" : {
12451 "description" : "Mail was blocked.",
12452 "type" : "boolean"
12453 },
12454 "bytes" : {
12455 "description" : "Mail traffic (Bytes).",
12456 "type" : "number"
12457 },
12458 "sender" : {
12459 "description" : "Sender email.",
12460 "type" : "string"
12461 },
12462 "spamlevel" : {
12463 "description" : "Spam score.",
12464 "type" : "number"
12465 },
12466 "time" : {
12467 "description" : "Receive time stamp",
12468 "type" : "integer"
12469 },
12470 "virusinfo" : {
12471 "description" : "Virus name.",
12472 "optional" : 1,
12473 "type" : "string"
12474 }
12475 },
12476 "type" : "object"
12477 },
12478 "type" : "array"
a55e94a6
DM
12479 }
12480 }
12481 },
12482 "leaf" : 1,
9fda36b0
DM
12483 "path" : "/statistics/contact/{contact}",
12484 "text" : "{contact}"
a55e94a6
DM
12485 }
12486 ],
12487 "info" : {
12488 "GET" : {
9fda36b0 12489 "description" : "Contact Address Statistics.",
a55e94a6 12490 "method" : "GET",
9fda36b0 12491 "name" : "contact",
a55e94a6
DM
12492 "parameters" : {
12493 "additionalProperties" : 0,
12494 "properties" : {
9fda36b0
DM
12495 "day" : {
12496 "description" : "Day of month. Get statistics for a single day.",
12497 "maximum" : 31,
12498 "minimum" : 1,
a55e94a6
DM
12499 "optional" : 1,
12500 "type" : "integer",
9fda36b0 12501 "typetext" : "<integer> (1 - 31)"
a55e94a6 12502 },
9fda36b0
DM
12503 "endtime" : {
12504 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12505 "minimum" : 1,
410dc2c9 12506 "optional" : 1,
9fda36b0
DM
12507 "type" : "integer",
12508 "typetext" : "<integer> (1 - N)"
410dc2c9 12509 },
9fda36b0
DM
12510 "filter" : {
12511 "description" : "Contact address filter.",
12512 "maxLength" : 512,
12513 "optional" : 1,
410dc2c9
DM
12514 "type" : "string",
12515 "typetext" : "<string>"
12516 },
9fda36b0
DM
12517 "month" : {
12518 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12519 "maximum" : 12,
12520 "minimum" : 1,
410dc2c9 12521 "optional" : 1,
9fda36b0
DM
12522 "type" : "integer",
12523 "typetext" : "<integer> (1 - 12)"
410dc2c9 12524 },
9fda36b0
DM
12525 "orderby" : {
12526 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12527 "maxLength" : 4096,
12528 "optional" : 1,
410dc2c9
DM
12529 "type" : "string",
12530 "typetext" : "<string>"
9fda36b0
DM
12531 },
12532 "starttime" : {
12533 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12534 "minimum" : 0,
12535 "optional" : 1,
12536 "type" : "integer",
12537 "typetext" : "<integer> (0 - N)"
12538 },
12539 "year" : {
12540 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12541 "maximum" : 3000,
12542 "minimum" : 1900,
12543 "optional" : 1,
12544 "type" : "integer",
12545 "typetext" : "<integer> (1900 - 3000)"
410dc2c9
DM
12546 }
12547 }
12548 },
12549 "permissions" : {
9fda36b0
DM
12550 "check" : [
12551 "admin",
12552 "qmanager",
12553 "audit"
12554 ]
410dc2c9 12555 },
410dc2c9 12556 "returns" : {
9fda36b0
DM
12557 "items" : {
12558 "properties" : {
12559 "bytes" : {
12560 "description" : "Mail traffic (Bytes).",
12561 "type" : "number"
12562 },
12563 "contact" : {
12564 "description" : "Contact email.",
12565 "type" : "string"
12566 },
12567 "count" : {
12568 "description" : "Mail count.",
12569 "optional" : 1,
12570 "type" : "number"
12571 },
12572 "viruscount" : {
12573 "description" : "Number of sent virus mails.",
12574 "optional" : 1,
12575 "type" : "number"
12576 }
410dc2c9 12577 },
9fda36b0 12578 "type" : "object"
410dc2c9 12579 },
9fda36b0
DM
12580 "links" : [
12581 {
12582 "href" : "{contact}",
12583 "rel" : "child"
12584 }
12585 ],
12586 "type" : "array"
410dc2c9
DM
12587 }
12588 }
12589 },
9fda36b0
DM
12590 "leaf" : 0,
12591 "path" : "/statistics/contact",
12592 "text" : "contact"
410dc2c9
DM
12593 },
12594 {
9fda36b0
DM
12595 "children" : [
12596 {
12597 "info" : {
12598 "GET" : {
12599 "description" : "Detailed Sender Statistics.",
12600 "method" : "GET",
12601 "name" : "senderdetails",
12602 "parameters" : {
12603 "additionalProperties" : 0,
12604 "properties" : {
12605 "day" : {
12606 "description" : "Day of month. Get statistics for a single day.",
12607 "maximum" : 31,
12608 "minimum" : 1,
12609 "optional" : 1,
12610 "type" : "integer",
12611 "typetext" : "<integer> (1 - 31)"
12612 },
12613 "endtime" : {
12614 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12615 "minimum" : 1,
12616 "optional" : 1,
12617 "type" : "integer",
12618 "typetext" : "<integer> (1 - N)"
12619 },
12620 "filter" : {
12621 "description" : "Receiver address filter.",
12622 "maxLength" : 512,
12623 "optional" : 1,
12624 "type" : "string",
12625 "typetext" : "<string>"
12626 },
12627 "month" : {
12628 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12629 "maximum" : 12,
12630 "minimum" : 1,
12631 "optional" : 1,
12632 "type" : "integer",
12633 "typetext" : "<integer> (1 - 12)"
12634 },
12635 "orderby" : {
12636 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12637 "maxLength" : 4096,
12638 "optional" : 1,
12639 "type" : "string",
12640 "typetext" : "<string>"
12641 },
12642 "sender" : {
12643 "description" : "Sender email address.",
12644 "maxLength" : 512,
12645 "minLength" : 3,
12646 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
12647 "type" : "string"
12648 },
12649 "starttime" : {
12650 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12651 "minimum" : 0,
12652 "optional" : 1,
12653 "type" : "integer",
12654 "typetext" : "<integer> (0 - N)"
12655 },
12656 "year" : {
12657 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12658 "maximum" : 3000,
12659 "minimum" : 1900,
12660 "optional" : 1,
12661 "type" : "integer",
12662 "typetext" : "<integer> (1900 - 3000)"
12663 }
12664 }
12665 },
12666 "permissions" : {
12667 "check" : [
12668 "admin",
12669 "qmanager",
12670 "audit"
12671 ]
12672 },
12673 "returns" : {
12674 "items" : {
12675 "properties" : {
12676 "blocked" : {
12677 "description" : "Mail was blocked.",
12678 "type" : "boolean"
12679 },
12680 "bytes" : {
12681 "description" : "Mail traffic (Bytes).",
12682 "type" : "number"
12683 },
12684 "receiver" : {
12685 "description" : "Receiver email.",
12686 "type" : "string"
12687 },
12688 "spamlevel" : {
12689 "description" : "Spam score.",
12690 "type" : "number"
12691 },
12692 "time" : {
12693 "description" : "Receive time stamp",
12694 "type" : "integer"
12695 },
12696 "virusinfo" : {
12697 "description" : "Virus name.",
12698 "optional" : 1,
12699 "type" : "string"
12700 }
12701 },
12702 "type" : "object"
12703 },
12704 "type" : "array"
12705 }
12706 }
12707 },
12708 "leaf" : 1,
12709 "path" : "/statistics/sender/{sender}",
12710 "text" : "{sender}"
12711 }
12712 ],
410dc2c9 12713 "info" : {
9fda36b0
DM
12714 "GET" : {
12715 "description" : "Sender Address Statistics.",
12716 "method" : "GET",
12717 "name" : "sender",
410dc2c9
DM
12718 "parameters" : {
12719 "additionalProperties" : 0,
12720 "properties" : {
9fda36b0
DM
12721 "day" : {
12722 "description" : "Day of month. Get statistics for a single day.",
12723 "maximum" : 31,
12724 "minimum" : 1,
12725 "optional" : 1,
12726 "type" : "integer",
12727 "typetext" : "<integer> (1 - 31)"
12728 },
12729 "endtime" : {
12730 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12731 "minimum" : 1,
12732 "optional" : 1,
12733 "type" : "integer",
12734 "typetext" : "<integer> (1 - N)"
12735 },
12736 "filter" : {
12737 "description" : "Sender address filter.",
12738 "maxLength" : 512,
12739 "optional" : 1,
410dc2c9
DM
12740 "type" : "string",
12741 "typetext" : "<string>"
12742 },
9fda36b0
DM
12743 "month" : {
12744 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12745 "maximum" : 12,
12746 "minimum" : 1,
12747 "optional" : 1,
12748 "type" : "integer",
12749 "typetext" : "<integer> (1 - 12)"
12750 },
12751 "orderby" : {
12752 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12753 "maxLength" : 4096,
12754 "optional" : 1,
410dc2c9
DM
12755 "type" : "string",
12756 "typetext" : "<string>"
9fda36b0
DM
12757 },
12758 "starttime" : {
12759 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12760 "minimum" : 0,
12761 "optional" : 1,
12762 "type" : "integer",
12763 "typetext" : "<integer> (0 - N)"
12764 },
12765 "year" : {
12766 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12767 "maximum" : 3000,
12768 "minimum" : 1900,
12769 "optional" : 1,
12770 "type" : "integer",
12771 "typetext" : "<integer> (1900 - 3000)"
410dc2c9
DM
12772 }
12773 }
12774 },
a55e94a6 12775 "permissions" : {
9fda36b0
DM
12776 "check" : [
12777 "admin",
12778 "qmanager",
12779 "audit"
12780 ]
a55e94a6 12781 },
410dc2c9 12782 "returns" : {
9fda36b0
DM
12783 "items" : {
12784 "properties" : {
12785 "bytes" : {
12786 "description" : "Mail traffic (Bytes).",
12787 "type" : "number"
12788 },
12789 "count" : {
12790 "description" : "Mail count.",
12791 "optional" : 1,
12792 "type" : "number"
12793 },
12794 "sender" : {
12795 "description" : "Sender email.",
12796 "type" : "string"
12797 },
12798 "viruscount" : {
12799 "description" : "Number of sent virus mails.",
12800 "optional" : 1,
12801 "type" : "number"
12802 }
12803 },
12804 "type" : "object"
12805 },
12806 "links" : [
12807 {
12808 "href" : "{sender}",
12809 "rel" : "child"
12810 }
12811 ],
12812 "type" : "array"
410dc2c9 12813 }
9fda36b0
DM
12814 }
12815 },
12816 "leaf" : 0,
12817 "path" : "/statistics/sender",
12818 "text" : "sender"
12819 },
d7cd791b
DM
12820 {
12821 "children" : [
12822 {
12823 "info" : {
9fda36b0
DM
12824 "GET" : {
12825 "description" : "Detailed Receiver Statistics.",
12826 "method" : "GET",
12827 "name" : "receiverdetails",
d7cd791b
DM
12828 "parameters" : {
12829 "additionalProperties" : 0,
12830 "properties" : {
9fda36b0
DM
12831 "day" : {
12832 "description" : "Day of month. Get statistics for a single day.",
12833 "maximum" : 31,
12834 "minimum" : 1,
12835 "optional" : 1,
12836 "type" : "integer",
12837 "typetext" : "<integer> (1 - 31)"
12838 },
12839 "endtime" : {
12840 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12841 "minimum" : 1,
12842 "optional" : 1,
12843 "type" : "integer",
12844 "typetext" : "<integer> (1 - N)"
12845 },
12846 "filter" : {
12847 "description" : "Sender address filter.",
d7cd791b 12848 "maxLength" : 512,
9fda36b0
DM
12849 "optional" : 1,
12850 "type" : "string",
12851 "typetext" : "<string>"
d7cd791b 12852 },
9fda36b0
DM
12853 "month" : {
12854 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12855 "maximum" : 12,
12856 "minimum" : 1,
12857 "optional" : 1,
12858 "type" : "integer",
12859 "typetext" : "<integer> (1 - 12)"
12860 },
12861 "orderby" : {
12862 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12863 "maxLength" : 4096,
d7cd791b
DM
12864 "optional" : 1,
12865 "type" : "string",
12866 "typetext" : "<string>"
9fda36b0
DM
12867 },
12868 "receiver" : {
12869 "description" : "Receiver email address.",
12870 "maxLength" : 512,
12871 "minLength" : 3,
12872 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
12873 "type" : "string"
12874 },
12875 "starttime" : {
12876 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12877 "minimum" : 0,
12878 "optional" : 1,
12879 "type" : "integer",
12880 "typetext" : "<integer> (0 - N)"
12881 },
12882 "year" : {
12883 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12884 "maximum" : 3000,
12885 "minimum" : 1900,
12886 "optional" : 1,
12887 "type" : "integer",
12888 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
12889 }
12890 }
12891 },
12892 "permissions" : {
12893 "check" : [
12894 "admin",
12895 "qmanager",
9fda36b0 12896 "audit"
d7cd791b
DM
12897 ]
12898 },
d7cd791b 12899 "returns" : {
9fda36b0
DM
12900 "items" : {
12901 "properties" : {
12902 "blocked" : {
12903 "description" : "Mail was blocked.",
12904 "type" : "boolean"
12905 },
12906 "bytes" : {
12907 "description" : "Mail traffic (Bytes).",
12908 "type" : "number"
12909 },
12910 "sender" : {
12911 "description" : "Sender email.",
12912 "type" : "string"
12913 },
12914 "spamlevel" : {
12915 "description" : "Spam score.",
12916 "type" : "number"
12917 },
12918 "time" : {
12919 "description" : "Receive time stamp",
12920 "type" : "integer"
12921 },
12922 "virusinfo" : {
12923 "description" : "Virus name.",
12924 "optional" : 1,
12925 "type" : "string"
12926 }
12927 },
12928 "type" : "object"
12929 },
12930 "type" : "array"
d7cd791b
DM
12931 }
12932 }
12933 },
12934 "leaf" : 1,
9fda36b0
DM
12935 "path" : "/statistics/receiver/{receiver}",
12936 "text" : "{receiver}"
d7cd791b
DM
12937 }
12938 ],
12939 "info" : {
12940 "GET" : {
9fda36b0 12941 "description" : "Receiver Address Statistics.",
d7cd791b 12942 "method" : "GET",
9fda36b0 12943 "name" : "receiver",
d7cd791b
DM
12944 "parameters" : {
12945 "additionalProperties" : 0,
12946 "properties" : {
9fda36b0
DM
12947 "day" : {
12948 "description" : "Day of month. Get statistics for a single day.",
12949 "maximum" : 31,
12950 "minimum" : 1,
12951 "optional" : 1,
12952 "type" : "integer",
12953 "typetext" : "<integer> (1 - 31)"
12954 },
12955 "endtime" : {
12956 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12957 "minimum" : 1,
12958 "optional" : 1,
12959 "type" : "integer",
12960 "typetext" : "<integer> (1 - N)"
12961 },
12962 "filter" : {
12963 "description" : "Receiver address filter.",
12964 "maxLength" : 512,
12965 "optional" : 1,
12966 "type" : "string",
12967 "typetext" : "<string>"
12968 },
12969 "month" : {
12970 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12971 "maximum" : 12,
12972 "minimum" : 1,
12973 "optional" : 1,
12974 "type" : "integer",
12975 "typetext" : "<integer> (1 - 12)"
12976 },
12977 "orderby" : {
12978 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12979 "maxLength" : 4096,
d7cd791b
DM
12980 "optional" : 1,
12981 "type" : "string",
12982 "typetext" : "<string>"
9fda36b0
DM
12983 },
12984 "starttime" : {
12985 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12986 "minimum" : 0,
12987 "optional" : 1,
12988 "type" : "integer",
12989 "typetext" : "<integer> (0 - N)"
12990 },
12991 "year" : {
12992 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12993 "maximum" : 3000,
12994 "minimum" : 1900,
12995 "optional" : 1,
12996 "type" : "integer",
12997 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
12998 }
12999 }
13000 },
13001 "permissions" : {
13002 "check" : [
13003 "admin",
13004 "qmanager",
9fda36b0 13005 "audit"
d7cd791b
DM
13006 ]
13007 },
13008 "returns" : {
13009 "items" : {
13010 "properties" : {
9fda36b0
DM
13011 "bytes" : {
13012 "description" : "Mail traffic (Bytes).",
13013 "type" : "number"
13014 },
13015 "count" : {
13016 "description" : "Mail count.",
13017 "optional" : 1,
13018 "type" : "number"
13019 },
13020 "receiver" : {
13021 "description" : "Sender email.",
d7cd791b 13022 "type" : "string"
9fda36b0
DM
13023 },
13024 "spamcount" : {
13025 "description" : "Number of sent spam mails.",
13026 "optional" : 1,
13027 "type" : "number"
13028 },
13029 "viruscount" : {
13030 "description" : "Number of sent virus mails.",
13031 "optional" : 1,
13032 "type" : "number"
d7cd791b
DM
13033 }
13034 },
13035 "type" : "object"
13036 },
9fda36b0
DM
13037 "links" : [
13038 {
13039 "href" : "{receiver}",
13040 "rel" : "child"
d7cd791b 13041 }
9fda36b0
DM
13042 ],
13043 "type" : "array"
d7cd791b
DM
13044 }
13045 }
13046 },
13047 "leaf" : 0,
9fda36b0
DM
13048 "path" : "/statistics/receiver",
13049 "text" : "receiver"
d7cd791b
DM
13050 },
13051 {
d7cd791b
DM
13052 "info" : {
13053 "GET" : {
9fda36b0 13054 "description" : "Mail Domains Statistics.",
d7cd791b 13055 "method" : "GET",
9fda36b0 13056 "name" : "domains",
d7cd791b
DM
13057 "parameters" : {
13058 "additionalProperties" : 0,
13059 "properties" : {
9fda36b0
DM
13060 "day" : {
13061 "description" : "Day of month. Get statistics for a single day.",
13062 "maximum" : 31,
13063 "minimum" : 1,
13064 "optional" : 1,
13065 "type" : "integer",
13066 "typetext" : "<integer> (1 - 31)"
13067 },
13068 "endtime" : {
13069 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
13070 "minimum" : 1,
13071 "optional" : 1,
13072 "type" : "integer",
13073 "typetext" : "<integer> (1 - N)"
13074 },
13075 "month" : {
13076 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13077 "maximum" : 12,
13078 "minimum" : 1,
13079 "optional" : 1,
13080 "type" : "integer",
13081 "typetext" : "<integer> (1 - 12)"
13082 },
13083 "starttime" : {
13084 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
13085 "minimum" : 0,
d7cd791b 13086 "optional" : 1,
9fda36b0
DM
13087 "type" : "integer",
13088 "typetext" : "<integer> (0 - N)"
13089 },
13090 "year" : {
13091 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13092 "maximum" : 3000,
13093 "minimum" : 1900,
13094 "optional" : 1,
13095 "type" : "integer",
13096 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
13097 }
13098 }
13099 },
13100 "permissions" : {
13101 "check" : [
13102 "admin",
13103 "qmanager",
9fda36b0 13104 "audit"
d7cd791b
DM
13105 ]
13106 },
13107 "returns" : {
13108 "items" : {
13109 "properties" : {
9fda36b0
DM
13110 "count_in" : {
13111 "description" : "Incoming mail count.",
13112 "type" : "number"
13113 },
13114 "count_out" : {
13115 "description" : "Outgoing mail count.",
13116 "type" : "number"
13117 },
13118 "domain" : {
13119 "description" : "Domain name.",
d7cd791b 13120 "type" : "string"
9fda36b0
DM
13121 },
13122 "mbytes_in" : {
13123 "description" : "Incoming mail traffic (Mebibytes).",
13124 "type" : "number"
13125 },
13126 "mbytes_out" : {
13127 "description" : "Outgoing mail traffic (Mebibytes).",
13128 "type" : "number"
13129 },
13130 "spamcount_in" : {
13131 "description" : "Incoming spam mails.",
13132 "type" : "number"
13133 },
13134 "spamcount_out" : {
13135 "description" : "Outgoing spam mails.",
13136 "type" : "number"
13137 },
13138 "viruscount_in" : {
13139 "description" : "Number of incoming virus mails.",
13140 "type" : "number"
13141 },
13142 "viruscount_out" : {
13143 "description" : "Number of outgoing virus mails.",
13144 "type" : "number"
d7cd791b
DM
13145 }
13146 },
13147 "type" : "object"
13148 },
13149 "type" : "array"
13150 }
9fda36b0
DM
13151 }
13152 },
13153 "leaf" : 1,
13154 "path" : "/statistics/domains",
13155 "text" : "domains"
13156 },
13157 {
13158 "info" : {
13159 "GET" : {
13160 "description" : "General Mail Statistics.",
13161 "method" : "GET",
13162 "name" : "mail",
d7cd791b
DM
13163 "parameters" : {
13164 "additionalProperties" : 0,
13165 "properties" : {
9fda36b0
DM
13166 "day" : {
13167 "description" : "Day of month. Get statistics for a single day.",
13168 "maximum" : 31,
13169 "minimum" : 1,
13170 "optional" : 1,
13171 "type" : "integer",
13172 "typetext" : "<integer> (1 - 31)"
d7cd791b 13173 },
9fda36b0
DM
13174 "endtime" : {
13175 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
13176 "minimum" : 1,
d7cd791b 13177 "optional" : 1,
9fda36b0
DM
13178 "type" : "integer",
13179 "typetext" : "<integer> (1 - N)"
13180 },
13181 "month" : {
13182 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13183 "maximum" : 12,
13184 "minimum" : 1,
13185 "optional" : 1,
13186 "type" : "integer",
13187 "typetext" : "<integer> (1 - 12)"
13188 },
13189 "starttime" : {
13190 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
13191 "minimum" : 0,
13192 "optional" : 1,
13193 "type" : "integer",
13194 "typetext" : "<integer> (0 - N)"
13195 },
13196 "year" : {
13197 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13198 "maximum" : 3000,
13199 "minimum" : 1900,
13200 "optional" : 1,
13201 "type" : "integer",
13202 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
13203 }
13204 }
13205 },
13206 "permissions" : {
13207 "check" : [
13208 "admin",
13209 "qmanager",
9fda36b0 13210 "audit"
d7cd791b
DM
13211 ]
13212 },
d7cd791b 13213 "returns" : {
9fda36b0
DM
13214 "properties" : {
13215 "avptime" : {
13216 "description" : "Average mail processing time in seconds.",
13217 "type" : "number"
13218 },
13219 "bounces_in" : {
13220 "description" : "Incoming bounce mail count (sender = <>).",
13221 "type" : "number"
13222 },
13223 "bounces_out" : {
13224 "description" : "Outgoing bounce mail count (sender = <>).",
13225 "type" : "number"
13226 },
13227 "bytes_in" : {
13228 "description" : "Incoming mail traffic (bytes).",
13229 "type" : "number"
13230 },
13231 "bytes_out" : {
13232 "description" : "Outgoing mail traffic (bytes).",
13233 "type" : "number"
13234 },
13235 "count" : {
13236 "description" : "Overall mail count (in and out).",
13237 "type" : "number"
13238 },
13239 "count_in" : {
13240 "description" : "Incoming mail count.",
13241 "type" : "number"
13242 },
13243 "count_out" : {
13244 "description" : "Outgoing mail count.",
13245 "type" : "number"
13246 },
13247 "glcount" : {
13248 "description" : "Number of greylisted mails.",
13249 "type" : "number"
13250 },
13251 "junk_in" : {
13252 "description" : "Incoming junk mail count (viruscount_in + spamcount_in + glcount + spfcount).",
13253 "type" : "number"
13254 },
13255 "junk_out" : {
13256 "description" : "Outgoing junk mail count (viruscount_out + spamcount_out).",
13257 "type" : "number"
13258 },
13259 "spamcount_in" : {
13260 "description" : "Incoming spam mails.",
13261 "type" : "number"
13262 },
13263 "spamcount_out" : {
13264 "description" : "Outgoing spam mails.",
13265 "type" : "number"
13266 },
13267 "spfcount" : {
13268 "description" : "Mails rejected by SPF.",
13269 "type" : "number"
13270 },
13271 "viruscount_in" : {
13272 "description" : "Number of incoming virus mails.",
13273 "type" : "number"
13274 },
13275 "viruscount_out" : {
13276 "description" : "Number of outgoing virus mails.",
13277 "type" : "number"
13278 }
13279 },
13280 "type" : "object"
d7cd791b
DM
13281 }
13282 }
13283 },
9fda36b0
DM
13284 "leaf" : 1,
13285 "path" : "/statistics/mail",
13286 "text" : "mail"
d7cd791b 13287 },
732d76e1
DM
13288 {
13289 "info" : {
13290 "GET" : {
13291 "description" : "Mail Count Statistics.",
13292 "method" : "GET",
13293 "name" : "recent",
13294 "parameters" : {
13295 "additionalProperties" : 0,
13296 "properties" : {
13297 "hours" : {
13298 "default" : 12,
13299 "description" : "How many hours you want to get",
13300 "maximum" : 24,
13301 "minimum" : 1,
13302 "optional" : 1,
13303 "type" : "integer",
13304 "typetext" : "<integer> (1 - 24)"
13305 },
13306 "timespan" : {
13307 "default" : 1800,
13308 "description" : "The Timespan for one datapoint (in seconds)",
13309 "maximum" : 1800,
13310 "minimum" : 1,
13311 "optional" : 1,
13312 "type" : "integer",
13313 "typetext" : "<integer> (1 - 1800)"
13314 }
13315 }
13316 },
13317 "permissions" : {
13318 "check" : [
13319 "admin",
13320 "qmanager",
13321 "audit"
13322 ]
13323 },
13324 "returns" : {
13325 "items" : {
13326 "properties" : {
13327 "bytes_in" : {
13328 "description" : "Number of incoming bytes mails.",
13329 "type" : "number"
13330 },
13331 "bytes_out" : {
13332 "description" : "Number of outgoing bytes mails.",
13333 "type" : "number"
13334 },
13335 "count" : {
13336 "description" : "Overall mail count (in and out).",
13337 "type" : "number"
13338 },
13339 "count_in" : {
13340 "description" : "Incoming mail count.",
13341 "type" : "number"
13342 },
13343 "count_out" : {
13344 "description" : "Outgoing mail count.",
13345 "type" : "number"
13346 },
13347 "index" : {
13348 "description" : "Time index.",
13349 "type" : "integer"
13350 },
13351 "spam" : {
13352 "description" : "Overall spam mail count (in and out).",
13353 "type" : "number"
13354 },
13355 "spam_in" : {
13356 "description" : "Incoming spam mails (spamcount_in + glcount + spfcount).",
13357 "type" : "number"
13358 },
13359 "spam_out" : {
13360 "description" : "Outgoing spam mails.",
13361 "type" : "number"
13362 },
13363 "time" : {
13364 "description" : "Time (Unix epoch).",
13365 "type" : "integer"
13366 },
13367 "timespan" : {
13368 "description" : "Timespan in seconds for one data point",
13369 "type" : "number"
13370 },
13371 "virus_in" : {
13372 "description" : "Number of incoming virus mails.",
13373 "type" : "number"
13374 },
13375 "virus_out" : {
13376 "description" : "Number of outgoing virus mails.",
13377 "type" : "number"
13378 }
13379 },
13380 "type" : "object"
13381 },
13382 "type" : "array"
13383 }
13384 }
13385 },
13386 "leaf" : 1,
13387 "path" : "/statistics/recent",
13388 "text" : "recent"
13389 },
13390 {
13391 "info" : {
13392 "GET" : {
13393 "description" : "Top recent Mail Receivers (including spam)",
13394 "method" : "GET",
13395 "name" : "recentreceivers",
13396 "parameters" : {
13397 "additionalProperties" : 0,
13398 "properties" : {
13399 "hours" : {
13400 "default" : 12,
13401 "description" : "How many hours you want to get",
13402 "maximum" : 24,
13403 "minimum" : 1,
13404 "optional" : 1,
13405 "type" : "integer",
13406 "typetext" : "<integer> (1 - 24)"
13407 },
13408 "limit" : {
13409 "default" : 5,
13410 "description" : "The maximum number of receivers to return.",
13411 "maximum" : 50,
13412 "minimum" : 1,
13413 "optional" : 1,
13414 "type" : "integer",
13415 "typetext" : "<integer> (1 - 50)"
13416 }
13417 }
13418 },
13419 "permissions" : {
13420 "check" : [
13421 "admin",
13422 "qmanager",
13423 "audit"
13424 ]
13425 },
13426 "returns" : {
13427 "items" : {
13428 "properties" : {
13429 "count" : {
13430 "description" : "The count of incoming not blocked E-Mails",
13431 "type" : "integer"
13432 },
13433 "receiver" : {
13434 "description" : "The receiver",
13435 "type" : "string"
13436 }
13437 },
13438 "type" : "object"
13439 },
13440 "type" : "array"
13441 }
13442 }
13443 },
13444 "leaf" : 1,
13445 "path" : "/statistics/recentreceivers",
13446 "text" : "recentreceivers"
13447 },
d7cd791b 13448 {
9fda36b0
DM
13449 "info" : {
13450 "GET" : {
13451 "description" : "Mail Count Statistics.",
13452 "method" : "GET",
13453 "name" : "mailcount",
13454 "parameters" : {
13455 "additionalProperties" : 0,
13456 "properties" : {
13457 "day" : {
13458 "description" : "Day of month. Get statistics for a single day.",
13459 "maximum" : 31,
13460 "minimum" : 1,
13461 "optional" : 1,
13462 "type" : "integer",
13463 "typetext" : "<integer> (1 - 31)"
d7cd791b 13464 },
9fda36b0
DM
13465 "endtime" : {
13466 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
13467 "minimum" : 1,
13468 "optional" : 1,
13469 "type" : "integer",
13470 "typetext" : "<integer> (1 - N)"
d7cd791b 13471 },
9fda36b0
DM
13472 "month" : {
13473 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13474 "maximum" : 12,
13475 "minimum" : 1,
13476 "optional" : 1,
13477 "type" : "integer",
13478 "typetext" : "<integer> (1 - 12)"
13479 },
13480 "starttime" : {
13481 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
13482 "minimum" : 0,
13483 "optional" : 1,
13484 "type" : "integer",
13485 "typetext" : "<integer> (0 - N)"
13486 },
13487 "timespan" : {
13488 "default" : 3600,
13489 "description" : "Return Mails/<timespan>, where <timespan> is specified in seconds.",
13490 "maximum" : 31622400,
13491 "minimum" : 3600,
13492 "optional" : 1,
13493 "type" : "integer",
13494 "typetext" : "<integer> (3600 - 31622400)"
13495 },
13496 "year" : {
13497 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13498 "maximum" : 3000,
13499 "minimum" : 1900,
13500 "optional" : 1,
13501 "type" : "integer",
13502 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
13503 }
13504 }
13505 },
9fda36b0
DM
13506 "permissions" : {
13507 "check" : [
13508 "admin",
13509 "qmanager",
13510 "audit"
13511 ]
13512 },
13513 "returns" : {
13514 "items" : {
13515 "properties" : {
13516 "bounces_in" : {
13517 "description" : "Incoming bounce mail count (sender = <>).",
13518 "type" : "number"
13519 },
13520 "bounces_out" : {
13521 "description" : "Outgoing bounce mail count (sender = <>).",
13522 "type" : "number"
13523 },
13524 "count" : {
13525 "description" : "Overall mail count (in and out).",
13526 "type" : "number"
13527 },
13528 "count_in" : {
13529 "description" : "Incoming mail count.",
13530 "type" : "number"
13531 },
13532 "count_out" : {
13533 "description" : "Outgoing mail count.",
13534 "type" : "number"
13535 },
13536 "index" : {
13537 "description" : "Time index.",
13538 "type" : "integer"
13539 },
13540 "spamcount_in" : {
13541 "description" : "Incoming spam mails (spamcount_in + glcount + spfcount).",
13542 "type" : "number"
13543 },
13544 "spamcount_out" : {
13545 "description" : "Outgoing spam mails.",
13546 "type" : "number"
13547 },
13548 "time" : {
13549 "description" : "Time (Unix epoch).",
13550 "type" : "integer"
13551 },
13552 "viruscount_in" : {
13553 "description" : "Number of incoming virus mails.",
13554 "type" : "number"
13555 },
13556 "viruscount_out" : {
13557 "description" : "Number of outgoing virus mails.",
13558 "type" : "number"
13559 }
13560 },
13561 "type" : "object"
13562 },
13563 "type" : "array"
13564 }
d7cd791b 13565 }
9fda36b0
DM
13566 },
13567 "leaf" : 1,
13568 "path" : "/statistics/mailcount",
13569 "text" : "mailcount"
13570 },
13571 {
d7cd791b
DM
13572 "info" : {
13573 "GET" : {
9fda36b0 13574 "description" : "Get Statistics about detected Viruses.",
d7cd791b 13575 "method" : "GET",
9fda36b0 13576 "name" : "virus",
d7cd791b
DM
13577 "parameters" : {
13578 "additionalProperties" : 0,
13579 "properties" : {
9fda36b0
DM
13580 "day" : {
13581 "description" : "Day of month. Get statistics for a single day.",
13582 "maximum" : 31,
13583 "minimum" : 1,
13584 "optional" : 1,
13585 "type" : "integer",
13586 "typetext" : "<integer> (1 - 31)"
13587 },
d7cd791b 13588 "endtime" : {
9fda36b0 13589 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
d7cd791b
DM
13590 "minimum" : 1,
13591 "optional" : 1,
13592 "type" : "integer",
13593 "typetext" : "<integer> (1 - N)"
13594 },
9fda36b0
DM
13595 "month" : {
13596 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13597 "maximum" : 12,
13598 "minimum" : 1,
d7cd791b 13599 "optional" : 1,
9fda36b0
DM
13600 "type" : "integer",
13601 "typetext" : "<integer> (1 - 12)"
d7cd791b
DM
13602 },
13603 "starttime" : {
9fda36b0 13604 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
d7cd791b
DM
13605 "minimum" : 0,
13606 "optional" : 1,
13607 "type" : "integer",
13608 "typetext" : "<integer> (0 - N)"
9fda36b0
DM
13609 },
13610 "year" : {
13611 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13612 "maximum" : 3000,
13613 "minimum" : 1900,
13614 "optional" : 1,
13615 "type" : "integer",
13616 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
13617 }
13618 }
13619 },
13620 "permissions" : {
13621 "check" : [
13622 "admin",
13623 "qmanager",
9fda36b0 13624 "audit"
d7cd791b
DM
13625 ]
13626 },
13627 "returns" : {
13628 "items" : {
13629 "properties" : {
13630 "count" : {
9fda36b0 13631 "description" : "Detection count.",
d7cd791b
DM
13632 "type" : "integer"
13633 },
9fda36b0
DM
13634 "name" : {
13635 "description" : "Virus name.",
13636 "type" : "string"
d7cd791b
DM
13637 }
13638 },
13639 "type" : "object"
13640 },
d7cd791b
DM
13641 "type" : "array"
13642 }
13643 }
13644 },
9fda36b0
DM
13645 "leaf" : 1,
13646 "path" : "/statistics/virus",
13647 "text" : "virus"
d7cd791b
DM
13648 },
13649 {
13650 "info" : {
13651 "GET" : {
9fda36b0 13652 "description" : "Get the count of spam mails grouped by spam score. Count for score 10 includes mails with spam score > 10.",
d7cd791b 13653 "method" : "GET",
9fda36b0 13654 "name" : "spamscores",
d7cd791b
DM
13655 "parameters" : {
13656 "additionalProperties" : 0,
13657 "properties" : {
9fda36b0
DM
13658 "day" : {
13659 "description" : "Day of month. Get statistics for a single day.",
13660 "maximum" : 31,
13661 "minimum" : 1,
13662 "optional" : 1,
13663 "type" : "integer",
13664 "typetext" : "<integer> (1 - 31)"
d7cd791b 13665 },
9fda36b0
DM
13666 "endtime" : {
13667 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
13668 "minimum" : 1,
d7cd791b 13669 "optional" : 1,
9fda36b0
DM
13670 "type" : "integer",
13671 "typetext" : "<integer> (1 - N)"
13672 },
13673 "month" : {
13674 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13675 "maximum" : 12,
13676 "minimum" : 1,
13677 "optional" : 1,
13678 "type" : "integer",
13679 "typetext" : "<integer> (1 - 12)"
13680 },
13681 "starttime" : {
13682 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
13683 "minimum" : 0,
13684 "optional" : 1,
13685 "type" : "integer",
13686 "typetext" : "<integer> (0 - N)"
13687 },
13688 "year" : {
13689 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13690 "maximum" : 3000,
13691 "minimum" : 1900,
13692 "optional" : 1,
13693 "type" : "integer",
13694 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
13695 }
13696 }
13697 },
13698 "permissions" : {
13699 "check" : [
13700 "admin",
13701 "qmanager",
9fda36b0 13702 "audit"
d7cd791b
DM
13703 ]
13704 },
13705 "returns" : {
9fda36b0
DM
13706 "items" : {
13707 "properties" : {
13708 "count" : {
13709 "description" : "Detection count.",
13710 "type" : "integer"
13711 },
13712 "level" : {
13713 "description" : "Spam level.",
13714 "type" : "string"
13715 },
13716 "ratio" : {
13717 "description" : "Portion of overall mail count.",
13718 "type" : "number"
13719 }
d7cd791b 13720 },
9fda36b0
DM
13721 "type" : "object"
13722 },
13723 "type" : "array"
13724 }
13725 }
13726 },
13727 "leaf" : 1,
13728 "path" : "/statistics/spamscores",
13729 "text" : "spamscores"
13730 },
13731 {
13732 "info" : {
13733 "GET" : {
13734 "description" : "Get the count of spam mails grouped by spam score. Count for score 10 includes mails with spam score > 10.",
13735 "method" : "GET",
13736 "name" : "maildistribution",
13737 "parameters" : {
13738 "additionalProperties" : 0,
13739 "properties" : {
13740 "day" : {
13741 "description" : "Day of month. Get statistics for a single day.",
13742 "maximum" : 31,
13743 "minimum" : 1,
d7cd791b 13744 "optional" : 1,
9fda36b0
DM
13745 "type" : "integer",
13746 "typetext" : "<integer> (1 - 31)"
d7cd791b 13747 },
9fda36b0
DM
13748 "endtime" : {
13749 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
13750 "minimum" : 1,
13751 "optional" : 1,
13752 "type" : "integer",
13753 "typetext" : "<integer> (1 - N)"
d7cd791b 13754 },
9fda36b0
DM
13755 "month" : {
13756 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13757 "maximum" : 12,
13758 "minimum" : 1,
13759 "optional" : 1,
13760 "type" : "integer",
13761 "typetext" : "<integer> (1 - 12)"
d7cd791b 13762 },
9fda36b0
DM
13763 "starttime" : {
13764 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
13765 "minimum" : 0,
13766 "optional" : 1,
13767 "type" : "integer",
13768 "typetext" : "<integer> (0 - N)"
d7cd791b 13769 },
9fda36b0
DM
13770 "year" : {
13771 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13772 "maximum" : 3000,
13773 "minimum" : 1900,
13774 "optional" : 1,
13775 "type" : "integer",
13776 "typetext" : "<integer> (1900 - 3000)"
d7cd791b 13777 }
9fda36b0
DM
13778 }
13779 },
13780 "permissions" : {
13781 "check" : [
13782 "admin",
13783 "qmanager",
13784 "audit"
13785 ]
13786 },
13787 "returns" : {
13788 "items" : {
13789 "properties" : {
13790 "bounces_in" : {
13791 "description" : "Incoming bounce mail count (sender = <>).",
13792 "type" : "number"
13793 },
13794 "bounces_out" : {
13795 "description" : "Outgoing bounce mail count (sender = <>).",
13796 "type" : "number"
13797 },
13798 "count" : {
13799 "description" : "Overall mail count (in and out).",
13800 "type" : "number"
13801 },
13802 "count_in" : {
13803 "description" : "Incoming mail count.",
13804 "type" : "number"
13805 },
13806 "count_out" : {
13807 "description" : "Outgoing mail count.",
13808 "type" : "number"
13809 },
13810 "index" : {
13811 "description" : "Hour (0-23).",
13812 "type" : "integer"
13813 },
13814 "spamcount_in" : {
13815 "description" : "Incoming spam mails (spamcount_in + glcount + spfcount).",
13816 "type" : "number"
13817 },
13818 "spamcount_out" : {
13819 "description" : "Outgoing spam mails.",
13820 "type" : "number"
13821 },
13822 "viruscount_in" : {
13823 "description" : "Number of incoming virus mails.",
13824 "type" : "number"
13825 },
13826 "viruscount_out" : {
13827 "description" : "Number of outgoing virus mails.",
13828 "type" : "number"
13829 }
13830 },
13831 "type" : "object"
d7cd791b 13832 },
9fda36b0 13833 "type" : "array"
d7cd791b 13834 }
9fda36b0
DM
13835 }
13836 },
13837 "leaf" : 1,
13838 "path" : "/statistics/maildistribution",
13839 "text" : "maildistribution"
13840 },
13841 {
13842 "info" : {
13843 "GET" : {
13844 "description" : "Mail RBL Count Statistics.",
13845 "method" : "GET",
13846 "name" : "rblcount",
d7cd791b
DM
13847 "parameters" : {
13848 "additionalProperties" : 0,
13849 "properties" : {
9fda36b0
DM
13850 "day" : {
13851 "description" : "Day of month. Get statistics for a single day.",
13852 "maximum" : 31,
13853 "minimum" : 1,
13854 "optional" : 1,
13855 "type" : "integer",
13856 "typetext" : "<integer> (1 - 31)"
d7cd791b 13857 },
9fda36b0
DM
13858 "endtime" : {
13859 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
13860 "minimum" : 1,
13861 "optional" : 1,
13862 "type" : "integer",
13863 "typetext" : "<integer> (1 - N)"
13864 },
13865 "month" : {
13866 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13867 "maximum" : 12,
13868 "minimum" : 1,
13869 "optional" : 1,
13870 "type" : "integer",
13871 "typetext" : "<integer> (1 - 12)"
13872 },
13873 "starttime" : {
13874 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
13875 "minimum" : 0,
13876 "optional" : 1,
13877 "type" : "integer",
13878 "typetext" : "<integer> (0 - N)"
13879 },
13880 "timespan" : {
13881 "default" : 3600,
13882 "description" : "Return RBL rejects/<timespan>, where <timespan> is specified in seconds.",
13883 "maximum" : 31622400,
13884 "minimum" : 3600,
13885 "optional" : 1,
13886 "type" : "integer",
13887 "typetext" : "<integer> (3600 - 31622400)"
13888 },
13889 "year" : {
13890 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13891 "maximum" : 3000,
13892 "minimum" : 1900,
13893 "optional" : 1,
13894 "type" : "integer",
13895 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
13896 }
13897 }
13898 },
13899 "permissions" : {
13900 "check" : [
13901 "admin",
13902 "qmanager",
9fda36b0 13903 "audit"
d7cd791b
DM
13904 ]
13905 },
d7cd791b 13906 "returns" : {
9fda36b0
DM
13907 "items" : {
13908 "properties" : {
13909 "count" : {
13910 "description" : "RBL recject count.",
13911 "type" : "number"
13912 },
13913 "index" : {
13914 "description" : "Time index.",
13915 "type" : "integer"
13916 },
13917 "time" : {
13918 "description" : "Time (Unix epoch).",
13919 "type" : "integer"
13920 }
13921 },
13922 "type" : "object"
13923 },
13924 "type" : "array"
d7cd791b
DM
13925 }
13926 }
13927 },
13928 "leaf" : 1,
9fda36b0
DM
13929 "path" : "/statistics/rblcount",
13930 "text" : "rblcount"
d7cd791b
DM
13931 }
13932 ],
13933 "info" : {
13934 "GET" : {
13935 "description" : "Directory index.",
13936 "method" : "GET",
13937 "name" : "index",
13938 "parameters" : {
13939 "additionalProperties" : 0
13940 },
13941 "permissions" : {
9fda36b0
DM
13942 "check" : [
13943 "admin",
13944 "qmanager",
13945 "audit"
13946 ]
d7cd791b
DM
13947 },
13948 "returns" : {
13949 "items" : {
13950 "properties" : {},
13951 "type" : "object"
13952 },
13953 "links" : [
13954 {
13955 "href" : "{name}",
13956 "rel" : "child"
13957 }
13958 ],
13959 "type" : "array"
13960 }
13961 }
13962 },
13963 "leaf" : 0,
9fda36b0
DM
13964 "path" : "/statistics",
13965 "text" : "statistics"
d7cd791b 13966 },
410dc2c9
DM
13967 {
13968 "info" : {
13969 "GET" : {
13970 "description" : "API version details.",
13971 "method" : "GET",
13972 "name" : "version",
13973 "parameters" : {
13974 "additionalProperties" : 0
13975 },
13976 "permissions" : {
13977 "user" : "all"
13978 },
13979 "returns" : {
13980 "properties" : {
13981 "release" : {
13982 "type" : "string"
13983 },
13984 "repoid" : {
13985 "type" : "string"
13986 },
13987 "version" : {
13988 "type" : "string"
13989 }
13990 },
13991 "type" : "object"
13992 }
13993 }
13994 },
13995 "leaf" : 1,
13996 "path" : "/version",
13997 "text" : "version"
13998 }
13999]
14000;
14001