]> git.proxmox.com Git - pmg-docs.git/blame - api-viewer/apidata.js
add manual page for pmgbackup (dummy)
[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 },
eff914dc
DM
4174 "proxyto" : "master",
4175 "returns" : {
4176 "type" : "null"
4177 }
4178 }
4179 },
4180 "leaf" : 1,
4181 "path" : "/config/whitelist/objects/{id}",
4182 "text" : "{id}"
4183 }
4184 ],
410dc2c9 4185 "info" : {
eff914dc
DM
4186 "GET" : {
4187 "description" : "Get list of all SMTP whitelist entries.",
4188 "method" : "GET",
4189 "name" : "objects",
4190 "parameters" : {
4191 "additionalProperties" : 0
4192 },
732d76e1
DM
4193 "permissions" : {
4194 "check" : [
4195 "admin",
4196 "audit"
4197 ]
4198 },
eff914dc
DM
4199 "proxyto" : "master",
4200 "returns" : {
4201 "items" : {
4202 "properties" : {
4203 "id" : {
4204 "type" : "integer"
4205 }
4206 },
4207 "type" : "object"
4208 },
4209 "links" : [
4210 {
4211 "href" : "{id}",
4212 "rel" : "child"
4213 }
4214 ],
4215 "type" : "array"
4216 }
4217 }
4218 },
4219 "leaf" : 0,
4220 "path" : "/config/whitelist/objects",
4221 "text" : "objects"
4222 },
4223 {
4224 "children" : [
4225 {
4226 "info" : {
4227 "GET" : {
4228 "description" : "Read 'Mail address' object settings.",
4229 "method" : "GET",
4230 "name" : "read_email",
4231 "parameters" : {
4232 "additionalProperties" : 0,
4233 "properties" : {
4234 "id" : {
4235 "description" : "Object ID.",
4236 "type" : "integer",
4237 "typetext" : "<integer>"
4238 }
4239 }
4240 },
4241 "proxyto" : "master",
4242 "returns" : {
4243 "properties" : {
4244 "id" : {
4245 "type" : "integer"
4246 }
4247 },
4248 "type" : "object"
4249 }
4250 },
4251 "PUT" : {
4252 "description" : "Update 'Mail address' object.",
4253 "method" : "PUT",
4254 "name" : "update_email",
4255 "parameters" : {
4256 "additionalProperties" : 0,
4257 "properties" : {
4258 "email" : {
4259 "description" : "Email address.",
4260 "format" : "email",
4261 "type" : "string",
4262 "typetext" : "<string>"
4263 },
4264 "id" : {
4265 "description" : "Object ID.",
4266 "type" : "integer",
4267 "typetext" : "<integer>"
4268 }
4269 }
4270 },
a55e94a6 4271 "protected" : 1,
eff914dc
DM
4272 "proxyto" : "master",
4273 "returns" : {
4274 "type" : "null"
4275 }
4276 }
4277 },
4278 "leaf" : 1,
4279 "path" : "/config/whitelist/email/{id}",
4280 "text" : "{id}"
4281 }
4282 ],
4283 "info" : {
4284 "POST" : {
4285 "description" : "Add 'Mail address' object.",
4286 "method" : "POST",
4287 "name" : "email",
410dc2c9
DM
4288 "parameters" : {
4289 "additionalProperties" : 0,
4290 "properties" : {
eff914dc
DM
4291 "email" : {
4292 "description" : "Email address.",
4293 "format" : "email",
410dc2c9
DM
4294 "type" : "string",
4295 "typetext" : "<string>"
4296 }
4297 }
4298 },
a55e94a6 4299 "protected" : 1,
410dc2c9
DM
4300 "proxyto" : "master",
4301 "returns" : {
eff914dc
DM
4302 "description" : "The object ID.",
4303 "type" : "integer"
410dc2c9 4304 }
eff914dc
DM
4305 }
4306 },
4307 "leaf" : 0,
4308 "path" : "/config/whitelist/email",
4309 "text" : "email"
4310 },
4311 {
4312 "children" : [
4313 {
4314 "info" : {
4315 "GET" : {
4316 "description" : "Read 'Mail address' object settings.",
4317 "method" : "GET",
4318 "name" : "read_receiver",
4319 "parameters" : {
4320 "additionalProperties" : 0,
4321 "properties" : {
4322 "id" : {
4323 "description" : "Object ID.",
4324 "type" : "integer",
4325 "typetext" : "<integer>"
4326 }
4327 }
4328 },
4329 "proxyto" : "master",
4330 "returns" : {
4331 "properties" : {
4332 "id" : {
4333 "type" : "integer"
4334 }
4335 },
4336 "type" : "object"
4337 }
4338 },
4339 "PUT" : {
4340 "description" : "Update 'Mail address' object.",
4341 "method" : "PUT",
4342 "name" : "update_receiver",
4343 "parameters" : {
4344 "additionalProperties" : 0,
4345 "properties" : {
4346 "email" : {
4347 "description" : "Email address.",
4348 "format" : "email",
4349 "type" : "string",
4350 "typetext" : "<string>"
4351 },
4352 "id" : {
4353 "description" : "Object ID.",
4354 "type" : "integer",
4355 "typetext" : "<integer>"
4356 }
4357 }
4358 },
a55e94a6 4359 "protected" : 1,
eff914dc
DM
4360 "proxyto" : "master",
4361 "returns" : {
4362 "type" : "null"
4363 }
4364 }
4365 },
4366 "leaf" : 1,
4367 "path" : "/config/whitelist/receiver/{id}",
4368 "text" : "{id}"
4369 }
4370 ],
4371 "info" : {
4372 "POST" : {
4373 "description" : "Add 'Mail address' object.",
4374 "method" : "POST",
4375 "name" : "receiver",
410dc2c9
DM
4376 "parameters" : {
4377 "additionalProperties" : 0,
4378 "properties" : {
eff914dc
DM
4379 "email" : {
4380 "description" : "Email address.",
4381 "format" : "email",
410dc2c9
DM
4382 "type" : "string",
4383 "typetext" : "<string>"
4384 }
4385 }
4386 },
a55e94a6 4387 "protected" : 1,
410dc2c9 4388 "proxyto" : "master",
eff914dc
DM
4389 "returns" : {
4390 "description" : "The object ID.",
4391 "type" : "integer"
4392 }
4393 }
4394 },
4395 "leaf" : 0,
4396 "path" : "/config/whitelist/receiver",
4397 "text" : "receiver"
4398 },
4399 {
4400 "children" : [
4401 {
4402 "info" : {
4403 "GET" : {
4404 "description" : "Read 'Domain' object settings.",
4405 "method" : "GET",
4406 "name" : "read_domain",
4407 "parameters" : {
4408 "additionalProperties" : 0,
4409 "properties" : {
4410 "id" : {
4411 "description" : "Object ID.",
4412 "type" : "integer",
4413 "typetext" : "<integer>"
4414 }
4415 }
4416 },
4417 "proxyto" : "master",
4418 "returns" : {
4419 "properties" : {
4420 "id" : {
4421 "type" : "integer"
4422 }
4423 },
4424 "type" : "object"
4425 }
4426 },
4427 "PUT" : {
4428 "description" : "Update 'Domain' object.",
4429 "method" : "PUT",
4430 "name" : "update_domain",
4431 "parameters" : {
4432 "additionalProperties" : 0,
4433 "properties" : {
4434 "domain" : {
4435 "description" : "DNS domain name (Sender).",
4436 "format" : "dns-name",
4437 "type" : "string",
4438 "typetext" : "<string>"
4439 },
4440 "id" : {
4441 "description" : "Object ID.",
4442 "type" : "integer",
4443 "typetext" : "<integer>"
4444 }
4445 }
4446 },
a55e94a6 4447 "protected" : 1,
eff914dc
DM
4448 "proxyto" : "master",
4449 "returns" : {
4450 "type" : "null"
4451 }
4452 }
4453 },
4454 "leaf" : 1,
4455 "path" : "/config/whitelist/domain/{id}",
4456 "text" : "{id}"
4457 }
4458 ],
4459 "info" : {
4460 "POST" : {
4461 "description" : "Add 'Domain' object.",
4462 "method" : "POST",
4463 "name" : "domain",
410dc2c9
DM
4464 "parameters" : {
4465 "additionalProperties" : 0,
4466 "properties" : {
eff914dc
DM
4467 "domain" : {
4468 "description" : "DNS domain name (Sender).",
4469 "format" : "dns-name",
410dc2c9
DM
4470 "type" : "string",
4471 "typetext" : "<string>"
eff914dc
DM
4472 }
4473 }
4474 },
a55e94a6 4475 "protected" : 1,
eff914dc
DM
4476 "proxyto" : "master",
4477 "returns" : {
4478 "description" : "The object ID.",
4479 "type" : "integer"
4480 }
4481 }
4482 },
4483 "leaf" : 0,
4484 "path" : "/config/whitelist/domain",
4485 "text" : "domain"
4486 },
4487 {
4488 "children" : [
4489 {
4490 "info" : {
4491 "GET" : {
4492 "description" : "Read 'Domain' object settings.",
4493 "method" : "GET",
4494 "name" : "read_receiver_domain",
4495 "parameters" : {
4496 "additionalProperties" : 0,
4497 "properties" : {
4498 "id" : {
4499 "description" : "Object ID.",
4500 "type" : "integer",
4501 "typetext" : "<integer>"
4502 }
4503 }
410dc2c9 4504 },
eff914dc
DM
4505 "proxyto" : "master",
4506 "returns" : {
4507 "properties" : {
4508 "id" : {
4509 "type" : "integer"
4510 }
4511 },
4512 "type" : "object"
4513 }
4514 },
4515 "PUT" : {
4516 "description" : "Update 'Domain' object.",
4517 "method" : "PUT",
4518 "name" : "update_receiver_domain",
4519 "parameters" : {
4520 "additionalProperties" : 0,
4521 "properties" : {
4522 "domain" : {
4523 "description" : "DNS domain name (Sender).",
4524 "format" : "dns-name",
4525 "type" : "string",
4526 "typetext" : "<string>"
4527 },
4528 "id" : {
4529 "description" : "Object ID.",
4530 "type" : "integer",
4531 "typetext" : "<integer>"
4532 }
4533 }
410dc2c9 4534 },
a55e94a6 4535 "protected" : 1,
eff914dc
DM
4536 "proxyto" : "master",
4537 "returns" : {
4538 "type" : "null"
4539 }
4540 }
4541 },
4542 "leaf" : 1,
4543 "path" : "/config/whitelist/receiver_domain/{id}",
4544 "text" : "{id}"
4545 }
4546 ],
4547 "info" : {
4548 "POST" : {
4549 "description" : "Add 'Domain' object.",
4550 "method" : "POST",
4551 "name" : "receiver_domain",
4552 "parameters" : {
4553 "additionalProperties" : 0,
4554 "properties" : {
4555 "domain" : {
4556 "description" : "DNS domain name (Sender).",
4557 "format" : "dns-name",
410dc2c9
DM
4558 "type" : "string",
4559 "typetext" : "<string>"
eff914dc
DM
4560 }
4561 }
4562 },
a55e94a6 4563 "protected" : 1,
eff914dc
DM
4564 "proxyto" : "master",
4565 "returns" : {
4566 "description" : "The object ID.",
4567 "type" : "integer"
4568 }
4569 }
4570 },
4571 "leaf" : 0,
4572 "path" : "/config/whitelist/receiver_domain",
4573 "text" : "receiver_domain"
4574 },
4575 {
4576 "children" : [
4577 {
4578 "info" : {
4579 "GET" : {
4580 "description" : "Read 'Regular Expression' object settings.",
4581 "method" : "GET",
4582 "name" : "read_regex",
4583 "parameters" : {
4584 "additionalProperties" : 0,
4585 "properties" : {
4586 "id" : {
4587 "description" : "Object ID.",
4588 "type" : "integer",
4589 "typetext" : "<integer>"
4590 }
4591 }
410dc2c9 4592 },
eff914dc
DM
4593 "proxyto" : "master",
4594 "returns" : {
4595 "properties" : {
4596 "id" : {
4597 "type" : "integer"
4598 }
4599 },
4600 "type" : "object"
4601 }
4602 },
4603 "PUT" : {
4604 "description" : "Update 'Regular Expression' object.",
4605 "method" : "PUT",
4606 "name" : "update_regex",
4607 "parameters" : {
4608 "additionalProperties" : 0,
4609 "properties" : {
4610 "id" : {
4611 "description" : "Object ID.",
4612 "type" : "integer",
4613 "typetext" : "<integer>"
4614 },
4615 "regex" : {
4616 "description" : "Email address regular expression.",
4617 "maxLength" : 1024,
4618 "type" : "string",
4619 "typetext" : "<string>"
4620 }
4621 }
4622 },
a55e94a6 4623 "protected" : 1,
eff914dc
DM
4624 "proxyto" : "master",
4625 "returns" : {
4626 "type" : "null"
4627 }
4628 }
4629 },
4630 "leaf" : 1,
4631 "path" : "/config/whitelist/regex/{id}",
4632 "text" : "{id}"
4633 }
4634 ],
4635 "info" : {
4636 "POST" : {
4637 "description" : "Add 'Regular Expression' object.",
4638 "method" : "POST",
4639 "name" : "regex",
4640 "parameters" : {
4641 "additionalProperties" : 0,
4642 "properties" : {
4643 "regex" : {
4644 "description" : "Email address regular expression.",
4645 "maxLength" : 1024,
410dc2c9
DM
4646 "type" : "string",
4647 "typetext" : "<string>"
eff914dc
DM
4648 }
4649 }
4650 },
a55e94a6 4651 "protected" : 1,
eff914dc
DM
4652 "proxyto" : "master",
4653 "returns" : {
4654 "description" : "The object ID.",
4655 "type" : "integer"
4656 }
4657 }
4658 },
4659 "leaf" : 0,
4660 "path" : "/config/whitelist/regex",
4661 "text" : "regex"
4662 },
4663 {
4664 "children" : [
4665 {
4666 "info" : {
4667 "GET" : {
4668 "description" : "Read 'Regular Expression' object settings.",
4669 "method" : "GET",
4670 "name" : "read_receiver_regex",
4671 "parameters" : {
4672 "additionalProperties" : 0,
4673 "properties" : {
4674 "id" : {
4675 "description" : "Object ID.",
4676 "type" : "integer",
4677 "typetext" : "<integer>"
4678 }
4679 }
4680 },
4681 "proxyto" : "master",
4682 "returns" : {
4683 "properties" : {
4684 "id" : {
4685 "type" : "integer"
4686 }
4687 },
4688 "type" : "object"
4689 }
4690 },
4691 "PUT" : {
4692 "description" : "Update 'Regular Expression' object.",
4693 "method" : "PUT",
4694 "name" : "update_receiver_regex",
4695 "parameters" : {
4696 "additionalProperties" : 0,
4697 "properties" : {
4698 "id" : {
4699 "description" : "Object ID.",
4700 "type" : "integer",
4701 "typetext" : "<integer>"
4702 },
4703 "regex" : {
4704 "description" : "Email address regular expression.",
4705 "maxLength" : 1024,
4706 "type" : "string",
4707 "typetext" : "<string>"
4708 }
4709 }
4710 },
a55e94a6 4711 "protected" : 1,
eff914dc
DM
4712 "proxyto" : "master",
4713 "returns" : {
4714 "type" : "null"
4715 }
4716 }
4717 },
4718 "leaf" : 1,
4719 "path" : "/config/whitelist/receiver_regex/{id}",
4720 "text" : "{id}"
4721 }
4722 ],
4723 "info" : {
4724 "POST" : {
4725 "description" : "Add 'Regular Expression' object.",
4726 "method" : "POST",
4727 "name" : "receiver_regex",
4728 "parameters" : {
4729 "additionalProperties" : 0,
4730 "properties" : {
4731 "regex" : {
4732 "description" : "Email address regular expression.",
4733 "maxLength" : 1024,
4734 "type" : "string",
4735 "typetext" : "<string>"
4736 }
4737 }
4738 },
a55e94a6 4739 "protected" : 1,
eff914dc
DM
4740 "proxyto" : "master",
4741 "returns" : {
4742 "description" : "The object ID.",
4743 "type" : "integer"
4744 }
4745 }
4746 },
4747 "leaf" : 0,
4748 "path" : "/config/whitelist/receiver_regex",
4749 "text" : "receiver_regex"
4750 },
4751 {
4752 "children" : [
4753 {
4754 "info" : {
4755 "GET" : {
4756 "description" : "Read 'IP Address' object settings.",
4757 "method" : "GET",
4758 "name" : "read_ip",
4759 "parameters" : {
4760 "additionalProperties" : 0,
4761 "properties" : {
4762 "id" : {
4763 "description" : "Object ID.",
4764 "type" : "integer",
4765 "typetext" : "<integer>"
4766 }
4767 }
4768 },
4769 "proxyto" : "master",
4770 "returns" : {
4771 "properties" : {
4772 "id" : {
4773 "type" : "integer"
4774 }
4775 },
4776 "type" : "object"
4777 }
4778 },
4779 "PUT" : {
4780 "description" : "Update 'IP Address' object.",
4781 "method" : "PUT",
4782 "name" : "update_ip",
4783 "parameters" : {
4784 "additionalProperties" : 0,
4785 "properties" : {
4786 "id" : {
4787 "description" : "Object ID.",
4788 "type" : "integer",
4789 "typetext" : "<integer>"
4790 },
4791 "ip" : {
4792 "description" : "IP address",
4793 "format" : "ip",
4794 "type" : "string",
4795 "typetext" : "<string>"
4796 }
4797 }
4798 },
a55e94a6 4799 "protected" : 1,
eff914dc
DM
4800 "proxyto" : "master",
4801 "returns" : {
4802 "type" : "null"
4803 }
4804 }
4805 },
4806 "leaf" : 1,
4807 "path" : "/config/whitelist/ip/{id}",
4808 "text" : "{id}"
4809 }
4810 ],
4811 "info" : {
4812 "POST" : {
4813 "description" : "Add 'IP Address' object.",
4814 "method" : "POST",
4815 "name" : "ip",
4816 "parameters" : {
4817 "additionalProperties" : 0,
4818 "properties" : {
4819 "ip" : {
4820 "description" : "IP address",
4821 "format" : "ip",
4822 "type" : "string",
4823 "typetext" : "<string>"
4824 }
4825 }
4826 },
a55e94a6 4827 "protected" : 1,
eff914dc
DM
4828 "proxyto" : "master",
4829 "returns" : {
4830 "description" : "The object ID.",
4831 "type" : "integer"
4832 }
4833 }
4834 },
4835 "leaf" : 0,
4836 "path" : "/config/whitelist/ip",
4837 "text" : "ip"
4838 },
4839 {
4840 "children" : [
4841 {
4842 "info" : {
4843 "GET" : {
4844 "description" : "Read 'IP Network' object settings.",
4845 "method" : "GET",
4846 "name" : "read_network",
4847 "parameters" : {
4848 "additionalProperties" : 0,
4849 "properties" : {
4850 "id" : {
4851 "description" : "Object ID.",
4852 "type" : "integer",
4853 "typetext" : "<integer>"
4854 }
4855 }
4856 },
4857 "proxyto" : "master",
4858 "returns" : {
4859 "properties" : {
4860 "id" : {
4861 "type" : "integer"
4862 }
4863 },
4864 "type" : "object"
4865 }
4866 },
4867 "PUT" : {
4868 "description" : "Update 'IP Network' object.",
4869 "method" : "PUT",
4870 "name" : "update_network",
4871 "parameters" : {
4872 "additionalProperties" : 0,
4873 "properties" : {
4874 "cidr" : {
4875 "description" : "Network address in CIDR notation.",
4876 "format" : "CIDR",
4877 "type" : "string",
4878 "typetext" : "<string>"
4879 },
4880 "id" : {
4881 "description" : "Object ID.",
4882 "type" : "integer",
4883 "typetext" : "<integer>"
4884 }
4885 }
4886 },
a55e94a6 4887 "protected" : 1,
eff914dc
DM
4888 "proxyto" : "master",
4889 "returns" : {
4890 "type" : "null"
4891 }
4892 }
4893 },
4894 "leaf" : 1,
4895 "path" : "/config/whitelist/network/{id}",
4896 "text" : "{id}"
4897 }
4898 ],
4899 "info" : {
4900 "POST" : {
4901 "description" : "Add 'IP Network' object.",
4902 "method" : "POST",
4903 "name" : "network",
4904 "parameters" : {
4905 "additionalProperties" : 0,
4906 "properties" : {
4907 "cidr" : {
4908 "description" : "Network address in CIDR notation.",
4909 "format" : "CIDR",
4910 "type" : "string",
4911 "typetext" : "<string>"
4912 }
4913 }
4914 },
a55e94a6 4915 "protected" : 1,
eff914dc
DM
4916 "proxyto" : "master",
4917 "returns" : {
4918 "description" : "The object ID.",
4919 "type" : "integer"
4920 }
4921 }
4922 },
4923 "leaf" : 0,
4924 "path" : "/config/whitelist/network",
4925 "text" : "network"
4926 }
4927 ],
4928 "info" : {
4929 "GET" : {
4930 "description" : "Directory index.",
4931 "method" : "GET",
4932 "name" : "index",
4933 "parameters" : {
4934 "additionalProperties" : 0
4935 },
732d76e1
DM
4936 "permissions" : {
4937 "check" : [
4938 "admin",
4939 "audit"
4940 ]
4941 },
eff914dc
DM
4942 "returns" : {
4943 "items" : {
4944 "properties" : {
4945 "subdir" : {
4946 "type" : "string"
4947 }
4948 },
4949 "type" : "object"
4950 },
4951 "links" : [
4952 {
4953 "href" : "{subdir}",
4954 "rel" : "child"
4955 }
4956 ],
4957 "type" : "array"
4958 }
4959 }
4960 },
4961 "leaf" : 0,
4962 "path" : "/config/whitelist",
4963 "text" : "whitelist"
4964 },
4965 {
4966 "children" : [
4967 {
a55e94a6
DM
4968 "children" : [
4969 {
4970 "info" : {
4971 "GET" : {
4972 "description" : "Get LDAP profile configuration.",
4973 "method" : "GET",
4974 "name" : "read_config",
4975 "parameters" : {
4976 "additionalProperties" : 0,
4977 "properties" : {
4978 "profile" : {
4979 "description" : "Profile ID.",
4980 "format" : "pve-configid",
4981 "type" : "string",
4982 "typetext" : "<string>"
4983 }
4984 }
4985 },
4986 "permissions" : {
4987 "check" : [
4988 "admin"
4989 ]
4990 },
4991 "proxyto" : "master",
4992 "returns" : {}
4993 },
4994 "PUT" : {
4995 "description" : "Update LDAP profile settings.",
4996 "method" : "PUT",
4997 "name" : "update_config",
4998 "parameters" : {
4999 "additionalProperties" : 0,
5000 "properties" : {
5001 "accountattr" : {
732d76e1 5002 "default" : "sAMAccountName, uid",
a55e94a6 5003 "description" : "Account attribute name name.",
732d76e1 5004 "format" : "string-list",
a55e94a6
DM
5005 "optional" : 1,
5006 "pattern" : "[a-zA-Z0-9]+",
5007 "type" : "string"
5008 },
5009 "basedn" : {
5010 "description" : "Base domain name.",
5011 "optional" : 1,
5012 "type" : "string",
5013 "typetext" : "<string>"
5014 },
5015 "binddn" : {
5016 "description" : "Bind domain name.",
5017 "optional" : 1,
5018 "type" : "string",
5019 "typetext" : "<string>"
5020 },
5021 "bindpw" : {
5022 "description" : "Bind password.",
5023 "optional" : 1,
5024 "type" : "string",
5025 "typetext" : "<string>"
5026 },
5027 "comment" : {
5028 "description" : "Description.",
5029 "maxLength" : 4096,
5030 "optional" : 1,
5031 "type" : "string",
5032 "typetext" : "<string>"
5033 },
5034 "delete" : {
5035 "description" : "A list of settings you want to delete.",
5036 "format" : "pve-configid-list",
5037 "maxLength" : 4096,
5038 "optional" : 1,
5039 "type" : "string",
5040 "typetext" : "<string>"
5041 },
5042 "digest" : {
5043 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
5044 "maxLength" : 40,
5045 "optional" : 1,
5046 "type" : "string",
5047 "typetext" : "<string>"
5048 },
5049 "disable" : {
5050 "description" : "Flag to disable/deactivate the entry.",
5051 "optional" : 1,
5052 "type" : "boolean",
5053 "typetext" : "<boolean>"
5054 },
5055 "filter" : {
5056 "description" : "LDAP filter.",
5057 "optional" : 1,
5058 "type" : "string",
5059 "typetext" : "<string>"
5060 },
5061 "groupbasedn" : {
5062 "description" : "Base domain name for groups.",
5063 "optional" : 1,
5064 "type" : "string",
5065 "typetext" : "<string>"
5066 },
732d76e1
DM
5067 "groupclass" : {
5068 "default" : "group, univentionGroup, ipausergroup",
5069 "description" : "List of objectclasses for groups.",
5070 "format" : "string-list",
5071 "optional" : 1,
5072 "type" : "string",
5073 "typetext" : "<string>"
5074 },
a55e94a6
DM
5075 "mailattr" : {
5076 "default" : "mail, userPrincipalName, proxyAddresses, othermailbox",
5077 "description" : "List of mail attribute names.",
5078 "format" : "string-list",
5079 "optional" : 1,
5080 "pattern" : "[a-zA-Z0-9]+",
5081 "type" : "string"
5082 },
5083 "mode" : {
5084 "default" : "ldap",
5085 "description" : "LDAP protocol mode ('ldap' or 'ldaps').",
5086 "enum" : [
5087 "ldap",
5088 "ldaps"
5089 ],
5090 "optional" : 1,
5091 "type" : "string"
5092 },
5093 "port" : {
5094 "description" : "Specify the port to connect to.",
5095 "maximum" : 65535,
5096 "minimum" : 1,
5097 "optional" : 1,
5098 "type" : "integer",
5099 "typetext" : "<integer> (1 - 65535)"
5100 },
5101 "profile" : {
5102 "description" : "Profile ID.",
5103 "format" : "pve-configid",
5104 "type" : "string",
5105 "typetext" : "<string>"
5106 },
5107 "server1" : {
5108 "description" : "Server address.",
5109 "format" : "address",
5110 "maxLength" : 256,
5111 "optional" : 1,
5112 "type" : "string",
5113 "typetext" : "<string>"
5114 },
5115 "server2" : {
5116 "description" : "Fallback server address. Userd when the first server is not available.",
5117 "format" : "address",
5118 "maxLength" : 256,
5119 "optional" : 1,
5120 "type" : "string",
5121 "typetext" : "<string>"
5122 }
732d76e1
DM
5123 },
5124 "type" : "object"
5125 },
5126 "permissions" : {
5127 "check" : [
5128 "admin"
5129 ]
5130 },
5131 "protected" : 1,
5132 "proxyto" : "master",
5133 "returns" : {
5134 "type" : "null"
5135 }
5136 }
5137 },
5138 "leaf" : 1,
5139 "path" : "/config/ldap/{profile}/config",
5140 "text" : "config"
5141 },
5142 {
5143 "info" : {
5144 "POST" : {
5145 "description" : "Synchronice LDAP users to local database.",
5146 "method" : "POST",
5147 "name" : "sync_profile",
5148 "parameters" : {
5149 "additionalProperties" : 0,
5150 "properties" : {
5151 "profile" : {
5152 "description" : "Profile ID.",
5153 "format" : "pve-configid",
5154 "type" : "string",
5155 "typetext" : "<string>"
5156 }
5157 }
5158 },
5159 "permissions" : {
5160 "check" : [
5161 "admin"
5162 ]
5163 },
5164 "protected" : 1,
5165 "proxyto" : "master",
5166 "returns" : {
5167 "type" : "null"
5168 }
5169 }
5170 },
5171 "leaf" : 1,
5172 "path" : "/config/ldap/{profile}/sync",
5173 "text" : "sync"
5174 },
5175 {
5176 "children" : [
5177 {
5178 "info" : {
5179 "GET" : {
5180 "description" : "Get all email addresses for the specified user.",
5181 "method" : "GET",
5182 "name" : "address_list",
5183 "parameters" : {
5184 "additionalProperties" : 0,
5185 "properties" : {
5186 "email" : {
5187 "description" : "Email address.",
5188 "format" : "email",
5189 "type" : "string",
5190 "typetext" : "<string>"
5191 },
5192 "profile" : {
5193 "description" : "Profile ID.",
5194 "format" : "pve-configid",
5195 "type" : "string",
5196 "typetext" : "<string>"
5197 }
5198 }
5199 },
5200 "permissions" : {
5201 "check" : [
5202 "admin"
5203 ]
5204 },
5205 "protected" : 1,
5206 "proxyto" : "master",
5207 "returns" : {
5208 "items" : {
5209 "properties" : {
5210 "email" : {
5211 "type" : "string"
5212 },
5213 "primary" : {
5214 "type" : "boolean"
5215 }
5216 },
5217 "type" : "object"
5218 },
5219 "type" : "array"
5220 }
5221 }
a55e94a6 5222 },
732d76e1
DM
5223 "leaf" : 1,
5224 "path" : "/config/ldap/{profile}/users/{email}",
5225 "text" : "{email}"
a55e94a6 5226 }
732d76e1 5227 ],
a55e94a6 5228 "info" : {
732d76e1
DM
5229 "GET" : {
5230 "description" : "List LDAP users.",
5231 "method" : "GET",
5232 "name" : "profile_list_users",
a55e94a6
DM
5233 "parameters" : {
5234 "additionalProperties" : 0,
5235 "properties" : {
5236 "profile" : {
5237 "description" : "Profile ID.",
5238 "format" : "pve-configid",
5239 "type" : "string",
5240 "typetext" : "<string>"
5241 }
5242 }
5243 },
5244 "permissions" : {
5245 "check" : [
5246 "admin"
5247 ]
5248 },
5249 "protected" : 1,
5250 "proxyto" : "master",
5251 "returns" : {
732d76e1
DM
5252 "items" : {
5253 "properties" : {
5254 "account" : {
5255 "type" : "string"
5256 },
5257 "dn" : {
5258 "type" : "string"
5259 },
5260 "pmail" : {
5261 "type" : "string"
5262 }
5263 },
5264 "type" : "object"
5265 },
5266 "links" : [
5267 {
5268 "href" : "{pmail}",
5269 "rel" : "child"
5270 }
5271 ],
5272 "type" : "array"
a55e94a6
DM
5273 }
5274 }
5275 },
732d76e1
DM
5276 "leaf" : 0,
5277 "path" : "/config/ldap/{profile}/users",
5278 "text" : "users"
a55e94a6
DM
5279 },
5280 {
5281 "children" : [
5282 {
5283 "info" : {
5284 "GET" : {
732d76e1 5285 "description" : "List LDAP group members.",
a55e94a6 5286 "method" : "GET",
732d76e1 5287 "name" : "profile_list_group_members",
a55e94a6
DM
5288 "parameters" : {
5289 "additionalProperties" : 0,
5290 "properties" : {
732d76e1
DM
5291 "gid" : {
5292 "description" : "Group ID",
5293 "type" : "number",
5294 "typetext" : "<number>"
a55e94a6
DM
5295 },
5296 "profile" : {
5297 "description" : "Profile ID.",
5298 "format" : "pve-configid",
5299 "type" : "string",
5300 "typetext" : "<string>"
5301 }
5302 }
5303 },
5304 "permissions" : {
5305 "check" : [
5306 "admin"
5307 ]
5308 },
5309 "protected" : 1,
5310 "proxyto" : "master",
5311 "returns" : {
5312 "items" : {
5313 "properties" : {
732d76e1 5314 "account" : {
a55e94a6
DM
5315 "type" : "string"
5316 },
732d76e1
DM
5317 "dn" : {
5318 "type" : "string"
5319 },
5320 "pmail" : {
5321 "type" : "string"
a55e94a6
DM
5322 }
5323 },
5324 "type" : "object"
5325 },
5326 "type" : "array"
5327 }
5328 }
5329 },
5330 "leaf" : 1,
732d76e1
DM
5331 "path" : "/config/ldap/{profile}/groups/{gid}",
5332 "text" : "{gid}"
a55e94a6
DM
5333 }
5334 ],
5335 "info" : {
5336 "GET" : {
732d76e1 5337 "description" : "List LDAP groups.",
a55e94a6 5338 "method" : "GET",
732d76e1 5339 "name" : "profile_list_groups",
a55e94a6
DM
5340 "parameters" : {
5341 "additionalProperties" : 0,
5342 "properties" : {
5343 "profile" : {
5344 "description" : "Profile ID.",
5345 "format" : "pve-configid",
5346 "type" : "string",
5347 "typetext" : "<string>"
5348 }
5349 }
5350 },
5351 "permissions" : {
5352 "check" : [
5353 "admin"
5354 ]
5355 },
5356 "protected" : 1,
5357 "proxyto" : "master",
5358 "returns" : {
5359 "items" : {
5360 "properties" : {
a55e94a6
DM
5361 "dn" : {
5362 "type" : "string"
5363 },
732d76e1
DM
5364 "gid" : {
5365 "type" : "number"
a55e94a6
DM
5366 }
5367 },
5368 "type" : "object"
5369 },
732d76e1
DM
5370 "links" : [
5371 {
5372 "href" : "{gid}",
5373 "rel" : "child"
5374 }
5375 ],
a55e94a6
DM
5376 "type" : "array"
5377 }
5378 }
5379 },
732d76e1
DM
5380 "leaf" : 0,
5381 "path" : "/config/ldap/{profile}/groups",
5382 "text" : "groups"
5383 }
5384 ],
5385 "info" : {
5386 "DELETE" : {
5387 "description" : "Delete an LDAP profile",
5388 "method" : "DELETE",
5389 "name" : "delete",
5390 "parameters" : {
5391 "additionalProperties" : 0,
5392 "properties" : {
5393 "profile" : {
5394 "description" : "Profile ID.",
5395 "format" : "pve-configid",
5396 "type" : "string",
5397 "typetext" : "<string>"
5398 }
5399 }
5400 },
5401 "permissions" : {
5402 "check" : [
5403 "admin"
5404 ]
5405 },
5406 "protected" : 1,
5407 "proxyto" : "master",
5408 "returns" : {
5409 "type" : "null"
5410 }
5411 },
5412 "GET" : {
5413 "description" : "Directory index",
5414 "method" : "GET",
5415 "name" : "profile_index",
5416 "parameters" : {
5417 "additionalProperties" : 0,
5418 "properties" : {
5419 "profile" : {
5420 "description" : "Profile ID.",
5421 "format" : "pve-configid",
5422 "type" : "string",
5423 "typetext" : "<string>"
5424 }
5425 }
5426 },
5427 "permissions" : {
5428 "user" : "all"
5429 },
5430 "returns" : {
5431 "items" : {
5432 "properties" : {
5433 "subdir" : {
5434 "type" : "string"
5435 }
5436 },
5437 "type" : "object"
5438 },
5439 "links" : [
5440 {
5441 "href" : "{subdir}",
5442 "rel" : "child"
5443 }
5444 ],
5445 "type" : "array"
5446 }
5447 }
5448 },
5449 "leaf" : 0,
5450 "path" : "/config/ldap/{profile}",
5451 "text" : "{profile}"
5452 }
5453 ],
5454 "info" : {
5455 "GET" : {
5456 "description" : "List configured LDAP profiles.",
5457 "method" : "GET",
5458 "name" : "index",
5459 "parameters" : {
5460 "additionalProperties" : 0
5461 },
5462 "permissions" : {
5463 "check" : [
5464 "admin"
5465 ]
5466 },
5467 "proxyto" : "master",
5468 "returns" : {
5469 "items" : {
5470 "properties" : {
5471 "comment" : {
5472 "optional" : 1,
5473 "type" : "string"
5474 },
5475 "disable" : {
5476 "type" : "boolean"
5477 },
5478 "gcount" : {
5479 "optional" : 1,
5480 "type" : "integer"
5481 },
5482 "mcount" : {
5483 "optional" : 1,
5484 "type" : "integer"
5485 },
5486 "mode" : {
5487 "type" : "string"
5488 },
5489 "profile" : {
5490 "type" : "string"
5491 },
5492 "server1" : {
5493 "type" : "string"
5494 },
5495 "server2" : {
5496 "optional" : 1,
5497 "type" : "string"
5498 },
5499 "ucount" : {
5500 "optional" : 1,
5501 "type" : "integer"
5502 }
5503 },
5504 "type" : "object"
5505 },
5506 "links" : [
5507 {
5508 "href" : "{profile}",
5509 "rel" : "child"
5510 }
5511 ],
5512 "type" : "array"
5513 }
5514 },
5515 "POST" : {
5516 "description" : "Add LDAP profile.",
5517 "method" : "POST",
5518 "name" : "create",
5519 "parameters" : {
5520 "additionalProperties" : 0,
5521 "properties" : {
5522 "accountattr" : {
5523 "default" : "sAMAccountName, uid",
5524 "description" : "Account attribute name name.",
5525 "format" : "string-list",
5526 "optional" : 1,
5527 "pattern" : "[a-zA-Z0-9]+",
5528 "type" : "string"
5529 },
5530 "basedn" : {
5531 "description" : "Base domain name.",
5532 "optional" : 1,
5533 "type" : "string",
5534 "typetext" : "<string>"
5535 },
5536 "binddn" : {
5537 "description" : "Bind domain name.",
5538 "optional" : 1,
5539 "type" : "string",
5540 "typetext" : "<string>"
5541 },
5542 "bindpw" : {
5543 "description" : "Bind password.",
5544 "optional" : 1,
5545 "type" : "string",
5546 "typetext" : "<string>"
5547 },
5548 "comment" : {
5549 "description" : "Description.",
5550 "maxLength" : 4096,
5551 "optional" : 1,
5552 "type" : "string",
5553 "typetext" : "<string>"
5554 },
5555 "disable" : {
5556 "description" : "Flag to disable/deactivate the entry.",
5557 "optional" : 1,
5558 "type" : "boolean",
5559 "typetext" : "<boolean>"
a55e94a6 5560 },
732d76e1
DM
5561 "filter" : {
5562 "description" : "LDAP filter.",
5563 "optional" : 1,
5564 "type" : "string",
5565 "typetext" : "<string>"
5566 },
5567 "groupbasedn" : {
5568 "description" : "Base domain name for groups.",
5569 "optional" : 1,
5570 "type" : "string",
5571 "typetext" : "<string>"
5572 },
5573 "groupclass" : {
5574 "default" : "group, univentionGroup, ipausergroup",
5575 "description" : "List of objectclasses for groups.",
5576 "format" : "string-list",
5577 "optional" : 1,
5578 "type" : "string",
5579 "typetext" : "<string>"
5580 },
5581 "mailattr" : {
5582 "default" : "mail, userPrincipalName, proxyAddresses, othermailbox",
5583 "description" : "List of mail attribute names.",
5584 "format" : "string-list",
5585 "optional" : 1,
5586 "pattern" : "[a-zA-Z0-9]+",
5587 "type" : "string"
5588 },
5589 "mode" : {
5590 "default" : "ldap",
5591 "description" : "LDAP protocol mode ('ldap' or 'ldaps').",
5592 "enum" : [
5593 "ldap",
5594 "ldaps"
5595 ],
5596 "optional" : 1,
5597 "type" : "string"
5598 },
5599 "port" : {
5600 "description" : "Specify the port to connect to.",
5601 "maximum" : 65535,
5602 "minimum" : 1,
5603 "optional" : 1,
5604 "type" : "integer",
5605 "typetext" : "<integer> (1 - 65535)"
5606 },
5607 "profile" : {
5608 "description" : "Profile ID.",
5609 "format" : "pve-configid",
5610 "type" : "string",
5611 "typetext" : "<string>"
5612 },
5613 "server1" : {
5614 "description" : "Server address.",
5615 "format" : "address",
5616 "maxLength" : 256,
5617 "optional" : 0,
5618 "type" : "string",
5619 "typetext" : "<string>"
5620 },
5621 "server2" : {
5622 "description" : "Fallback server address. Userd when the first server is not available.",
5623 "format" : "address",
5624 "maxLength" : 256,
5625 "optional" : 1,
5626 "type" : "string",
5627 "typetext" : "<string>"
5628 }
5629 },
5630 "type" : "object"
5631 },
5632 "permissions" : {
5633 "check" : [
5634 "admin"
5635 ]
5636 },
5637 "protected" : 1,
5638 "proxyto" : "master",
5639 "returns" : {
5640 "type" : "null"
5641 }
5642 }
5643 },
5644 "leaf" : 0,
5645 "path" : "/config/ldap",
5646 "text" : "ldap"
5647 },
5648 {
5649 "children" : [
5650 {
a55e94a6
DM
5651 "info" : {
5652 "DELETE" : {
732d76e1 5653 "description" : "Delete a relay domain",
a55e94a6
DM
5654 "method" : "DELETE",
5655 "name" : "delete",
5656 "parameters" : {
5657 "additionalProperties" : 0,
5658 "properties" : {
732d76e1
DM
5659 "domain" : {
5660 "description" : "Domain name.",
5661 "format" : "dns-name",
eff914dc
DM
5662 "type" : "string",
5663 "typetext" : "<string>"
5664 }
5665 }
5666 },
a55e94a6
DM
5667 "permissions" : {
5668 "check" : [
5669 "admin"
5670 ]
5671 },
eff914dc
DM
5672 "protected" : 1,
5673 "proxyto" : "master",
a55e94a6
DM
5674 "returns" : {
5675 "type" : "null"
5676 }
eff914dc 5677 },
a55e94a6 5678 "GET" : {
732d76e1 5679 "description" : "Read Domain data (comment).",
a55e94a6 5680 "method" : "GET",
732d76e1 5681 "name" : "read",
eff914dc
DM
5682 "parameters" : {
5683 "additionalProperties" : 0,
5684 "properties" : {
732d76e1
DM
5685 "domain" : {
5686 "description" : "Domain name.",
5687 "format" : "dns-name",
eff914dc
DM
5688 "type" : "string",
5689 "typetext" : "<string>"
a55e94a6
DM
5690 }
5691 }
5692 },
5693 "permissions" : {
732d76e1
DM
5694 "check" : [
5695 "admin",
5696 "audit"
5697 ]
a55e94a6 5698 },
732d76e1 5699 "proxyto" : "master",
a55e94a6 5700 "returns" : {
732d76e1
DM
5701 "properties" : {
5702 "comment" : {
5703 "type" : "string"
eff914dc 5704 },
732d76e1
DM
5705 "domain" : {
5706 "type" : "string"
5707 }
eff914dc 5708 },
732d76e1
DM
5709 "type" : "object"
5710 }
5711 },
5712 "PUT" : {
5713 "description" : "Update relay domain data (comment).",
5714 "method" : "PUT",
5715 "name" : "write",
5716 "parameters" : {
5717 "additionalProperties" : 0,
5718 "properties" : {
5719 "comment" : {
5720 "description" : "Comment.",
5721 "type" : "string",
5722 "typetext" : "<string>"
5723 },
5724 "domain" : {
5725 "description" : "Domain name.",
5726 "format" : "dns-name",
5727 "type" : "string",
5728 "typetext" : "<string>"
a55e94a6 5729 }
732d76e1
DM
5730 }
5731 },
5732 "permissions" : {
5733 "check" : [
5734 "admin"
5735 ]
5736 },
5737 "protected" : 1,
5738 "proxyto" : "master",
5739 "returns" : {
5740 "type" : "null"
eff914dc
DM
5741 }
5742 }
5743 },
732d76e1
DM
5744 "leaf" : 1,
5745 "path" : "/config/domains/{domain}",
5746 "text" : "{domain}"
eff914dc
DM
5747 }
5748 ],
5749 "info" : {
5750 "GET" : {
732d76e1 5751 "description" : "List relay domains.",
eff914dc
DM
5752 "method" : "GET",
5753 "name" : "index",
5754 "parameters" : {
5755 "additionalProperties" : 0
5756 },
a55e94a6
DM
5757 "permissions" : {
5758 "check" : [
732d76e1
DM
5759 "admin",
5760 "audit"
a55e94a6
DM
5761 ]
5762 },
eff914dc
DM
5763 "proxyto" : "master",
5764 "returns" : {
5765 "items" : {
5766 "properties" : {
a55e94a6 5767 "comment" : {
eff914dc 5768 "type" : "string"
a55e94a6 5769 },
732d76e1
DM
5770 "domain" : {
5771 "type" : "string"
eff914dc
DM
5772 }
5773 },
5774 "type" : "object"
5775 },
5776 "links" : [
5777 {
732d76e1 5778 "href" : "{domain}",
eff914dc
DM
5779 "rel" : "child"
5780 }
5781 ],
5782 "type" : "array"
5783 }
5784 },
5785 "POST" : {
732d76e1 5786 "description" : "Add relay domain.",
eff914dc
DM
5787 "method" : "POST",
5788 "name" : "create",
5789 "parameters" : {
5790 "additionalProperties" : 0,
5791 "properties" : {
a55e94a6 5792 "comment" : {
732d76e1 5793 "description" : "Comment.",
eff914dc 5794 "optional" : 1,
eff914dc
DM
5795 "type" : "string",
5796 "typetext" : "<string>"
5797 },
732d76e1
DM
5798 "domain" : {
5799 "description" : "Domain name.",
5800 "format" : "dns-name",
eff914dc
DM
5801 "type" : "string",
5802 "typetext" : "<string>"
5803 }
732d76e1 5804 }
eff914dc 5805 },
a55e94a6
DM
5806 "permissions" : {
5807 "check" : [
5808 "admin"
5809 ]
5810 },
eff914dc
DM
5811 "protected" : 1,
5812 "proxyto" : "master",
5813 "returns" : {
5814 "type" : "null"
5815 }
5816 }
5817 },
5818 "leaf" : 0,
732d76e1
DM
5819 "path" : "/config/domains",
5820 "text" : "domains"
eff914dc
DM
5821 },
5822 {
5823 "children" : [
5824 {
5825 "info" : {
5826 "DELETE" : {
732d76e1 5827 "description" : "Delete a fetchmail configuration entry.",
eff914dc
DM
5828 "method" : "DELETE",
5829 "name" : "delete",
5830 "parameters" : {
5831 "additionalProperties" : 0,
5832 "properties" : {
732d76e1
DM
5833 "id" : {
5834 "description" : "Unique ID",
5835 "maxLength" : 16,
5836 "pattern" : "[A-Za-z0-9]+",
5837 "type" : "string"
eff914dc
DM
5838 }
5839 }
5840 },
732d76e1
DM
5841 "permissions" : {
5842 "check" : [
5843 "admin"
5844 ]
5845 },
eff914dc
DM
5846 "protected" : 1,
5847 "proxyto" : "master",
5848 "returns" : {
5849 "type" : "null"
5850 }
5851 },
5852 "GET" : {
732d76e1 5853 "description" : "Read fetchmail user configuration.",
eff914dc
DM
5854 "method" : "GET",
5855 "name" : "read",
5856 "parameters" : {
5857 "additionalProperties" : 0,
5858 "properties" : {
732d76e1
DM
5859 "id" : {
5860 "description" : "Unique ID",
5861 "maxLength" : 16,
5862 "pattern" : "[A-Za-z0-9]+",
5863 "type" : "string"
eff914dc
DM
5864 }
5865 }
5866 },
732d76e1
DM
5867 "permissions" : {
5868 "check" : [
5869 "admin",
5870 "audit"
5871 ]
5872 },
5873 "protected" : 1,
eff914dc
DM
5874 "proxyto" : "master",
5875 "returns" : {
5876 "properties" : {
732d76e1
DM
5877 "enable" : {
5878 "default" : 0,
5879 "description" : "Flag to enable or disable polling.",
5880 "optional" : 1,
5881 "type" : "boolean"
5882 },
5883 "id" : {
5884 "description" : "Unique ID",
5885 "maxLength" : 16,
5886 "pattern" : "[A-Za-z0-9]+",
eff914dc
DM
5887 "type" : "string"
5888 },
732d76e1
DM
5889 "interval" : {
5890 "description" : "Only check this site every <interval> poll cycles. A poll cycle is 5 minutes.",
5891 "maximum" : 2016,
5892 "minimum" : 1,
5893 "optional" : 1,
5894 "type" : "integer"
5895 },
5896 "keep" : {
5897 "default" : 0,
5898 "description" : "Keep retrieved messages on the remote mailserver.",
5899 "optional" : 1,
5900 "type" : "boolean"
5901 },
5902 "pass" : {
5903 "description" : "The password used tfor server login.",
5904 "maxLength" : 64,
5905 "optional" : 1,
5906 "type" : "string"
5907 },
5908 "port" : {
5909 "description" : "Port number.",
5910 "maximum" : 65535,
5911 "minimum" : 1,
5912 "optional" : 1,
5913 "type" : "integer"
5914 },
5915 "protocol" : {
5916 "description" : "Specify the protocol to use when communicating with the remote mailserver",
5917 "enum" : [
5918 "pop3",
5919 "imap"
5920 ],
5921 "optional" : 1,
5922 "type" : "string"
5923 },
5924 "server" : {
5925 "description" : "Server address (IP or DNS name).",
5926 "format" : "address",
5927 "optional" : 1,
5928 "type" : "string"
5929 },
5930 "ssl" : {
5931 "default" : 0,
5932 "description" : "Use SSL.",
5933 "optional" : 1,
5934 "type" : "boolean"
5935 },
5936 "target" : {
5937 "description" : "The target email address (where to deliver fetched mails).",
5938 "maxLength" : 512,
5939 "minLength" : 3,
5940 "optional" : 1,
5941 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
5942 "type" : "string"
5943 },
5944 "user" : {
5945 "description" : "The user identification to be used when logging in to the server",
5946 "maxLength" : 64,
5947 "minLength" : 1,
5948 "optional" : 1,
eff914dc
DM
5949 "type" : "string"
5950 }
5951 },
5952 "type" : "object"
5953 }
5954 },
5955 "PUT" : {
732d76e1 5956 "description" : "Update fetchmail user configuration.",
eff914dc
DM
5957 "method" : "PUT",
5958 "name" : "write",
5959 "parameters" : {
5960 "additionalProperties" : 0,
5961 "properties" : {
732d76e1
DM
5962 "enable" : {
5963 "default" : 0,
5964 "description" : "Flag to enable or disable polling.",
5965 "optional" : 1,
5966 "type" : "boolean",
5967 "typetext" : "<boolean>"
5968 },
5969 "id" : {
5970 "description" : "Unique ID",
5971 "maxLength" : 16,
5972 "pattern" : "[A-Za-z0-9]+",
5973 "type" : "string"
5974 },
5975 "interval" : {
5976 "description" : "Only check this site every <interval> poll cycles. A poll cycle is 5 minutes.",
5977 "maximum" : 2016,
5978 "minimum" : 1,
5979 "optional" : 1,
5980 "type" : "integer",
5981 "typetext" : "<integer> (1 - 2016)"
5982 },
5983 "keep" : {
5984 "default" : 0,
5985 "description" : "Keep retrieved messages on the remote mailserver.",
5986 "optional" : 1,
5987 "type" : "boolean",
5988 "typetext" : "<boolean>"
5989 },
5990 "pass" : {
5991 "description" : "The password used tfor server login.",
5992 "maxLength" : 64,
5993 "optional" : 1,
eff914dc
DM
5994 "type" : "string",
5995 "typetext" : "<string>"
5996 },
732d76e1
DM
5997 "port" : {
5998 "description" : "Port number.",
5999 "maximum" : 65535,
6000 "minimum" : 1,
6001 "optional" : 1,
6002 "type" : "integer",
6003 "typetext" : "<integer> (1 - 65535)"
6004 },
6005 "protocol" : {
6006 "description" : "Specify the protocol to use when communicating with the remote mailserver",
6007 "enum" : [
6008 "pop3",
6009 "imap"
6010 ],
6011 "optional" : 1,
6012 "type" : "string"
6013 },
6014 "server" : {
6015 "description" : "Server address (IP or DNS name).",
6016 "format" : "address",
6017 "optional" : 1,
6018 "type" : "string",
6019 "typetext" : "<string>"
6020 },
6021 "ssl" : {
6022 "default" : 0,
6023 "description" : "Use SSL.",
6024 "optional" : 1,
6025 "type" : "boolean",
6026 "typetext" : "<boolean>"
6027 },
6028 "target" : {
6029 "description" : "The target email address (where to deliver fetched mails).",
6030 "maxLength" : 512,
6031 "minLength" : 3,
6032 "optional" : 1,
6033 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
6034 "type" : "string"
6035 },
6036 "user" : {
6037 "description" : "The user identification to be used when logging in to the server",
6038 "maxLength" : 64,
6039 "minLength" : 1,
6040 "optional" : 1,
eff914dc
DM
6041 "type" : "string",
6042 "typetext" : "<string>"
6043 }
6044 }
6045 },
732d76e1
DM
6046 "permissions" : {
6047 "check" : [
6048 "admin"
6049 ]
6050 },
eff914dc
DM
6051 "protected" : 1,
6052 "proxyto" : "master",
6053 "returns" : {
6054 "type" : "null"
6055 }
6056 }
6057 },
6058 "leaf" : 1,
732d76e1
DM
6059 "path" : "/config/fetchmail/{id}",
6060 "text" : "{id}"
eff914dc
DM
6061 }
6062 ],
6063 "info" : {
6064 "GET" : {
732d76e1 6065 "description" : "List fetchmail users.",
eff914dc
DM
6066 "method" : "GET",
6067 "name" : "index",
6068 "parameters" : {
6069 "additionalProperties" : 0
6070 },
732d76e1
DM
6071 "permissions" : {
6072 "check" : [
6073 "admin",
6074 "audit"
6075 ]
6076 },
6077 "protected" : 1,
eff914dc
DM
6078 "proxyto" : "master",
6079 "returns" : {
6080 "items" : {
6081 "properties" : {
732d76e1
DM
6082 "enable" : {
6083 "default" : 0,
6084 "description" : "Flag to enable or disable polling.",
6085 "optional" : 1,
6086 "type" : "boolean"
6087 },
6088 "id" : {
6089 "description" : "Unique ID",
6090 "maxLength" : 16,
6091 "pattern" : "[A-Za-z0-9]+",
eff914dc
DM
6092 "type" : "string"
6093 },
732d76e1
DM
6094 "interval" : {
6095 "description" : "Only check this site every <interval> poll cycles. A poll cycle is 5 minutes.",
6096 "maximum" : 2016,
6097 "minimum" : 1,
6098 "optional" : 1,
6099 "type" : "integer"
6100 },
6101 "keep" : {
6102 "default" : 0,
6103 "description" : "Keep retrieved messages on the remote mailserver.",
6104 "optional" : 1,
6105 "type" : "boolean"
6106 },
6107 "pass" : {
6108 "description" : "The password used tfor server login.",
6109 "maxLength" : 64,
6110 "optional" : 1,
6111 "type" : "string"
6112 },
6113 "port" : {
6114 "description" : "Port number.",
6115 "maximum" : 65535,
6116 "minimum" : 1,
6117 "optional" : 1,
6118 "type" : "integer"
6119 },
6120 "protocol" : {
6121 "description" : "Specify the protocol to use when communicating with the remote mailserver",
6122 "enum" : [
6123 "pop3",
6124 "imap"
6125 ],
6126 "optional" : 1,
6127 "type" : "string"
6128 },
6129 "server" : {
6130 "description" : "Server address (IP or DNS name).",
6131 "format" : "address",
6132 "optional" : 1,
6133 "type" : "string"
6134 },
6135 "ssl" : {
6136 "default" : 0,
6137 "description" : "Use SSL.",
6138 "optional" : 1,
6139 "type" : "boolean"
6140 },
6141 "target" : {
6142 "description" : "The target email address (where to deliver fetched mails).",
6143 "maxLength" : 512,
6144 "minLength" : 3,
6145 "optional" : 1,
6146 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
6147 "type" : "string"
6148 },
6149 "user" : {
6150 "description" : "The user identification to be used when logging in to the server",
6151 "maxLength" : 64,
6152 "minLength" : 1,
6153 "optional" : 1,
eff914dc
DM
6154 "type" : "string"
6155 }
6156 },
6157 "type" : "object"
6158 },
6159 "links" : [
6160 {
732d76e1 6161 "href" : "{id}",
eff914dc
DM
6162 "rel" : "child"
6163 }
6164 ],
6165 "type" : "array"
6166 }
6167 },
6168 "POST" : {
732d76e1 6169 "description" : "Create fetchmail user configuration.",
eff914dc
DM
6170 "method" : "POST",
6171 "name" : "create",
6172 "parameters" : {
6173 "additionalProperties" : 0,
6174 "properties" : {
732d76e1
DM
6175 "enable" : {
6176 "default" : 0,
6177 "description" : "Flag to enable or disable polling.",
6178 "optional" : 1,
6179 "type" : "boolean",
6180 "typetext" : "<boolean>"
6181 },
6182 "interval" : {
6183 "description" : "Only check this site every <interval> poll cycles. A poll cycle is 5 minutes.",
6184 "maximum" : 2016,
6185 "minimum" : 1,
6186 "optional" : 1,
6187 "type" : "integer",
6188 "typetext" : "<integer> (1 - 2016)"
6189 },
6190 "keep" : {
6191 "default" : 0,
6192 "description" : "Keep retrieved messages on the remote mailserver.",
eff914dc 6193 "optional" : 1,
732d76e1
DM
6194 "type" : "boolean",
6195 "typetext" : "<boolean>"
6196 },
6197 "pass" : {
6198 "description" : "The password used tfor server login.",
6199 "maxLength" : 64,
eff914dc
DM
6200 "type" : "string",
6201 "typetext" : "<string>"
6202 },
732d76e1
DM
6203 "port" : {
6204 "description" : "Port number.",
6205 "maximum" : 65535,
6206 "minimum" : 1,
6207 "optional" : 1,
6208 "type" : "integer",
6209 "typetext" : "<integer> (1 - 65535)"
6210 },
6211 "protocol" : {
6212 "description" : "Specify the protocol to use when communicating with the remote mailserver",
6213 "enum" : [
6214 "pop3",
6215 "imap"
6216 ],
6217 "type" : "string"
6218 },
6219 "server" : {
6220 "description" : "Server address (IP or DNS name).",
6221 "format" : "address",
6222 "type" : "string",
6223 "typetext" : "<string>"
6224 },
6225 "ssl" : {
6226 "default" : 0,
6227 "description" : "Use SSL.",
6228 "optional" : 1,
6229 "type" : "boolean",
6230 "typetext" : "<boolean>"
6231 },
6232 "target" : {
6233 "description" : "The target email address (where to deliver fetched mails).",
6234 "maxLength" : 512,
6235 "minLength" : 3,
6236 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
6237 "type" : "string"
6238 },
6239 "user" : {
6240 "description" : "The user identification to be used when logging in to the server",
6241 "maxLength" : 64,
6242 "minLength" : 1,
eff914dc
DM
6243 "type" : "string",
6244 "typetext" : "<string>"
6245 }
6246 }
6247 },
732d76e1
DM
6248 "permissions" : {
6249 "check" : [
6250 "admin"
6251 ]
6252 },
eff914dc
DM
6253 "protected" : 1,
6254 "proxyto" : "master",
6255 "returns" : {
732d76e1
DM
6256 "description" : "Unique ID",
6257 "maxLength" : 16,
6258 "pattern" : "[A-Za-z0-9]+",
6259 "type" : "string"
eff914dc
DM
6260 }
6261 }
6262 },
6263 "leaf" : 0,
732d76e1
DM
6264 "path" : "/config/fetchmail",
6265 "text" : "fetchmail"
eff914dc
DM
6266 },
6267 {
6268 "children" : [
6269 {
6270 "info" : {
6271 "DELETE" : {
6272 "description" : "Delete a transport map entry",
6273 "method" : "DELETE",
6274 "name" : "delete",
6275 "parameters" : {
6276 "additionalProperties" : 0,
6277 "properties" : {
6278 "domain" : {
6279 "description" : "Domain name.",
6280 "format" : "transport-domain",
6281 "type" : "string",
6282 "typetext" : "<string>"
6283 }
6284 }
6285 },
732d76e1
DM
6286 "permissions" : {
6287 "check" : [
6288 "admin"
6289 ]
6290 },
eff914dc
DM
6291 "protected" : 1,
6292 "proxyto" : "master",
6293 "returns" : {
6294 "type" : "null"
6295 }
6296 },
6297 "GET" : {
6298 "description" : "Read transport map entry.",
6299 "method" : "GET",
6300 "name" : "read",
6301 "parameters" : {
6302 "additionalProperties" : 0,
6303 "properties" : {
6304 "domain" : {
6305 "description" : "Domain name.",
6306 "format" : "transport-domain",
6307 "type" : "string",
6308 "typetext" : "<string>"
6309 }
6310 }
6311 },
732d76e1
DM
6312 "permissions" : {
6313 "check" : [
6314 "admin",
6315 "audit"
6316 ]
6317 },
eff914dc
DM
6318 "proxyto" : "master",
6319 "returns" : {
6320 "properties" : {
6321 "comment" : {
6322 "type" : "string"
6323 },
6324 "domain" : {
6325 "type" : "string"
410dc2c9 6326 },
eff914dc
DM
6327 "host" : {
6328 "type" : "string"
6329 },
6330 "port" : {
6331 "type" : "integer"
6332 },
6333 "use_mx" : {
6334 "type" : "boolean"
6335 }
6336 },
6337 "type" : "object"
6338 }
6339 },
6340 "PUT" : {
6341 "description" : "Update transport map entry.",
6342 "method" : "PUT",
6343 "name" : "write",
6344 "parameters" : {
6345 "additionalProperties" : 0,
6346 "properties" : {
6347 "comment" : {
6348 "description" : "Comment.",
410dc2c9
DM
6349 "optional" : 1,
6350 "type" : "string",
6351 "typetext" : "<string>"
6352 },
eff914dc
DM
6353 "domain" : {
6354 "description" : "Domain name.",
6355 "format" : "transport-domain",
410dc2c9
DM
6356 "type" : "string",
6357 "typetext" : "<string>"
6358 },
eff914dc
DM
6359 "host" : {
6360 "description" : "Target host (name or IP address).",
6361 "format" : "address",
410dc2c9
DM
6362 "optional" : 1,
6363 "type" : "string",
6364 "typetext" : "<string>"
6365 },
410dc2c9 6366 "port" : {
eff914dc 6367 "description" : "SMTP port.",
410dc2c9
DM
6368 "maximum" : 65535,
6369 "minimum" : 1,
6370 "optional" : 1,
6371 "type" : "integer",
6372 "typetext" : "<integer> (1 - 65535)"
6373 },
eff914dc
DM
6374 "use_mx" : {
6375 "description" : "Enable MX lookups.",
410dc2c9 6376 "optional" : 1,
eff914dc
DM
6377 "type" : "boolean",
6378 "typetext" : "<boolean>"
410dc2c9 6379 }
eff914dc 6380 }
410dc2c9 6381 },
732d76e1
DM
6382 "permissions" : {
6383 "check" : [
6384 "admin"
6385 ]
6386 },
410dc2c9
DM
6387 "protected" : 1,
6388 "proxyto" : "master",
6389 "returns" : {
6390 "type" : "null"
6391 }
6392 }
6393 },
6394 "leaf" : 1,
eff914dc
DM
6395 "path" : "/config/transport/{domain}",
6396 "text" : "{domain}"
410dc2c9
DM
6397 }
6398 ],
6399 "info" : {
6400 "GET" : {
eff914dc 6401 "description" : "List transport map entries.",
410dc2c9
DM
6402 "method" : "GET",
6403 "name" : "index",
6404 "parameters" : {
6405 "additionalProperties" : 0
6406 },
732d76e1
DM
6407 "permissions" : {
6408 "check" : [
6409 "admin",
6410 "audit"
6411 ]
6412 },
410dc2c9
DM
6413 "proxyto" : "master",
6414 "returns" : {
6415 "items" : {
6416 "properties" : {
eff914dc 6417 "comment" : {
410dc2c9
DM
6418 "type" : "string"
6419 },
eff914dc 6420 "domain" : {
410dc2c9
DM
6421 "type" : "string"
6422 },
eff914dc 6423 "host" : {
410dc2c9 6424 "type" : "string"
eff914dc
DM
6425 },
6426 "port" : {
6427 "type" : "integer"
6428 },
6429 "use_mx" : {
6430 "type" : "boolean"
410dc2c9
DM
6431 }
6432 },
6433 "type" : "object"
6434 },
6435 "links" : [
6436 {
eff914dc 6437 "href" : "{id}",
410dc2c9
DM
6438 "rel" : "child"
6439 }
6440 ],
6441 "type" : "array"
6442 }
6443 },
6444 "POST" : {
eff914dc 6445 "description" : "Add transport map entry.",
410dc2c9
DM
6446 "method" : "POST",
6447 "name" : "create",
6448 "parameters" : {
6449 "additionalProperties" : 0,
6450 "properties" : {
eff914dc
DM
6451 "comment" : {
6452 "description" : "Comment.",
410dc2c9
DM
6453 "optional" : 1,
6454 "type" : "string",
6455 "typetext" : "<string>"
6456 },
eff914dc
DM
6457 "domain" : {
6458 "description" : "Domain name.",
6459 "format" : "transport-domain",
410dc2c9
DM
6460 "type" : "string",
6461 "typetext" : "<string>"
6462 },
eff914dc
DM
6463 "host" : {
6464 "description" : "Target host (name or IP address).",
6465 "format" : "address",
410dc2c9
DM
6466 "type" : "string",
6467 "typetext" : "<string>"
6468 },
410dc2c9 6469 "port" : {
eff914dc
DM
6470 "default" : 25,
6471 "description" : "SMTP port.",
410dc2c9
DM
6472 "maximum" : 65535,
6473 "minimum" : 1,
6474 "optional" : 1,
6475 "type" : "integer",
6476 "typetext" : "<integer> (1 - 65535)"
6477 },
eff914dc
DM
6478 "use_mx" : {
6479 "default" : 1,
6480 "description" : "Enable MX lookups.",
410dc2c9 6481 "optional" : 1,
eff914dc
DM
6482 "type" : "boolean",
6483 "typetext" : "<boolean>"
410dc2c9 6484 }
eff914dc 6485 }
410dc2c9 6486 },
732d76e1
DM
6487 "permissions" : {
6488 "check" : [
6489 "admin"
6490 ]
6491 },
410dc2c9
DM
6492 "protected" : 1,
6493 "proxyto" : "master",
6494 "returns" : {
6495 "type" : "null"
6496 }
6497 }
6498 },
6499 "leaf" : 0,
eff914dc
DM
6500 "path" : "/config/transport",
6501 "text" : "transport"
410dc2c9
DM
6502 },
6503 {
6504 "children" : [
6505 {
6506 "info" : {
6507 "DELETE" : {
eff914dc 6508 "description" : "Delete a truster network",
410dc2c9
DM
6509 "method" : "DELETE",
6510 "name" : "delete",
6511 "parameters" : {
6512 "additionalProperties" : 0,
6513 "properties" : {
eff914dc
DM
6514 "cidr" : {
6515 "description" : "IPv4 or IPv6 network in CIDR notation.",
6516 "format" : "CIDR",
6517 "type" : "string",
6518 "typetext" : "<string>"
6519 }
6520 }
6521 },
732d76e1
DM
6522 "permissions" : {
6523 "check" : [
6524 "admin"
6525 ]
6526 },
eff914dc
DM
6527 "protected" : 1,
6528 "proxyto" : "master",
6529 "returns" : {
6530 "type" : "null"
6531 }
6532 },
6533 "GET" : {
6534 "description" : "Read trusted network data (comment).",
6535 "method" : "GET",
6536 "name" : "read",
6537 "parameters" : {
6538 "additionalProperties" : 0,
6539 "properties" : {
6540 "cidr" : {
6541 "description" : "IPv4 or IPv6 network in CIDR notation.",
6542 "format" : "CIDR",
6543 "type" : "string",
6544 "typetext" : "<string>"
6545 }
6546 }
6547 },
732d76e1
DM
6548 "permissions" : {
6549 "check" : [
6550 "admin",
6551 "audit"
6552 ]
6553 },
eff914dc
DM
6554 "proxyto" : "master",
6555 "returns" : {
6556 "properties" : {
6557 "cidr" : {
6558 "type" : "string"
6559 },
6560 "comment" : {
6561 "type" : "string"
6562 }
6563 },
6564 "type" : "object"
6565 }
6566 },
6567 "PUT" : {
6568 "description" : "Update trusted data (comment).",
6569 "method" : "PUT",
6570 "name" : "write",
6571 "parameters" : {
6572 "additionalProperties" : 0,
6573 "properties" : {
6574 "cidr" : {
6575 "description" : "IPv4 or IPv6 network in CIDR notation.",
6576 "type" : "string",
6577 "typetext" : "<string>"
6578 },
6579 "comment" : {
6580 "description" : "Comment.",
410dc2c9
DM
6581 "type" : "string",
6582 "typetext" : "<string>"
6583 }
6584 }
6585 },
732d76e1
DM
6586 "permissions" : {
6587 "check" : [
6588 "admin"
6589 ]
6590 },
410dc2c9
DM
6591 "protected" : 1,
6592 "proxyto" : "master",
6593 "returns" : {
6594 "type" : "null"
6595 }
6596 }
6597 },
6598 "leaf" : 1,
eff914dc
DM
6599 "path" : "/config/mynetworks/{cidr}",
6600 "text" : "{cidr}"
410dc2c9
DM
6601 }
6602 ],
6603 "info" : {
6604 "GET" : {
eff914dc 6605 "description" : "List of trusted networks from where SMTP clients are allowed to relay mail through Proxmox Mail Gateway.",
410dc2c9
DM
6606 "method" : "GET",
6607 "name" : "index",
6608 "parameters" : {
6609 "additionalProperties" : 0
6610 },
732d76e1
DM
6611 "permissions" : {
6612 "check" : [
6613 "admin",
6614 "audit"
6615 ]
6616 },
410dc2c9
DM
6617 "proxyto" : "master",
6618 "returns" : {
6619 "items" : {
6620 "properties" : {
eff914dc 6621 "cidr" : {
410dc2c9
DM
6622 "type" : "string"
6623 }
6624 },
6625 "type" : "object"
6626 },
6627 "links" : [
6628 {
eff914dc 6629 "href" : "{cide}",
410dc2c9
DM
6630 "rel" : "child"
6631 }
6632 ],
6633 "type" : "array"
6634 }
6635 },
6636 "POST" : {
eff914dc 6637 "description" : "Add a trusted network.",
410dc2c9
DM
6638 "method" : "POST",
6639 "name" : "create",
6640 "parameters" : {
6641 "additionalProperties" : 0,
6642 "properties" : {
eff914dc
DM
6643 "cidr" : {
6644 "description" : "IPv4 or IPv6 network in CIDR notation.",
6645 "format" : "CIDR",
6646 "type" : "string",
6647 "typetext" : "<string>"
6648 },
6649 "comment" : {
6650 "description" : "Comment.",
6651 "optional" : 1,
410dc2c9
DM
6652 "type" : "string",
6653 "typetext" : "<string>"
6654 }
6655 }
6656 },
732d76e1
DM
6657 "permissions" : {
6658 "check" : [
6659 "admin"
6660 ]
6661 },
410dc2c9
DM
6662 "protected" : 1,
6663 "proxyto" : "master",
6664 "returns" : {
6665 "type" : "null"
6666 }
6667 }
6668 },
6669 "leaf" : 0,
eff914dc
DM
6670 "path" : "/config/mynetworks",
6671 "text" : "mynetworks"
410dc2c9
DM
6672 },
6673 {
d7cd791b
DM
6674 "children" : [
6675 {
6676 "info" : {
6677 "GET" : {
6678 "description" : "Cluster node index.",
6679 "method" : "GET",
6680 "name" : "nodes",
6681 "parameters" : {
6682 "additionalProperties" : 0
6683 },
6684 "permissions" : {
6685 "check" : [
6686 "admin"
6687 ]
6688 },
6689 "returns" : {
6690 "items" : {
6691 "properties" : {
6692 "cid" : {
6693 "type" : "integer"
6694 },
6695 "fingerprint" : {
6696 "type" : "string"
6697 },
6698 "hostrsapubkey" : {
6699 "type" : "string"
6700 },
6701 "ip" : {
6702 "type" : "string"
6703 },
6704 "name" : {
6705 "type" : "string"
6706 },
6707 "rootrsapubkey" : {
6708 "type" : "string"
6709 },
6710 "type" : {
6711 "type" : "string"
6712 }
6713 },
6714 "type" : "object"
6715 },
6716 "links" : [
6717 {
6718 "href" : "{cid}",
6719 "rel" : "child"
6720 }
6721 ],
6722 "type" : "array"
6723 }
6724 },
6725 "POST" : {
6726 "description" : "Add an node to the cluster config.",
6727 "method" : "POST",
6728 "name" : "add_node",
6729 "parameters" : {
6730 "additionalProperties" : 0,
6731 "properties" : {
6732 "fingerprint" : {
6733 "description" : "SSL certificate fingerprint.",
6734 "optional" : 0,
6735 "pattern" : "^(:?[A-Z0-9][A-Z0-9]:){31}[A-Z0-9][A-Z0-9]$",
6736 "type" : "string"
6737 },
6738 "hostrsapubkey" : {
6739 "description" : "Public SSH RSA key for the host.",
6740 "optional" : 0,
6741 "pattern" : "^[A-Za-z0-9\\.\\/\\+]{200,}$",
6742 "type" : "string"
6743 },
6744 "ip" : {
6745 "description" : "IP address.",
6746 "format" : "ip",
6747 "optional" : 0,
6748 "type" : "string",
6749 "typetext" : "<string>"
6750 },
6751 "maxcid" : {
6752 "description" : "Maximum used cluster node ID (used internally, do not modify).",
6753 "minimum" : 1,
6754 "optional" : 1,
6755 "type" : "integer",
6756 "typetext" : "<integer> (1 - N)"
6757 },
6758 "name" : {
6759 "description" : "Node name.",
6760 "format" : "pve-node",
6761 "optional" : 0,
6762 "type" : "string",
6763 "typetext" : "<string>"
6764 },
6765 "rootrsapubkey" : {
6766 "description" : "Public SSH RSA key for the root user.",
6767 "optional" : 0,
6768 "pattern" : "^[A-Za-z0-9\\.\\/\\+]{200,}$",
6769 "type" : "string"
6770 }
6771 },
6772 "type" : "object"
6773 },
6774 "protected" : 1,
6775 "proxyto" : "master",
6776 "returns" : {
6777 "description" : "Returns the resulting node list.",
6778 "items" : {
6779 "properties" : {
6780 "cid" : {
6781 "type" : "integer"
6782 }
6783 },
6784 "type" : "object"
6785 },
6786 "type" : "array"
6787 }
6788 }
6789 },
6790 "leaf" : 1,
6791 "path" : "/config/cluster/nodes",
6792 "text" : "nodes"
6793 },
6794 {
6795 "info" : {
6796 "GET" : {
6797 "description" : "Cluster node status.",
6798 "method" : "GET",
6799 "name" : "status",
6800 "parameters" : {
6801 "additionalProperties" : 0
6802 },
6803 "permissions" : {
6804 "check" : [
6805 "admin"
6806 ]
6807 },
6808 "returns" : {
6809 "items" : {
6810 "properties" : {
6811 "cid" : {
6812 "type" : "integer"
6813 },
6814 "fingerprint" : {
6815 "type" : "string"
6816 },
6817 "hostrsapubkey" : {
6818 "type" : "string"
6819 },
6820 "ip" : {
6821 "type" : "string"
6822 },
6823 "name" : {
6824 "type" : "string"
6825 },
6826 "rootrsapubkey" : {
6827 "type" : "string"
6828 },
6829 "type" : {
6830 "type" : "string"
6831 }
6832 },
6833 "type" : "object"
6834 },
6835 "links" : [
6836 {
6837 "href" : "{cid}",
6838 "rel" : "child"
6839 }
6840 ],
6841 "type" : "array"
6842 }
6843 }
6844 },
6845 "leaf" : 1,
6846 "path" : "/config/cluster/status",
6847 "text" : "status"
6848 },
6849 {
6850 "info" : {
6851 "POST" : {
6852 "description" : "Create initial cluster config with current node as master.",
6853 "method" : "POST",
6854 "name" : "create",
6855 "parameters" : {
6856 "additionalProperties" : 0
6857 },
6858 "protected" : 1,
6859 "returns" : {
6860 "type" : "string"
6861 }
6862 }
6863 },
6864 "leaf" : 1,
6865 "path" : "/config/cluster/create",
6866 "text" : "create"
6867 },
6868 {
6869 "info" : {
6870 "POST" : {
6871 "description" : "Join local node to an existing cluster.",
6872 "method" : "POST",
6873 "name" : "join",
6874 "parameters" : {
6875 "additionalProperties" : 0,
6876 "properties" : {
6877 "fingerprint" : {
6878 "description" : "SSL certificate fingerprint.",
6879 "pattern" : "^(:?[A-Z0-9][A-Z0-9]:){31}[A-Z0-9][A-Z0-9]$",
6880 "type" : "string"
6881 },
6882 "master_ip" : {
6883 "description" : "IP address.",
6884 "format" : "ip",
6885 "type" : "string",
6886 "typetext" : "<string>"
6887 },
6888 "password" : {
6889 "description" : "Superuser password.",
6890 "maxLength" : 128,
6891 "type" : "string",
6892 "typetext" : "<string>"
6893 }
6894 }
6895 },
6896 "protected" : 1,
6897 "returns" : {
6898 "type" : "string"
6899 }
6900 }
6901 },
6902 "leaf" : 1,
6903 "path" : "/config/cluster/join",
6904 "text" : "join"
6905 }
6906 ],
410dc2c9
DM
6907 "info" : {
6908 "GET" : {
d7cd791b 6909 "description" : "Directory index.",
410dc2c9
DM
6910 "method" : "GET",
6911 "name" : "index",
6912 "parameters" : {
6913 "additionalProperties" : 0
6914 },
d7cd791b
DM
6915 "permissions" : {
6916 "user" : "all"
6917 },
410dc2c9
DM
6918 "returns" : {
6919 "items" : {
d7cd791b 6920 "properties" : {},
410dc2c9
DM
6921 "type" : "object"
6922 },
6923 "links" : [
6924 {
d7cd791b 6925 "href" : "{name}",
410dc2c9
DM
6926 "rel" : "child"
6927 }
6928 ],
6929 "type" : "array"
6930 }
6931 }
6932 },
d7cd791b 6933 "leaf" : 0,
410dc2c9
DM
6934 "path" : "/config/cluster",
6935 "text" : "cluster"
6936 },
9fda36b0
DM
6937 {
6938 "info" : {
6939 "GET" : {
6940 "description" : "Get Mime Types List",
6941 "method" : "GET",
6942 "name" : "index",
6943 "parameters" : {
6944 "additionalProperties" : 0
6945 },
6946 "returns" : {
6947 "items" : {
6948 "properties" : {
6949 "mimetype" : {
6950 "type" : "string"
6951 },
6952 "text" : {
6953 "type" : "string"
6954 }
6955 },
6956 "type" : "object"
6957 },
6958 "type" : "array"
6959 }
6960 }
6961 },
6962 "leaf" : 1,
6963 "path" : "/config/mimetypes",
6964 "text" : "mimetypes"
6965 },
410dc2c9
DM
6966 {
6967 "info" : {
6968 "GET" : {
6969 "description" : "Read admin configuration properties.",
6970 "method" : "GET",
6971 "name" : "read_admin_section",
6972 "parameters" : {
6973 "additionalProperties" : 0
6974 },
732d76e1
DM
6975 "permissions" : {
6976 "check" : [
6977 "admin",
6978 "audit"
6979 ]
6980 },
410dc2c9
DM
6981 "proxyto" : "master",
6982 "returns" : {
6983 "type" : "object"
6984 }
6985 },
6986 "PUT" : {
6987 "description" : "Update admin configuration properties.",
6988 "method" : "PUT",
6989 "name" : "update_admin_section",
6990 "parameters" : {
6991 "additionalProperties" : 0,
6992 "properties" : {
9fda36b0
DM
6993 "advfilter" : {
6994 "default" : 1,
6995 "description" : "Use advanced filters for statistic.",
6996 "optional" : 1,
6997 "type" : "boolean",
6998 "typetext" : "<boolean>"
6999 },
410dc2c9
DM
7000 "dailyreport" : {
7001 "default" : 1,
7002 "description" : "Send daily reports.",
7003 "optional" : 1,
7004 "type" : "boolean",
7005 "typetext" : "<boolean>"
7006 },
7007 "delete" : {
7008 "description" : "A list of settings you want to delete.",
7009 "format" : "pve-configid-list",
7010 "maxLength" : 4096,
7011 "optional" : 1,
7012 "type" : "string",
7013 "typetext" : "<string>"
7014 },
7015 "demo" : {
7016 "default" : 0,
7017 "description" : "Demo mode - do not start SMTP filter.",
7018 "optional" : 1,
7019 "type" : "boolean",
7020 "typetext" : "<boolean>"
7021 },
7022 "digest" : {
7023 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7024 "maxLength" : 40,
7025 "optional" : 1,
7026 "type" : "string",
7027 "typetext" : "<string>"
7028 },
eff914dc
DM
7029 "email" : {
7030 "default" : "admin@domain.tld",
7031 "description" : "Administrator E-Mail address.",
7032 "format" : "email",
7033 "optional" : 1,
7034 "type" : "string",
7035 "typetext" : "<string>"
7036 },
9fda36b0
DM
7037 "http_proxy" : {
7038 "description" : "Specify external http proxy which is used for downloads (example: 'http://username:password@host:port/')",
410dc2c9 7039 "optional" : 1,
9fda36b0
DM
7040 "pattern" : "http://.*",
7041 "type" : "string"
a55e94a6
DM
7042 },
7043 "statlifetime" : {
7044 "default" : 7,
7045 "description" : "User Statistics Lifetime (days)",
7046 "minimum" : 1,
7047 "optional" : 1,
7048 "type" : "integer",
7049 "typetext" : "<integer> (1 - N)"
410dc2c9
DM
7050 }
7051 },
7052 "type" : "object"
7053 },
732d76e1
DM
7054 "permissions" : {
7055 "check" : [
7056 "admin"
7057 ]
7058 },
410dc2c9
DM
7059 "protected" : 1,
7060 "proxyto" : "master",
7061 "returns" : {
7062 "type" : "null"
7063 }
7064 }
7065 },
7066 "leaf" : 1,
7067 "path" : "/config/admin",
7068 "text" : "admin"
7069 },
7070 {
7071 "info" : {
7072 "GET" : {
7073 "description" : "Read clamav configuration properties.",
7074 "method" : "GET",
7075 "name" : "read_clamav_section",
7076 "parameters" : {
7077 "additionalProperties" : 0
7078 },
732d76e1
DM
7079 "permissions" : {
7080 "check" : [
7081 "admin",
7082 "audit"
7083 ]
7084 },
410dc2c9
DM
7085 "proxyto" : "master",
7086 "returns" : {
7087 "type" : "object"
7088 }
7089 },
7090 "PUT" : {
7091 "description" : "Update clamav configuration properties.",
7092 "method" : "PUT",
7093 "name" : "update_clamav_section",
7094 "parameters" : {
7095 "additionalProperties" : 0,
7096 "properties" : {
7097 "archiveblockencrypted" : {
7098 "default" : 0,
7099 "description" : "Wether to block encrypted archives. Mark encrypted archives as viruses.",
7100 "optional" : 1,
7101 "type" : "boolean",
7102 "typetext" : "<boolean>"
7103 },
7104 "archivemaxfiles" : {
7105 "default" : 1000,
7106 "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.",
7107 "minimum" : 0,
7108 "optional" : 1,
7109 "type" : "integer",
7110 "typetext" : "<integer> (0 - N)"
7111 },
7112 "archivemaxrec" : {
7113 "default" : 5,
7114 "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.",
7115 "minimum" : 1,
7116 "optional" : 1,
7117 "type" : "integer",
7118 "typetext" : "<integer> (1 - N)"
7119 },
7120 "archivemaxsize" : {
7121 "default" : 25000000,
7122 "description" : "Files larger than this limit won't be scanned.",
7123 "minimum" : 1000000,
7124 "optional" : 1,
7125 "type" : "integer",
7126 "typetext" : "<integer> (1000000 - N)"
7127 },
7128 "dbmirror" : {
7129 "default" : "database.clamav.net",
7130 "description" : "ClamAV database mirror server.",
7131 "optional" : 1,
7132 "type" : "string",
7133 "typetext" : "<string>"
7134 },
7135 "delete" : {
7136 "description" : "A list of settings you want to delete.",
7137 "format" : "pve-configid-list",
7138 "maxLength" : 4096,
7139 "optional" : 1,
7140 "type" : "string",
7141 "typetext" : "<string>"
7142 },
7143 "digest" : {
7144 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7145 "maxLength" : 40,
7146 "optional" : 1,
7147 "type" : "string",
7148 "typetext" : "<string>"
7149 },
7150 "maxcccount" : {
7151 "default" : 0,
7152 "description" : "This option sets the lowest number of Credit Card or Social Security numbers found in a file to generate a detect.",
7153 "minimum" : 0,
7154 "optional" : 1,
7155 "type" : "integer",
7156 "typetext" : "<integer> (0 - N)"
7157 },
7158 "maxscansize" : {
7159 "default" : 100000000,
7160 "description" : "Sets the maximum amount of data to be scanned for each input file.",
7161 "minimum" : 1000000,
7162 "optional" : 1,
7163 "type" : "integer",
7164 "typetext" : "<integer> (1000000 - N)"
f245a28c
DM
7165 },
7166 "safebrowsing" : {
7167 "default" : 1,
7168 "description" : "Enables support for Google Safe Browsing.",
7169 "optional" : 1,
7170 "type" : "boolean",
7171 "typetext" : "<boolean>"
410dc2c9
DM
7172 }
7173 },
7174 "type" : "object"
7175 },
732d76e1
DM
7176 "permissions" : {
7177 "check" : [
7178 "admin"
7179 ]
7180 },
410dc2c9
DM
7181 "protected" : 1,
7182 "proxyto" : "master",
7183 "returns" : {
7184 "type" : "null"
7185 }
7186 }
7187 },
7188 "leaf" : 1,
7189 "path" : "/config/clamav",
7190 "text" : "clamav"
7191 },
7192 {
7193 "info" : {
7194 "GET" : {
7195 "description" : "Read mail configuration properties.",
7196 "method" : "GET",
7197 "name" : "read_mail_section",
7198 "parameters" : {
7199 "additionalProperties" : 0
7200 },
732d76e1
DM
7201 "permissions" : {
7202 "check" : [
7203 "admin",
7204 "audit"
7205 ]
7206 },
410dc2c9
DM
7207 "proxyto" : "master",
7208 "returns" : {
7209 "type" : "object"
7210 }
7211 },
7212 "PUT" : {
7213 "description" : "Update mail configuration properties.",
7214 "method" : "PUT",
7215 "name" : "update_mail_section",
7216 "parameters" : {
7217 "additionalProperties" : 0,
7218 "properties" : {
7219 "banner" : {
7220 "default" : "ESMTP Proxmox",
7221 "description" : "ESMTP banner.",
7222 "maxLength" : 1024,
7223 "optional" : 1,
7224 "type" : "string",
7225 "typetext" : "<string>"
7226 },
7227 "conn_count_limit" : {
7228 "default" : 50,
7229 "description" : "How many simultaneous connections any client is allowed to make to this service. To disable this feature, specify a limit of 0.",
7230 "minimum" : 0,
7231 "optional" : 1,
7232 "type" : "integer",
7233 "typetext" : "<integer> (0 - N)"
7234 },
7235 "conn_rate_limit" : {
7236 "default" : 0,
7237 "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.",
7238 "minimum" : 0,
7239 "optional" : 1,
7240 "type" : "integer",
7241 "typetext" : "<integer> (0 - N)"
7242 },
7243 "delete" : {
7244 "description" : "A list of settings you want to delete.",
7245 "format" : "pve-configid-list",
7246 "maxLength" : 4096,
7247 "optional" : 1,
7248 "type" : "string",
7249 "typetext" : "<string>"
7250 },
7251 "digest" : {
7252 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7253 "maxLength" : 40,
7254 "optional" : 1,
7255 "type" : "string",
7256 "typetext" : "<string>"
7257 },
7258 "dnsbl_sites" : {
7259 "description" : "Optional list of DNS white/blacklist domains (see postscreen_dnsbl_sites parameter).",
7260 "optional" : 1,
7261 "type" : "string",
7262 "typetext" : "<string>"
7263 },
7264 "dwarning" : {
7265 "default" : 4,
7266 "description" : "SMTP delay warning time (in hours).",
7267 "minimum" : 0,
7268 "optional" : 1,
7269 "type" : "integer",
7270 "typetext" : "<integer> (0 - N)"
7271 },
eff914dc
DM
7272 "ext_port" : {
7273 "default" : 26,
7274 "description" : "SMTP port number for incoming mail (untrusted). This must be a different number than 'int_port'.",
7275 "maximum" : 65535,
7276 "minimum" : 1,
7277 "optional" : 1,
7278 "type" : "integer",
7279 "typetext" : "<integer> (1 - 65535)"
7280 },
410dc2c9
DM
7281 "greylist" : {
7282 "default" : 1,
7283 "description" : "Use Greylisting.",
7284 "optional" : 1,
7285 "type" : "boolean",
7286 "typetext" : "<boolean>"
7287 },
7288 "helotests" : {
7289 "default" : 0,
7290 "description" : "Use SMTP HELO tests.",
7291 "optional" : 1,
7292 "type" : "boolean",
7293 "typetext" : "<boolean>"
7294 },
7295 "hide_received" : {
7296 "default" : 0,
7297 "description" : "Hide received header in outgoing mails.",
7298 "optional" : 1,
7299 "type" : "boolean",
7300 "typetext" : "<boolean>"
7301 },
eff914dc
DM
7302 "int_port" : {
7303 "default" : 25,
7304 "description" : "SMTP port number for outgoing mail (trusted).",
7305 "maximum" : 65535,
7306 "minimum" : 1,
7307 "optional" : 1,
7308 "type" : "integer",
7309 "typetext" : "<integer> (1 - 65535)"
7310 },
410dc2c9
DM
7311 "max_filters" : {
7312 "default" : 15,
7313 "description" : "Maximum number of pmg-smtp-filter processes.",
7314 "maximum" : 40,
7315 "minimum" : 3,
7316 "optional" : 1,
7317 "type" : "integer",
7318 "typetext" : "<integer> (3 - 40)"
7319 },
7320 "max_policy" : {
7321 "default" : 5,
7322 "description" : "Maximum number of pmgpolicy processes.",
7323 "maximum" : 10,
7324 "minimum" : 2,
7325 "optional" : 1,
7326 "type" : "integer",
7327 "typetext" : "<integer> (2 - 10)"
7328 },
7329 "max_smtpd_in" : {
7330 "default" : 99,
7331 "description" : "Maximum number of SMTP daemon processes (in).",
7332 "maximum" : 100,
7333 "minimum" : 3,
7334 "optional" : 1,
7335 "type" : "integer",
7336 "typetext" : "<integer> (3 - 100)"
7337 },
7338 "max_smtpd_out" : {
7339 "default" : 99,
7340 "description" : "Maximum number of SMTP daemon processes (out).",
7341 "maximum" : 100,
7342 "minimum" : 3,
7343 "optional" : 1,
7344 "type" : "integer",
7345 "typetext" : "<integer> (3 - 100)"
7346 },
7347 "maxsize" : {
7348 "default" : 10485760,
7349 "description" : "Maximum email size. Larger mails are rejected.",
7350 "minimum" : 1024,
7351 "optional" : 1,
7352 "type" : "integer",
7353 "typetext" : "<integer> (1024 - N)"
7354 },
7355 "message_rate_limit" : {
7356 "default" : 0,
7357 "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.",
7358 "minimum" : 0,
7359 "optional" : 1,
7360 "type" : "integer",
7361 "typetext" : "<integer> (0 - N)"
7362 },
7363 "rejectunknown" : {
7364 "default" : 0,
7365 "description" : "Reject unknown clients.",
7366 "optional" : 1,
7367 "type" : "boolean",
7368 "typetext" : "<boolean>"
7369 },
7370 "rejectunknownsender" : {
7371 "default" : 0,
7372 "description" : "Reject unknown senders.",
7373 "optional" : 1,
7374 "type" : "boolean",
7375 "typetext" : "<boolean>"
7376 },
7377 "relay" : {
7378 "description" : "The default mail delivery transport (incoming mails).",
eff914dc 7379 "format" : "address",
410dc2c9
DM
7380 "optional" : 1,
7381 "type" : "string",
7382 "typetext" : "<string>"
7383 },
7384 "relaynomx" : {
7385 "default" : 0,
7386 "description" : "Disable MX lookups for default relay.",
7387 "optional" : 1,
7388 "type" : "boolean",
7389 "typetext" : "<boolean>"
7390 },
7391 "relayport" : {
7392 "default" : 25,
7393 "description" : "SMTP port number for relay host.",
7394 "maximum" : 65535,
7395 "minimum" : 1,
7396 "optional" : 1,
7397 "type" : "integer",
7398 "typetext" : "<integer> (1 - 65535)"
7399 },
eff914dc
DM
7400 "smarthost" : {
7401 "description" : "When set, all outgoing mails are deliverd to the specified smarthost.",
7402 "format" : "address",
7403 "optional" : 1,
7404 "type" : "string",
7405 "typetext" : "<string>"
7406 },
410dc2c9
DM
7407 "spf" : {
7408 "default" : 1,
7409 "description" : "Use Sender Policy Framework.",
7410 "optional" : 1,
7411 "type" : "boolean",
7412 "typetext" : "<boolean>"
7413 },
7414 "tls" : {
7415 "default" : 0,
eff914dc
DM
7416 "description" : "Enable TLS.",
7417 "optional" : 1,
7418 "type" : "boolean",
7419 "typetext" : "<boolean>"
7420 },
7421 "tlsheader" : {
7422 "default" : 0,
7423 "description" : "Add TLS received header.",
7424 "optional" : 1,
7425 "type" : "boolean",
7426 "typetext" : "<boolean>"
7427 },
7428 "tlslog" : {
7429 "default" : 0,
7430 "description" : "Enable TLS Logging.",
410dc2c9
DM
7431 "optional" : 1,
7432 "type" : "boolean",
7433 "typetext" : "<boolean>"
7434 },
7435 "use_rbl" : {
7436 "default" : 1,
7437 "description" : "Use Realtime Blacklists.",
7438 "optional" : 1,
7439 "type" : "boolean",
7440 "typetext" : "<boolean>"
7441 },
7442 "verifyreceivers" : {
eff914dc
DM
7443 "description" : "Enable receiver verification. The value spefifies the numerical reply code when the Postfix SMTP server rejects a recipient address.",
7444 "enum" : [
7445 "450",
7446 "550"
7447 ],
410dc2c9 7448 "optional" : 1,
eff914dc 7449 "type" : "string"
410dc2c9
DM
7450 }
7451 },
7452 "type" : "object"
7453 },
732d76e1
DM
7454 "permissions" : {
7455 "check" : [
7456 "admin"
7457 ]
7458 },
410dc2c9
DM
7459 "protected" : 1,
7460 "proxyto" : "master",
7461 "returns" : {
7462 "type" : "null"
7463 }
7464 }
7465 },
7466 "leaf" : 1,
7467 "path" : "/config/mail",
7468 "text" : "mail"
7469 },
7470 {
7471 "info" : {
7472 "GET" : {
7473 "description" : "Read spam configuration properties.",
7474 "method" : "GET",
7475 "name" : "read_spam_section",
7476 "parameters" : {
7477 "additionalProperties" : 0
7478 },
732d76e1
DM
7479 "permissions" : {
7480 "check" : [
7481 "admin",
7482 "audit"
7483 ]
7484 },
410dc2c9
DM
7485 "proxyto" : "master",
7486 "returns" : {
7487 "type" : "object"
7488 }
7489 },
7490 "PUT" : {
7491 "description" : "Update spam configuration properties.",
7492 "method" : "PUT",
7493 "name" : "update_spam_section",
7494 "parameters" : {
7495 "additionalProperties" : 0,
7496 "properties" : {
7497 "bounce_score" : {
7498 "default" : 0,
7499 "description" : "Additional score for bounce mails.",
7500 "maximum" : 1000,
7501 "minimum" : 0,
7502 "optional" : 1,
7503 "type" : "integer",
7504 "typetext" : "<integer> (0 - 1000)"
7505 },
7506 "delete" : {
7507 "description" : "A list of settings you want to delete.",
7508 "format" : "pve-configid-list",
7509 "maxLength" : 4096,
7510 "optional" : 1,
7511 "type" : "string",
7512 "typetext" : "<string>"
7513 },
7514 "digest" : {
7515 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7516 "maxLength" : 40,
7517 "optional" : 1,
7518 "type" : "string",
7519 "typetext" : "<string>"
7520 },
7521 "languages" : {
7522 "default" : "all",
7523 "description" : "This option is used to specify which languages are considered OK for incoming mail.",
7524 "optional" : 1,
7525 "pattern" : "(all|([a-z][a-z])+( ([a-z][a-z])+)*)",
7526 "type" : "string"
7527 },
7528 "maxspamsize" : {
7529 "default" : 204800,
7530 "description" : "Maximum size of spam messages in bytes.",
7531 "minimum" : 64,
7532 "optional" : 1,
7533 "type" : "integer",
7534 "typetext" : "<integer> (64 - N)"
7535 },
7536 "rbl_checks" : {
7537 "default" : 1,
7538 "description" : "Enable real time blacklists (RBL) checks.",
7539 "optional" : 1,
7540 "type" : "boolean",
7541 "typetext" : "<boolean>"
7542 },
7543 "use_awl" : {
7544 "default" : 1,
7545 "description" : "Use the Auto-Whitelist plugin.",
7546 "optional" : 1,
7547 "type" : "boolean",
7548 "typetext" : "<boolean>"
7549 },
7550 "use_bayes" : {
7551 "default" : 1,
7552 "description" : "Whether to use the naive-Bayesian-style classifier.",
7553 "optional" : 1,
7554 "type" : "boolean",
7555 "typetext" : "<boolean>"
7556 },
410dc2c9
DM
7557 "use_razor" : {
7558 "default" : 1,
7559 "description" : "Whether to use Razor2, if it is available.",
7560 "optional" : 1,
7561 "type" : "boolean",
7562 "typetext" : "<boolean>"
7563 },
7564 "wl_bounce_relays" : {
7565 "description" : "Whitelist legitimate bounce relays.",
7566 "optional" : 1,
7567 "type" : "string",
7568 "typetext" : "<string>"
7569 }
7570 },
7571 "type" : "object"
7572 },
732d76e1
DM
7573 "permissions" : {
7574 "check" : [
7575 "admin"
7576 ]
7577 },
410dc2c9
DM
7578 "protected" : 1,
7579 "proxyto" : "master",
7580 "returns" : {
7581 "type" : "null"
7582 }
7583 }
7584 },
7585 "leaf" : 1,
7586 "path" : "/config/spam",
7587 "text" : "spam"
f245a28c
DM
7588 },
7589 {
7590 "info" : {
7591 "GET" : {
7592 "description" : "Read spamquar configuration properties.",
7593 "method" : "GET",
7594 "name" : "read_spamquar_section",
7595 "parameters" : {
7596 "additionalProperties" : 0
7597 },
732d76e1
DM
7598 "permissions" : {
7599 "check" : [
7600 "admin",
7601 "audit"
7602 ]
7603 },
f245a28c
DM
7604 "proxyto" : "master",
7605 "returns" : {
7606 "type" : "object"
7607 }
7608 },
7609 "PUT" : {
7610 "description" : "Update spamquar configuration properties.",
7611 "method" : "PUT",
7612 "name" : "update_spamquar_section",
7613 "parameters" : {
7614 "additionalProperties" : 0,
7615 "properties" : {
7616 "allowhrefs" : {
7617 "default" : 1,
7618 "description" : "Allow to view hyperlinks.",
7619 "optional" : 1,
7620 "type" : "boolean",
7621 "typetext" : "<boolean>"
7622 },
7623 "authmode" : {
7624 "default" : "ticket",
7625 "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.",
7626 "enum" : [
7627 "ticket",
7628 "ldap",
7629 "ldapticket"
7630 ],
7631 "optional" : 1,
7632 "type" : "string"
7633 },
7634 "delete" : {
7635 "description" : "A list of settings you want to delete.",
7636 "format" : "pve-configid-list",
7637 "maxLength" : 4096,
7638 "optional" : 1,
7639 "type" : "string",
7640 "typetext" : "<string>"
7641 },
7642 "digest" : {
7643 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7644 "maxLength" : 40,
7645 "optional" : 1,
7646 "type" : "string",
7647 "typetext" : "<string>"
7648 },
7649 "hostname" : {
7650 "description" : "Quarantine Host. Usefule if you run a Cluster and want users to connect to a specific host.",
7651 "format" : "address",
7652 "optional" : 1,
7653 "type" : "string",
7654 "typetext" : "<string>"
7655 },
7656 "lifetime" : {
7657 "default" : 7,
7658 "description" : "Quarantine life time (days)",
7659 "minimum" : 1,
7660 "optional" : 1,
7661 "type" : "integer",
7662 "typetext" : "<integer> (1 - N)"
7663 },
7664 "mailfrom" : {
7665 "description" : "Text for 'From' header in daily spam report mails.",
7666 "optional" : 1,
7667 "type" : "string",
7668 "typetext" : "<string>"
7669 },
7670 "reportstyle" : {
7671 "default" : "verbose",
7672 "description" : "Spam report style.",
7673 "enum" : [
7674 "none",
7675 "short",
7676 "verbose",
f245a28c
DM
7677 "custom"
7678 ],
7679 "optional" : 1,
7680 "type" : "string"
7681 },
a55e94a6
DM
7682 "viewimages" : {
7683 "default" : 1,
7684 "description" : "Allow to view images.",
7685 "optional" : 1,
7686 "type" : "boolean",
7687 "typetext" : "<boolean>"
7688 }
7689 },
7690 "type" : "object"
7691 },
732d76e1
DM
7692 "permissions" : {
7693 "check" : [
7694 "admin"
7695 ]
7696 },
a55e94a6
DM
7697 "protected" : 1,
7698 "proxyto" : "master",
7699 "returns" : {
7700 "type" : "null"
7701 }
7702 }
7703 },
7704 "leaf" : 1,
7705 "path" : "/config/spamquar",
7706 "text" : "spamquar"
7707 },
7708 {
7709 "info" : {
7710 "GET" : {
7711 "description" : "Read virusquar configuration properties.",
7712 "method" : "GET",
7713 "name" : "read_virusquar_section",
7714 "parameters" : {
7715 "additionalProperties" : 0
7716 },
732d76e1
DM
7717 "permissions" : {
7718 "check" : [
7719 "admin",
7720 "audit"
7721 ]
7722 },
a55e94a6
DM
7723 "proxyto" : "master",
7724 "returns" : {
7725 "type" : "object"
7726 }
7727 },
7728 "PUT" : {
7729 "description" : "Update virusquar configuration properties.",
7730 "method" : "PUT",
7731 "name" : "update_virusquar_section",
7732 "parameters" : {
7733 "additionalProperties" : 0,
7734 "properties" : {
7735 "allowhrefs" : {
7736 "default" : 1,
7737 "description" : "Allow to view hyperlinks.",
7738 "optional" : 1,
7739 "type" : "boolean",
7740 "typetext" : "<boolean>"
7741 },
7742 "delete" : {
7743 "description" : "A list of settings you want to delete.",
7744 "format" : "pve-configid-list",
7745 "maxLength" : 4096,
7746 "optional" : 1,
7747 "type" : "string",
7748 "typetext" : "<string>"
7749 },
7750 "digest" : {
7751 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
7752 "maxLength" : 40,
7753 "optional" : 1,
7754 "type" : "string",
7755 "typetext" : "<string>"
7756 },
7757 "lifetime" : {
7758 "default" : 7,
7759 "description" : "Quarantine life time (days)",
7760 "minimum" : 1,
7761 "optional" : 1,
7762 "type" : "integer",
7763 "typetext" : "<integer> (1 - N)"
7764 },
7765 "viewimages" : {
7766 "default" : 1,
7767 "description" : "Allow to view images.",
7768 "optional" : 1,
7769 "type" : "boolean",
7770 "typetext" : "<boolean>"
7771 }
7772 },
7773 "type" : "object"
7774 },
732d76e1
DM
7775 "permissions" : {
7776 "check" : [
7777 "admin"
7778 ]
7779 },
a55e94a6
DM
7780 "protected" : 1,
7781 "proxyto" : "master",
7782 "returns" : {
7783 "type" : "null"
7784 }
7785 }
7786 },
7787 "leaf" : 1,
7788 "path" : "/config/virusquar",
7789 "text" : "virusquar"
9fda36b0
DM
7790 },
7791 {
7792 "info" : {
7793 "POST" : {
7794 "description" : "Test Regex",
7795 "method" : "POST",
7796 "name" : "regextest",
7797 "parameters" : {
7798 "additionalProperties" : 0,
7799 "properties" : {
7800 "regex" : {
7801 "description" : "The Regex to test",
7802 "maxLength" : 1024,
7803 "type" : "string",
7804 "typetext" : "<string>"
7805 },
7806 "text" : {
7807 "description" : "The String to test",
7808 "maxLength" : 1024,
7809 "type" : "string",
7810 "typetext" : "<string>"
7811 }
7812 }
7813 },
7814 "permissions" : {
7815 "check" : [
7816 "admin",
7817 "qmanager",
7818 "audit"
7819 ]
7820 },
7821 "protected" : 0,
7822 "returns" : {
7823 "type" : "number"
7824 }
7825 }
7826 },
7827 "leaf" : 1,
7828 "path" : "/config/regextest",
7829 "text" : "regextest"
a55e94a6
DM
7830 }
7831 ],
7832 "info" : {
7833 "GET" : {
7834 "description" : "Directory index.",
7835 "method" : "GET",
7836 "name" : "index",
7837 "parameters" : {
7838 "additionalProperties" : 0
7839 },
7840 "returns" : {
7841 "items" : {
7842 "properties" : {
7843 "section" : {
7844 "type" : "string"
7845 }
7846 },
7847 "type" : "object"
7848 },
7849 "links" : [
7850 {
7851 "href" : "{section}",
7852 "rel" : "child"
7853 }
7854 ],
7855 "type" : "array"
7856 }
7857 }
7858 },
7859 "leaf" : 0,
7860 "path" : "/config",
7861 "text" : "config"
7862 },
7863 {
7864 "children" : [
7865 {
7866 "children" : [
7867 {
7868 "children" : [
7869 {
7870 "info" : {
7871 "GET" : {
7872 "description" : "Print Postfix queue domain and age distribution.",
7873 "method" : "GET",
7874 "name" : "qshape",
7875 "parameters" : {
7876 "additionalProperties" : 0,
7877 "properties" : {
7878 "node" : {
7879 "description" : "The cluster node name.",
7880 "format" : "pve-node",
7881 "type" : "string",
7882 "typetext" : "<string>"
7883 },
7884 "queue" : {
7885 "default" : "deferred",
7886 "description" : "Postfix queue name.",
7887 "enum" : [
7888 "deferred",
7889 "active",
7890 "incoming",
7891 "hold"
7892 ],
7893 "optional" : 1,
7894 "type" : "string"
7895 }
7896 }
7897 },
7898 "permissions" : {
7899 "check" : [
732d76e1
DM
7900 "admin",
7901 "audit"
a55e94a6
DM
7902 ]
7903 },
7904 "protected" : 1,
7905 "proxyto" : "node",
7906 "returns" : {
7907 "items" : {
7908 "properties" : {},
7909 "type" : "object"
7910 },
7911 "type" : "array"
7912 }
7913 }
7914 },
7915 "leaf" : 1,
7916 "path" : "/nodes/{node}/postfix/qshape",
7917 "text" : "qshape"
7918 },
7919 {
7920 "children" : [
7921 {
7922 "children" : [
7923 {
7924 "info" : {
7925 "DELETE" : {
7926 "description" : "Delete one message with the named queue ID.",
7927 "method" : "DELETE",
7928 "name" : "delete_queued_mail",
7929 "parameters" : {
7930 "additionalProperties" : 0,
7931 "properties" : {
7932 "node" : {
7933 "description" : "The cluster node name.",
7934 "format" : "pve-node",
7935 "type" : "string",
7936 "typetext" : "<string>"
7937 },
7938 "queue" : {
7939 "description" : "Postfix queue name.",
7940 "enum" : [
7941 "deferred",
7942 "active",
7943 "incoming",
7944 "hold"
7945 ],
7946 "type" : "string"
7947 },
7948 "queue_id" : {
7949 "description" : "The Message queue ID.",
7950 "maxLength" : 20,
7951 "minLength" : 8,
7952 "pattern" : "[a-zA-Z0-9]+",
7953 "type" : "string"
7954 }
7955 }
7956 },
7957 "permissions" : {
7958 "check" : [
7959 "admin"
7960 ]
7961 },
7962 "protected" : 1,
7963 "proxyto" : "node",
7964 "returns" : {
7965 "type" : "null"
7966 }
7967 },
7968 "GET" : {
7969 "description" : "Get the contents of a queued mail.",
7970 "method" : "GET",
7971 "name" : "read_queued_mail",
7972 "parameters" : {
7973 "additionalProperties" : 0,
7974 "properties" : {
7975 "body" : {
7976 "default" : 0,
7977 "description" : "Include body content.",
7978 "optional" : 1,
7979 "type" : "boolean",
7980 "typetext" : "<boolean>"
7981 },
7982 "header" : {
7983 "default" : 1,
7984 "description" : "Show message header content.",
7985 "optional" : 1,
7986 "type" : "boolean",
7987 "typetext" : "<boolean>"
7988 },
7989 "node" : {
7990 "description" : "The cluster node name.",
7991 "format" : "pve-node",
7992 "type" : "string",
7993 "typetext" : "<string>"
7994 },
7995 "queue" : {
7996 "description" : "Postfix queue name.",
7997 "enum" : [
7998 "deferred",
7999 "active",
8000 "incoming",
8001 "hold"
8002 ],
8003 "type" : "string"
8004 },
8005 "queue_id" : {
8006 "description" : "The Message queue ID.",
8007 "maxLength" : 20,
8008 "minLength" : 8,
8009 "pattern" : "[a-zA-Z0-9]+",
8010 "type" : "string"
8011 }
8012 }
8013 },
8014 "permissions" : {
8015 "check" : [
8016 "admin"
8017 ]
8018 },
8019 "protected" : 1,
8020 "proxyto" : "node",
8021 "returns" : {
8022 "type" : "string"
8023 }
8024 },
8025 "POST" : {
8026 "description" : "Schedule immediate delivery of deferred mail with the specified queue ID.",
8027 "method" : "POST",
8028 "name" : "flush_queued_mail",
8029 "parameters" : {
8030 "additionalProperties" : 0,
8031 "properties" : {
8032 "node" : {
8033 "description" : "The cluster node name.",
8034 "format" : "pve-node",
8035 "type" : "string",
8036 "typetext" : "<string>"
8037 },
8038 "queue" : {
8039 "description" : "Postfix queue name.",
8040 "enum" : [
8041 "deferred",
8042 "active",
8043 "incoming",
8044 "hold"
8045 ],
8046 "type" : "string"
8047 },
8048 "queue_id" : {
8049 "description" : "The Message queue ID.",
8050 "maxLength" : 20,
8051 "minLength" : 8,
8052 "pattern" : "[a-zA-Z0-9]+",
8053 "type" : "string"
8054 }
8055 }
8056 },
8057 "permissions" : {
8058 "check" : [
8059 "admin"
8060 ]
8061 },
8062 "protected" : 1,
8063 "proxyto" : "node",
8064 "returns" : {
8065 "type" : "null"
8066 }
8067 }
8068 },
8069 "leaf" : 1,
8070 "path" : "/nodes/{node}/postfix/queue/{queue}/{queue_id}",
8071 "text" : "{queue_id}"
8072 }
8073 ],
8074 "info" : {
8075 "DELETE" : {
8076 "description" : "Delete all mails in the queue.",
8077 "method" : "DELETE",
8078 "name" : "delete_queue",
8079 "parameters" : {
8080 "additionalProperties" : 0,
8081 "properties" : {
8082 "node" : {
8083 "description" : "The cluster node name.",
8084 "format" : "pve-node",
8085 "type" : "string",
8086 "typetext" : "<string>"
8087 },
8088 "queue" : {
8089 "description" : "Postfix queue name.",
8090 "enum" : [
8091 "deferred",
8092 "active",
8093 "incoming",
8094 "hold"
8095 ],
8096 "type" : "string"
8097 }
8098 }
8099 },
8100 "permissions" : {
8101 "check" : [
8102 "admin"
8103 ]
8104 },
8105 "protected" : 1,
8106 "proxyto" : "node",
8107 "returns" : {
8108 "type" : "null"
8109 }
8110 },
8111 "GET" : {
8112 "description" : "List the mail queue for a specific domain.",
8113 "method" : "GET",
8114 "name" : "mailq",
8115 "parameters" : {
8116 "additionalProperties" : 0,
8117 "properties" : {
8118 "filter" : {
8119 "description" : "Filter string.",
8120 "maxLength" : 64,
8121 "optional" : 1,
8122 "type" : "string",
8123 "typetext" : "<string>"
8124 },
8125 "limit" : {
8126 "minimum" : 0,
8127 "optional" : 1,
8128 "type" : "integer",
8129 "typetext" : "<integer> (0 - N)"
8130 },
8131 "node" : {
8132 "description" : "The cluster node name.",
8133 "format" : "pve-node",
8134 "type" : "string",
8135 "typetext" : "<string>"
8136 },
8137 "queue" : {
8138 "description" : "Postfix queue name.",
8139 "enum" : [
8140 "deferred",
8141 "active",
8142 "incoming",
8143 "hold"
8144 ],
8145 "type" : "string"
8146 },
8147 "start" : {
8148 "minimum" : 0,
8149 "optional" : 1,
8150 "type" : "integer",
8151 "typetext" : "<integer> (0 - N)"
8152 }
8153 }
8154 },
8155 "permissions" : {
8156 "check" : [
732d76e1
DM
8157 "admin",
8158 "audit"
a55e94a6
DM
8159 ]
8160 },
8161 "protected" : 1,
8162 "proxyto" : "node",
8163 "returns" : {
8164 "items" : {
8165 "properties" : {},
8166 "type" : "object"
8167 },
8168 "links" : [
8169 {
8170 "href" : "{queue_id}",
8171 "rel" : "child"
8172 }
8173 ],
8174 "type" : "array"
8175 }
8176 }
8177 },
8178 "leaf" : 0,
8179 "path" : "/nodes/{node}/postfix/queue/{queue}",
8180 "text" : "{queue}"
8181 }
8182 ],
8183 "info" : {
9fda36b0
DM
8184 "DELETE" : {
8185 "description" : "Delete all mails in all posfix queues.",
8186 "method" : "DELETE",
8187 "name" : "delete_all_queues",
8188 "parameters" : {
8189 "additionalProperties" : 0,
8190 "properties" : {
8191 "node" : {
8192 "description" : "The cluster node name.",
8193 "format" : "pve-node",
8194 "type" : "string",
8195 "typetext" : "<string>"
8196 }
8197 }
8198 },
8199 "permissions" : {
8200 "check" : [
8201 "admin"
8202 ]
8203 },
8204 "protected" : 1,
8205 "proxyto" : "node",
8206 "returns" : {
8207 "type" : "null"
8208 }
8209 },
a55e94a6
DM
8210 "GET" : {
8211 "description" : "Directory index.",
8212 "method" : "GET",
8213 "name" : "queue_index",
8214 "parameters" : {
8215 "additionalProperties" : 0,
8216 "properties" : {
8217 "node" : {
8218 "description" : "The cluster node name.",
8219 "format" : "pve-node",
8220 "type" : "string",
8221 "typetext" : "<string>"
8222 }
8223 }
8224 },
8225 "permissions" : {
8226 "user" : "all"
8227 },
8228 "returns" : {
8229 "items" : {
8230 "properties" : {},
8231 "type" : "object"
8232 },
8233 "links" : [
8234 {
8235 "href" : "{name}",
8236 "rel" : "child"
8237 }
8238 ],
8239 "type" : "array"
8240 }
8241 }
8242 },
8243 "leaf" : 0,
8244 "path" : "/nodes/{node}/postfix/queue",
8245 "text" : "queue"
f245a28c 8246 },
a55e94a6
DM
8247 {
8248 "info" : {
8249 "POST" : {
8250 "description" : "Flush the queue: attempt to deliver all queued mail.",
8251 "method" : "POST",
8252 "name" : "flush_queues",
8253 "parameters" : {
8254 "additionalProperties" : 0,
8255 "properties" : {
8256 "node" : {
8257 "description" : "The cluster node name.",
8258 "format" : "pve-node",
8259 "type" : "string",
8260 "typetext" : "<string>"
8261 }
8262 }
8263 },
8264 "permissions" : {
8265 "check" : [
8266 "admin"
8267 ]
8268 },
8269 "protected" : 1,
8270 "proxyto" : "node",
8271 "returns" : {
8272 "type" : "null"
8273 }
8274 }
f245a28c 8275 },
a55e94a6
DM
8276 "leaf" : 1,
8277 "path" : "/nodes/{node}/postfix/flush_queues",
8278 "text" : "flush_queues"
8279 },
8280 {
8281 "info" : {
8282 "POST" : {
8283 "description" : "Discards the address verification cache.",
8284 "method" : "POST",
8285 "name" : "discard_verify_cache",
8286 "parameters" : {
8287 "additionalProperties" : 0,
8288 "properties" : {
8289 "node" : {
8290 "description" : "The cluster node name.",
8291 "format" : "pve-node",
8292 "type" : "string",
8293 "typetext" : "<string>"
8294 }
8295 }
8296 },
8297 "permissions" : {
8298 "check" : [
8299 "admin"
8300 ]
8301 },
8302 "protected" : 1,
8303 "proxyto" : "node",
8304 "returns" : {
8305 "type" : "null"
8306 }
8307 }
f245a28c 8308 },
a55e94a6
DM
8309 "leaf" : 1,
8310 "path" : "/nodes/{node}/postfix/discard_verify_cache",
8311 "text" : "discard_verify_cache"
8312 }
8313 ],
8314 "info" : {
8315 "GET" : {
8316 "description" : "Directory index.",
8317 "method" : "GET",
8318 "name" : "index",
8319 "parameters" : {
8320 "additionalProperties" : 0,
8321 "properties" : {
8322 "node" : {
8323 "description" : "The cluster node name.",
8324 "format" : "pve-node",
8325 "type" : "string",
8326 "typetext" : "<string>"
8327 }
8328 }
f245a28c 8329 },
a55e94a6
DM
8330 "permissions" : {
8331 "user" : "all"
f245a28c 8332 },
a55e94a6
DM
8333 "returns" : {
8334 "items" : {
8335 "properties" : {},
8336 "type" : "object"
8337 },
8338 "links" : [
8339 {
8340 "href" : "{name}",
8341 "rel" : "child"
8342 }
8343 ],
8344 "type" : "array"
f245a28c 8345 }
410dc2c9
DM
8346 }
8347 },
a55e94a6
DM
8348 "leaf" : 0,
8349 "path" : "/nodes/{node}/postfix",
8350 "text" : "postfix"
410dc2c9 8351 },
f245a28c
DM
8352 {
8353 "children" : [
8354 {
8355 "info" : {
8356 "GET" : {
8357 "description" : "ClamAV virus database status.",
8358 "method" : "GET",
8359 "name" : "database_status",
8360 "parameters" : {
8361 "additionalProperties" : 0,
8362 "properties" : {
8363 "node" : {
8364 "description" : "The cluster node name.",
8365 "format" : "pve-node",
8366 "type" : "string",
8367 "typetext" : "<string>"
8368 }
8369 }
8370 },
8371 "returns" : {
8372 "items" : {
8373 "properties" : {
8374 "build_time" : {
8375 "type" : "string"
8376 },
8377 "nsigs" : {
8378 "type" : "integer"
8379 },
8380 "type" : {
8381 "type" : "string"
8382 },
8383 "version" : {
8384 "optional" : 1,
8385 "type" : "string"
8386 }
8387 },
8388 "type" : "object"
8389 },
8390 "type" : "array"
8391 }
8392 },
8393 "POST" : {
8394 "description" : "Update ClamAV virus databases.",
8395 "method" : "POST",
8396 "name" : "update_database",
8397 "parameters" : {
8398 "additionalProperties" : 0,
8399 "properties" : {
8400 "node" : {
8401 "description" : "The cluster node name.",
8402 "format" : "pve-node",
8403 "type" : "string",
8404 "typetext" : "<string>"
8405 }
8406 }
8407 },
8408 "protected" : 1,
8409 "returns" : {
8410 "type" : "string"
8411 }
8412 }
8413 },
8414 "leaf" : 1,
8415 "path" : "/nodes/{node}/clamav/database",
8416 "text" : "database"
8417 }
8418 ],
8419 "info" : {
8420 "GET" : {
8421 "description" : "Directory index.",
8422 "method" : "GET",
8423 "name" : "index",
8424 "parameters" : {
8425 "additionalProperties" : 0,
8426 "properties" : {
8427 "node" : {
8428 "description" : "The cluster node name.",
8429 "format" : "pve-node",
8430 "type" : "string",
8431 "typetext" : "<string>"
8432 }
8433 }
8434 },
8435 "protected" : 1,
8436 "proxyto" : "node",
8437 "returns" : {
8438 "items" : {
8439 "properties" : {},
8440 "type" : "object"
8441 },
8442 "links" : [
8443 {
8444 "href" : "{subdir}",
8445 "rel" : "child"
8446 }
8447 ],
8448 "type" : "array"
8449 }
8450 }
8451 },
8452 "leaf" : 0,
8453 "path" : "/nodes/{node}/clamav",
8454 "text" : "clamav"
8455 },
410dc2c9
DM
8456 {
8457 "children" : [
8458 {
8459 "info" : {
8460 "DELETE" : {
8461 "description" : "Delete network device configuration",
8462 "method" : "DELETE",
8463 "name" : "delete_network",
8464 "parameters" : {
8465 "additionalProperties" : 0,
8466 "properties" : {
8467 "iface" : {
8468 "description" : "Network interface name.",
8469 "format" : "pve-iface",
8470 "maxLength" : 20,
8471 "minLength" : 2,
8472 "type" : "string",
8473 "typetext" : "<string>"
8474 },
8475 "node" : {
8476 "description" : "The cluster node name.",
8477 "format" : "pve-node",
8478 "type" : "string",
8479 "typetext" : "<string>"
8480 }
8481 }
8482 },
8483 "protected" : 1,
8484 "proxyto" : "node",
8485 "returns" : {
8486 "type" : "null"
8487 }
8488 },
8489 "GET" : {
8490 "description" : "Read network device configuration",
8491 "method" : "GET",
8492 "name" : "network_config",
8493 "parameters" : {
8494 "additionalProperties" : 0,
8495 "properties" : {
8496 "iface" : {
8497 "description" : "Network interface name.",
8498 "format" : "pve-iface",
8499 "maxLength" : 20,
8500 "minLength" : 2,
8501 "type" : "string",
8502 "typetext" : "<string>"
8503 },
8504 "node" : {
8505 "description" : "The cluster node name.",
8506 "format" : "pve-node",
8507 "type" : "string",
8508 "typetext" : "<string>"
8509 }
8510 }
8511 },
732d76e1
DM
8512 "permissions" : {
8513 "check" : [
8514 "admin",
8515 "audit"
8516 ]
8517 },
410dc2c9
DM
8518 "proxyto" : "node",
8519 "returns" : {
8520 "properties" : {
8521 "method" : {
8522 "type" : "string"
8523 },
8524 "type" : {
8525 "type" : "string"
8526 }
8527 },
8528 "type" : "object"
8529 }
8530 },
8531 "PUT" : {
8532 "description" : "Update network device configuration",
8533 "method" : "PUT",
8534 "name" : "update_network",
8535 "parameters" : {
8536 "additionalProperties" : 0,
8537 "properties" : {
8538 "address" : {
8539 "description" : "IP address.",
8540 "format" : "ipv4",
8541 "optional" : 1,
8542 "requires" : "netmask",
8543 "type" : "string",
8544 "typetext" : "<string>"
8545 },
8546 "address6" : {
8547 "description" : "IP address.",
8548 "format" : "ipv6",
8549 "optional" : 1,
8550 "requires" : "netmask6",
8551 "type" : "string",
8552 "typetext" : "<string>"
8553 },
8554 "autostart" : {
8555 "description" : "Automatically start interface on boot.",
8556 "optional" : 1,
8557 "type" : "boolean",
8558 "typetext" : "<boolean>"
8559 },
8560 "bond_mode" : {
8561 "description" : "Bonding mode.",
8562 "enum" : [
8563 "balance-rr",
8564 "active-backup",
8565 "balance-xor",
8566 "broadcast",
8567 "802.3ad",
8568 "balance-tlb",
8569 "balance-alb",
8570 "balance-slb",
8571 "lacp-balance-slb",
8572 "lacp-balance-tcp"
8573 ],
8574 "optional" : 1,
8575 "type" : "string"
8576 },
8577 "bond_xmit_hash_policy" : {
8578 "description" : "Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes.",
8579 "enum" : [
8580 "layer2",
8581 "layer2+3",
8582 "layer3+4"
8583 ],
8584 "optional" : 1,
8585 "type" : "string"
8586 },
8587 "bridge_ports" : {
8588 "description" : "Specify the iterfaces you want to add to your bridge.",
8589 "format" : "pve-iface-list",
8590 "optional" : 1,
8591 "type" : "string",
8592 "typetext" : "<string>"
8593 },
8594 "bridge_vlan_aware" : {
8595 "description" : "Enable bridge vlan support.",
8596 "optional" : 1,
8597 "type" : "boolean",
8598 "typetext" : "<boolean>"
8599 },
8600 "comments" : {
8601 "description" : "Comments",
8602 "optional" : 1,
8603 "type" : "string",
8604 "typetext" : "<string>"
8605 },
8606 "comments6" : {
8607 "description" : "Comments",
8608 "optional" : 1,
8609 "type" : "string",
8610 "typetext" : "<string>"
8611 },
8612 "delete" : {
8613 "description" : "A list of settings you want to delete.",
8614 "format" : "pve-configid-list",
8615 "optional" : 1,
8616 "type" : "string",
8617 "typetext" : "<string>"
8618 },
8619 "gateway" : {
8620 "description" : "Default gateway address.",
8621 "format" : "ipv4",
8622 "optional" : 1,
8623 "type" : "string",
8624 "typetext" : "<string>"
8625 },
8626 "gateway6" : {
8627 "description" : "Default ipv6 gateway address.",
8628 "format" : "ipv6",
8629 "optional" : 1,
8630 "type" : "string",
8631 "typetext" : "<string>"
8632 },
8633 "iface" : {
8634 "description" : "Network interface name.",
8635 "format" : "pve-iface",
8636 "maxLength" : 20,
8637 "minLength" : 2,
8638 "type" : "string",
8639 "typetext" : "<string>"
8640 },
8641 "netmask" : {
8642 "description" : "Network mask.",
8643 "format" : "ipv4mask",
8644 "optional" : 1,
8645 "requires" : "address",
8646 "type" : "string",
8647 "typetext" : "<string>"
8648 },
8649 "netmask6" : {
8650 "description" : "Network mask.",
8651 "maximum" : 128,
8652 "minimum" : 0,
8653 "optional" : 1,
8654 "requires" : "address6",
8655 "type" : "integer",
8656 "typetext" : "<integer> (0 - 128)"
8657 },
8658 "node" : {
8659 "description" : "The cluster node name.",
8660 "format" : "pve-node",
8661 "type" : "string",
8662 "typetext" : "<string>"
8663 },
8664 "ovs_bonds" : {
8665 "description" : "Specify the interfaces used by the bonding device.",
8666 "format" : "pve-iface-list",
8667 "optional" : 1,
8668 "type" : "string",
8669 "typetext" : "<string>"
8670 },
8671 "ovs_bridge" : {
8672 "description" : "The OVS bridge associated with a OVS port. This is required when you create an OVS port.",
8673 "format" : "pve-iface",
8674 "optional" : 1,
8675 "type" : "string",
8676 "typetext" : "<string>"
8677 },
8678 "ovs_options" : {
8679 "description" : "OVS interface options.",
8680 "maxLength" : 1024,
8681 "optional" : 1,
8682 "type" : "string",
8683 "typetext" : "<string>"
8684 },
8685 "ovs_ports" : {
8686 "description" : "Specify the iterfaces you want to add to your bridge.",
8687 "format" : "pve-iface-list",
8688 "optional" : 1,
8689 "type" : "string",
8690 "typetext" : "<string>"
8691 },
8692 "ovs_tag" : {
8693 "description" : "Specify a VLan tag (used by OVSPort, OVSIntPort, OVSBond)",
8694 "maximum" : 4094,
8695 "minimum" : 1,
8696 "optional" : 1,
8697 "type" : "integer",
8698 "typetext" : "<integer> (1 - 4094)"
8699 },
8700 "slaves" : {
8701 "description" : "Specify the interfaces used by the bonding device.",
8702 "format" : "pve-iface-list",
8703 "optional" : 1,
8704 "type" : "string",
8705 "typetext" : "<string>"
8706 },
8707 "type" : {
8708 "description" : "Network interface type",
8709 "enum" : [
8710 "bridge",
8711 "bond",
8712 "eth",
8713 "alias",
8714 "vlan",
8715 "OVSBridge",
8716 "OVSBond",
8717 "OVSPort",
8718 "OVSIntPort",
8719 "unknown"
8720 ],
8721 "type" : "string"
8722 }
8723 }
8724 },
8725 "protected" : 1,
8726 "proxyto" : "node",
8727 "returns" : {
8728 "type" : "null"
8729 }
8730 }
8731 },
8732 "leaf" : 1,
8733 "path" : "/nodes/{node}/network/{iface}",
8734 "text" : "{iface}"
8735 }
8736 ],
8737 "info" : {
8738 "DELETE" : {
8739 "description" : "Revert network configuration changes.",
8740 "method" : "DELETE",
8741 "name" : "revert_network_changes",
8742 "parameters" : {
8743 "additionalProperties" : 0,
8744 "properties" : {
8745 "node" : {
8746 "description" : "The cluster node name.",
8747 "format" : "pve-node",
8748 "type" : "string",
8749 "typetext" : "<string>"
8750 }
8751 }
8752 },
8753 "protected" : 1,
8754 "proxyto" : "node",
8755 "returns" : {
8756 "type" : "null"
8757 }
8758 },
8759 "GET" : {
8760 "description" : "List available networks",
8761 "method" : "GET",
8762 "name" : "index",
8763 "parameters" : {
8764 "additionalProperties" : 0,
8765 "properties" : {
8766 "node" : {
8767 "description" : "The cluster node name.",
8768 "format" : "pve-node",
8769 "type" : "string",
8770 "typetext" : "<string>"
8771 },
8772 "type" : {
8773 "description" : "Only list specific interface types.",
8774 "enum" : [
8775 "bridge",
8776 "bond",
8777 "eth",
8778 "alias",
8779 "vlan",
8780 "OVSBridge",
8781 "OVSBond",
8782 "OVSPort",
8783 "OVSIntPort",
8784 "any_bridge"
8785 ],
8786 "optional" : 1,
8787 "type" : "string"
8788 }
8789 }
8790 },
732d76e1
DM
8791 "permissions" : {
8792 "check" : [
8793 "admin",
8794 "audit"
8795 ]
8796 },
410dc2c9
DM
8797 "proxyto" : "node",
8798 "returns" : {
8799 "items" : {
8800 "properties" : {},
8801 "type" : "object"
8802 },
8803 "links" : [
8804 {
8805 "href" : "{iface}",
8806 "rel" : "child"
8807 }
8808 ],
8809 "type" : "array"
8810 }
8811 },
8812 "POST" : {
8813 "description" : "Create network device configuration",
8814 "method" : "POST",
8815 "name" : "create_network",
8816 "parameters" : {
8817 "additionalProperties" : 0,
8818 "properties" : {
8819 "address" : {
8820 "description" : "IP address.",
8821 "format" : "ipv4",
8822 "optional" : 1,
8823 "requires" : "netmask",
8824 "type" : "string",
8825 "typetext" : "<string>"
8826 },
8827 "address6" : {
8828 "description" : "IP address.",
8829 "format" : "ipv6",
8830 "optional" : 1,
8831 "requires" : "netmask6",
8832 "type" : "string",
8833 "typetext" : "<string>"
8834 },
8835 "autostart" : {
8836 "description" : "Automatically start interface on boot.",
8837 "optional" : 1,
8838 "type" : "boolean",
8839 "typetext" : "<boolean>"
8840 },
8841 "bond_mode" : {
8842 "description" : "Bonding mode.",
8843 "enum" : [
8844 "balance-rr",
8845 "active-backup",
8846 "balance-xor",
8847 "broadcast",
8848 "802.3ad",
8849 "balance-tlb",
8850 "balance-alb",
8851 "balance-slb",
8852 "lacp-balance-slb",
8853 "lacp-balance-tcp"
8854 ],
8855 "optional" : 1,
8856 "type" : "string"
8857 },
8858 "bond_xmit_hash_policy" : {
8859 "description" : "Selects the transmit hash policy to use for slave selection in balance-xor and 802.3ad modes.",
8860 "enum" : [
8861 "layer2",
8862 "layer2+3",
8863 "layer3+4"
8864 ],
8865 "optional" : 1,
8866 "type" : "string"
8867 },
8868 "bridge_ports" : {
8869 "description" : "Specify the iterfaces you want to add to your bridge.",
8870 "format" : "pve-iface-list",
8871 "optional" : 1,
8872 "type" : "string",
8873 "typetext" : "<string>"
8874 },
8875 "bridge_vlan_aware" : {
8876 "description" : "Enable bridge vlan support.",
8877 "optional" : 1,
8878 "type" : "boolean",
8879 "typetext" : "<boolean>"
8880 },
8881 "comments" : {
8882 "description" : "Comments",
8883 "optional" : 1,
8884 "type" : "string",
8885 "typetext" : "<string>"
8886 },
8887 "comments6" : {
8888 "description" : "Comments",
8889 "optional" : 1,
8890 "type" : "string",
8891 "typetext" : "<string>"
8892 },
8893 "gateway" : {
8894 "description" : "Default gateway address.",
8895 "format" : "ipv4",
8896 "optional" : 1,
8897 "type" : "string",
8898 "typetext" : "<string>"
8899 },
8900 "gateway6" : {
8901 "description" : "Default ipv6 gateway address.",
8902 "format" : "ipv6",
8903 "optional" : 1,
8904 "type" : "string",
8905 "typetext" : "<string>"
8906 },
8907 "iface" : {
8908 "description" : "Network interface name.",
8909 "format" : "pve-iface",
8910 "maxLength" : 20,
8911 "minLength" : 2,
8912 "type" : "string",
8913 "typetext" : "<string>"
8914 },
8915 "netmask" : {
8916 "description" : "Network mask.",
8917 "format" : "ipv4mask",
8918 "optional" : 1,
8919 "requires" : "address",
8920 "type" : "string",
8921 "typetext" : "<string>"
8922 },
8923 "netmask6" : {
8924 "description" : "Network mask.",
8925 "maximum" : 128,
8926 "minimum" : 0,
8927 "optional" : 1,
8928 "requires" : "address6",
8929 "type" : "integer",
8930 "typetext" : "<integer> (0 - 128)"
8931 },
8932 "node" : {
8933 "description" : "The cluster node name.",
8934 "format" : "pve-node",
8935 "type" : "string",
8936 "typetext" : "<string>"
8937 },
8938 "ovs_bonds" : {
8939 "description" : "Specify the interfaces used by the bonding device.",
8940 "format" : "pve-iface-list",
8941 "optional" : 1,
8942 "type" : "string",
8943 "typetext" : "<string>"
8944 },
8945 "ovs_bridge" : {
8946 "description" : "The OVS bridge associated with a OVS port. This is required when you create an OVS port.",
8947 "format" : "pve-iface",
8948 "optional" : 1,
8949 "type" : "string",
8950 "typetext" : "<string>"
8951 },
8952 "ovs_options" : {
8953 "description" : "OVS interface options.",
8954 "maxLength" : 1024,
8955 "optional" : 1,
8956 "type" : "string",
8957 "typetext" : "<string>"
8958 },
8959 "ovs_ports" : {
8960 "description" : "Specify the iterfaces you want to add to your bridge.",
8961 "format" : "pve-iface-list",
8962 "optional" : 1,
8963 "type" : "string",
8964 "typetext" : "<string>"
8965 },
8966 "ovs_tag" : {
8967 "description" : "Specify a VLan tag (used by OVSPort, OVSIntPort, OVSBond)",
8968 "maximum" : 4094,
8969 "minimum" : 1,
8970 "optional" : 1,
8971 "type" : "integer",
8972 "typetext" : "<integer> (1 - 4094)"
8973 },
8974 "slaves" : {
8975 "description" : "Specify the interfaces used by the bonding device.",
8976 "format" : "pve-iface-list",
8977 "optional" : 1,
8978 "type" : "string",
8979 "typetext" : "<string>"
8980 },
8981 "type" : {
8982 "description" : "Network interface type",
8983 "enum" : [
8984 "bridge",
8985 "bond",
8986 "eth",
8987 "alias",
8988 "vlan",
8989 "OVSBridge",
8990 "OVSBond",
8991 "OVSPort",
8992 "OVSIntPort",
8993 "unknown"
8994 ],
8995 "type" : "string"
8996 }
8997 }
8998 },
8999 "protected" : 1,
9000 "proxyto" : "node",
9001 "returns" : {
9002 "type" : "null"
9003 }
9004 }
9005 },
9006 "leaf" : 0,
9007 "path" : "/nodes/{node}/network",
9008 "text" : "network"
9009 },
9010 {
9011 "children" : [
9012 {
9013 "children" : [
9014 {
9015 "info" : {
9016 "GET" : {
9017 "description" : "Read task log.",
9018 "method" : "GET",
9019 "name" : "read_task_log",
9020 "parameters" : {
9021 "additionalProperties" : 0,
9022 "properties" : {
9023 "limit" : {
9024 "minimum" : 0,
9025 "optional" : 1,
9026 "type" : "integer",
9027 "typetext" : "<integer> (0 - N)"
9028 },
9029 "node" : {
9030 "description" : "The cluster node name.",
9031 "format" : "pve-node",
9032 "type" : "string",
9033 "typetext" : "<string>"
9034 },
9035 "start" : {
9036 "minimum" : 0,
9037 "optional" : 1,
9038 "type" : "integer",
9039 "typetext" : "<integer> (0 - N)"
9040 },
9041 "upid" : {
9042 "type" : "string",
9043 "typetext" : "<string>"
9044 }
9045 }
9046 },
732d76e1
DM
9047 "permissions" : {
9048 "check" : [
9049 "admin",
9050 "audit"
9051 ]
9052 },
410dc2c9
DM
9053 "protected" : 1,
9054 "proxyto" : "node",
9055 "returns" : {
9056 "items" : {
9057 "properties" : {
9058 "n" : {
9059 "description" : "Line number",
9060 "type" : "integer"
9061 },
9062 "t" : {
9063 "description" : "Line text",
9064 "type" : "string"
9065 }
9066 },
9067 "type" : "object"
9068 },
9069 "type" : "array"
9070 }
9071 }
9072 },
9073 "leaf" : 1,
9074 "path" : "/nodes/{node}/tasks/{upid}/log",
9075 "text" : "log"
9076 },
9077 {
9078 "info" : {
9079 "GET" : {
9080 "description" : "Read task status.",
9081 "method" : "GET",
9082 "name" : "read_task_status",
9083 "parameters" : {
9084 "additionalProperties" : 0,
9085 "properties" : {
9086 "node" : {
9087 "description" : "The cluster node name.",
9088 "format" : "pve-node",
9089 "type" : "string",
9090 "typetext" : "<string>"
9091 },
9092 "upid" : {
9093 "type" : "string",
9094 "typetext" : "<string>"
9095 }
9096 }
9097 },
732d76e1
DM
9098 "permissions" : {
9099 "check" : [
9100 "admin",
9101 "audit"
9102 ]
9103 },
410dc2c9
DM
9104 "protected" : 1,
9105 "proxyto" : "node",
9106 "returns" : {
9107 "properties" : {
9108 "pid" : {
9109 "type" : "integer"
9110 },
9111 "status" : {
9112 "enum" : [
9113 "running",
9114 "stopped"
9115 ],
9116 "type" : "string"
9117 }
9118 },
9119 "type" : "object"
9120 }
9121 }
9122 },
9123 "leaf" : 1,
9124 "path" : "/nodes/{node}/tasks/{upid}/status",
9125 "text" : "status"
9126 }
9127 ],
9128 "info" : {
9129 "DELETE" : {
9130 "description" : "Stop a task.",
9131 "method" : "DELETE",
9132 "name" : "stop_task",
9133 "parameters" : {
9134 "additionalProperties" : 0,
9135 "properties" : {
9136 "node" : {
9137 "description" : "The cluster node name.",
9138 "format" : "pve-node",
9139 "type" : "string",
9140 "typetext" : "<string>"
9141 },
9142 "upid" : {
9143 "type" : "string",
9144 "typetext" : "<string>"
9145 }
9146 }
9147 },
732d76e1
DM
9148 "permissions" : {
9149 "check" : [
9150 "admin"
9151 ]
9152 },
410dc2c9
DM
9153 "protected" : 1,
9154 "proxyto" : "node",
9155 "returns" : {
9156 "type" : "null"
9157 }
9158 },
9159 "GET" : {
9160 "description" : "",
9161 "method" : "GET",
9162 "name" : "upid_index",
9163 "parameters" : {
9164 "additionalProperties" : 0,
9165 "properties" : {
9166 "node" : {
9167 "description" : "The cluster node name.",
9168 "format" : "pve-node",
9169 "type" : "string",
9170 "typetext" : "<string>"
9171 },
9172 "upid" : {
9173 "type" : "string",
9174 "typetext" : "<string>"
9175 }
9176 }
9177 },
732d76e1
DM
9178 "permissions" : {
9179 "check" : [
9180 "admin",
9181 "audit"
9182 ]
9183 },
410dc2c9
DM
9184 "returns" : {
9185 "items" : {
9186 "properties" : {},
9187 "type" : "object"
9188 },
9189 "links" : [
9190 {
9191 "href" : "{name}",
9192 "rel" : "child"
9193 }
9194 ],
9195 "type" : "array"
9196 }
9197 }
9198 },
9199 "leaf" : 0,
9200 "path" : "/nodes/{node}/tasks/{upid}",
9201 "text" : "{upid}"
9202 }
9203 ],
9204 "info" : {
9205 "GET" : {
9206 "description" : "Read task list for one node (finished tasks).",
9207 "method" : "GET",
9208 "name" : "node_tasks",
9209 "parameters" : {
9210 "additionalProperties" : 0,
9211 "properties" : {
9212 "errors" : {
9213 "optional" : 1,
9214 "type" : "boolean",
9215 "typetext" : "<boolean>"
9216 },
9217 "limit" : {
9218 "minimum" : 0,
9219 "optional" : 1,
9220 "type" : "integer",
9221 "typetext" : "<integer> (0 - N)"
9222 },
9223 "node" : {
9224 "description" : "The cluster node name.",
9225 "format" : "pve-node",
9226 "type" : "string",
9227 "typetext" : "<string>"
9228 },
9229 "start" : {
9230 "minimum" : 0,
9231 "optional" : 1,
9232 "type" : "integer",
9233 "typetext" : "<integer> (0 - N)"
9234 },
9235 "userfilter" : {
9236 "optional" : 1,
9237 "type" : "string",
9238 "typetext" : "<string>"
9239 }
9240 }
9241 },
732d76e1
DM
9242 "permissions" : {
9243 "check" : [
9244 "admin",
9245 "audit"
9246 ]
9247 },
410dc2c9
DM
9248 "proxyto" : "node",
9249 "returns" : {
9250 "items" : {
9251 "properties" : {
9252 "upid" : {
9253 "type" : "string"
9254 }
9255 },
9256 "type" : "object"
9257 },
9258 "links" : [
9259 {
9260 "href" : "{upid}",
9261 "rel" : "child"
9262 }
9263 ],
9264 "type" : "array"
9265 }
9266 }
9267 },
9268 "leaf" : 0,
9269 "path" : "/nodes/{node}/tasks",
9270 "text" : "tasks"
9271 },
9272 {
9273 "children" : [
9274 {
9275 "children" : [
9276 {
9277 "info" : {
9278 "GET" : {
9279 "description" : "Read service properties",
9280 "method" : "GET",
9281 "name" : "service_state",
9282 "parameters" : {
9283 "additionalProperties" : 0,
9284 "properties" : {
9285 "node" : {
9286 "description" : "The cluster node name.",
9287 "format" : "pve-node",
9288 "type" : "string",
9289 "typetext" : "<string>"
9290 },
9291 "service" : {
9292 "description" : "Service ID",
9293 "enum" : [
a55e94a6
DM
9294 "clamav-daemon",
9295 "clamav-freshclam",
732d76e1 9296 "fetchmail",
410dc2c9
DM
9297 "pmgproxy",
9298 "pmgdaemon",
a55e94a6 9299 "pmgpolicy",
410dc2c9 9300 "pmg-smtp-filter",
d7cd791b
DM
9301 "pmgtunnel",
9302 "pmgmirror",
9303 "ssh",
9304 "rsyslog",
410dc2c9 9305 "postfix",
d7cd791b 9306 "postgres",
a55e94a6
DM
9307 "systemd-timesyncd",
9308 "pmg-hourly",
d7cd791b 9309 "pmg-daily",
9fda36b0 9310 "pmgreport",
d7cd791b 9311 "pmgspamreport"
410dc2c9
DM
9312 ],
9313 "type" : "string"
9314 }
9315 }
9316 },
732d76e1
DM
9317 "permissions" : {
9318 "check" : [
9319 "admin",
9320 "audit"
9321 ]
9322 },
410dc2c9
DM
9323 "protected" : 1,
9324 "proxyto" : "node",
9325 "returns" : {
9326 "properties" : {},
9327 "type" : "object"
9328 }
9329 }
9330 },
9331 "leaf" : 1,
9332 "path" : "/nodes/{node}/services/{service}/state",
9333 "text" : "state"
9334 },
9335 {
9336 "info" : {
9337 "POST" : {
9338 "description" : "Start service.",
9339 "method" : "POST",
9340 "name" : "service_start",
9341 "parameters" : {
9342 "additionalProperties" : 0,
9343 "properties" : {
9344 "node" : {
9345 "description" : "The cluster node name.",
9346 "format" : "pve-node",
9347 "type" : "string",
9348 "typetext" : "<string>"
9349 },
9350 "service" : {
9351 "description" : "Service ID",
9352 "enum" : [
a55e94a6
DM
9353 "clamav-daemon",
9354 "clamav-freshclam",
732d76e1 9355 "fetchmail",
410dc2c9
DM
9356 "pmgproxy",
9357 "pmgdaemon",
a55e94a6 9358 "pmgpolicy",
410dc2c9 9359 "pmg-smtp-filter",
d7cd791b
DM
9360 "pmgtunnel",
9361 "pmgmirror",
9362 "ssh",
9363 "rsyslog",
410dc2c9 9364 "postfix",
d7cd791b 9365 "postgres",
a55e94a6
DM
9366 "systemd-timesyncd",
9367 "pmg-hourly",
d7cd791b 9368 "pmg-daily",
9fda36b0 9369 "pmgreport",
d7cd791b 9370 "pmgspamreport"
410dc2c9
DM
9371 ],
9372 "type" : "string"
9373 }
9374 }
9375 },
732d76e1
DM
9376 "permissions" : {
9377 "check" : [
9378 "admin"
9379 ]
9380 },
410dc2c9
DM
9381 "protected" : 1,
9382 "proxyto" : "node",
9383 "returns" : {
9384 "type" : "string"
9385 }
9386 }
9387 },
9388 "leaf" : 1,
9389 "path" : "/nodes/{node}/services/{service}/start",
9390 "text" : "start"
9391 },
9392 {
9393 "info" : {
9394 "POST" : {
9395 "description" : "Stop service.",
9396 "method" : "POST",
9397 "name" : "service_stop",
9398 "parameters" : {
9399 "additionalProperties" : 0,
9400 "properties" : {
9401 "node" : {
9402 "description" : "The cluster node name.",
9403 "format" : "pve-node",
9404 "type" : "string",
9405 "typetext" : "<string>"
9406 },
9407 "service" : {
9408 "description" : "Service ID",
9409 "enum" : [
a55e94a6
DM
9410 "clamav-daemon",
9411 "clamav-freshclam",
732d76e1 9412 "fetchmail",
410dc2c9
DM
9413 "pmgproxy",
9414 "pmgdaemon",
a55e94a6 9415 "pmgpolicy",
410dc2c9 9416 "pmg-smtp-filter",
d7cd791b
DM
9417 "pmgtunnel",
9418 "pmgmirror",
9419 "ssh",
9420 "rsyslog",
410dc2c9 9421 "postfix",
d7cd791b 9422 "postgres",
a55e94a6
DM
9423 "systemd-timesyncd",
9424 "pmg-hourly",
d7cd791b 9425 "pmg-daily",
9fda36b0 9426 "pmgreport",
d7cd791b 9427 "pmgspamreport"
410dc2c9
DM
9428 ],
9429 "type" : "string"
9430 }
9431 }
9432 },
732d76e1
DM
9433 "permissions" : {
9434 "check" : [
9435 "admin"
9436 ]
9437 },
410dc2c9
DM
9438 "protected" : 1,
9439 "proxyto" : "node",
9440 "returns" : {
9441 "type" : "string"
9442 }
9443 }
9444 },
9445 "leaf" : 1,
9446 "path" : "/nodes/{node}/services/{service}/stop",
9447 "text" : "stop"
9448 },
9449 {
9450 "info" : {
9451 "POST" : {
9452 "description" : "Restart service.",
9453 "method" : "POST",
9454 "name" : "service_restart",
9455 "parameters" : {
9456 "additionalProperties" : 0,
9457 "properties" : {
9458 "node" : {
9459 "description" : "The cluster node name.",
9460 "format" : "pve-node",
9461 "type" : "string",
9462 "typetext" : "<string>"
9463 },
9464 "service" : {
9465 "description" : "Service ID",
9466 "enum" : [
a55e94a6
DM
9467 "clamav-daemon",
9468 "clamav-freshclam",
732d76e1 9469 "fetchmail",
410dc2c9
DM
9470 "pmgproxy",
9471 "pmgdaemon",
a55e94a6 9472 "pmgpolicy",
410dc2c9 9473 "pmg-smtp-filter",
d7cd791b
DM
9474 "pmgtunnel",
9475 "pmgmirror",
9476 "ssh",
9477 "rsyslog",
410dc2c9 9478 "postfix",
d7cd791b 9479 "postgres",
a55e94a6
DM
9480 "systemd-timesyncd",
9481 "pmg-hourly",
d7cd791b 9482 "pmg-daily",
9fda36b0 9483 "pmgreport",
d7cd791b 9484 "pmgspamreport"
410dc2c9
DM
9485 ],
9486 "type" : "string"
9487 }
9488 }
9489 },
732d76e1
DM
9490 "permissions" : {
9491 "check" : [
9492 "admin"
9493 ]
9494 },
410dc2c9
DM
9495 "protected" : 1,
9496 "proxyto" : "node",
9497 "returns" : {
9498 "type" : "string"
9499 }
9500 }
9501 },
9502 "leaf" : 1,
9503 "path" : "/nodes/{node}/services/{service}/restart",
9504 "text" : "restart"
9505 },
9506 {
9507 "info" : {
9508 "POST" : {
9509 "description" : "Reload service.",
9510 "method" : "POST",
9511 "name" : "service_reload",
9512 "parameters" : {
9513 "additionalProperties" : 0,
9514 "properties" : {
9515 "node" : {
9516 "description" : "The cluster node name.",
9517 "format" : "pve-node",
9518 "type" : "string",
9519 "typetext" : "<string>"
9520 },
9521 "service" : {
9522 "description" : "Service ID",
9523 "enum" : [
a55e94a6
DM
9524 "clamav-daemon",
9525 "clamav-freshclam",
732d76e1 9526 "fetchmail",
410dc2c9
DM
9527 "pmgproxy",
9528 "pmgdaemon",
a55e94a6 9529 "pmgpolicy",
410dc2c9 9530 "pmg-smtp-filter",
d7cd791b
DM
9531 "pmgtunnel",
9532 "pmgmirror",
9533 "ssh",
9534 "rsyslog",
410dc2c9 9535 "postfix",
d7cd791b 9536 "postgres",
a55e94a6
DM
9537 "systemd-timesyncd",
9538 "pmg-hourly",
d7cd791b 9539 "pmg-daily",
9fda36b0 9540 "pmgreport",
d7cd791b 9541 "pmgspamreport"
410dc2c9
DM
9542 ],
9543 "type" : "string"
9544 }
9545 }
9546 },
732d76e1
DM
9547 "permissions" : {
9548 "check" : [
9549 "admin"
9550 ]
9551 },
410dc2c9
DM
9552 "protected" : 1,
9553 "proxyto" : "node",
9554 "returns" : {
9555 "type" : "string"
9556 }
9557 }
9558 },
9559 "leaf" : 1,
9560 "path" : "/nodes/{node}/services/{service}/reload",
9561 "text" : "reload"
9562 }
9563 ],
9564 "info" : {
9565 "GET" : {
9566 "description" : "Directory index",
9567 "method" : "GET",
9568 "name" : "srvcmdidx",
9569 "parameters" : {
9570 "additionalProperties" : 0,
9571 "properties" : {
9572 "node" : {
9573 "description" : "The cluster node name.",
9574 "format" : "pve-node",
9575 "type" : "string",
9576 "typetext" : "<string>"
9577 },
9578 "service" : {
9579 "description" : "Service ID",
9580 "enum" : [
a55e94a6
DM
9581 "clamav-daemon",
9582 "clamav-freshclam",
732d76e1 9583 "fetchmail",
410dc2c9
DM
9584 "pmgproxy",
9585 "pmgdaemon",
a55e94a6 9586 "pmgpolicy",
410dc2c9 9587 "pmg-smtp-filter",
d7cd791b
DM
9588 "pmgtunnel",
9589 "pmgmirror",
9590 "ssh",
9591 "rsyslog",
410dc2c9 9592 "postfix",
d7cd791b 9593 "postgres",
a55e94a6
DM
9594 "systemd-timesyncd",
9595 "pmg-hourly",
d7cd791b 9596 "pmg-daily",
9fda36b0 9597 "pmgreport",
d7cd791b 9598 "pmgspamreport"
410dc2c9
DM
9599 ],
9600 "type" : "string"
9601 }
9602 }
9603 },
732d76e1
DM
9604 "permissions" : {
9605 "check" : [
9606 "admin",
9607 "audit"
9608 ]
9609 },
410dc2c9
DM
9610 "returns" : {
9611 "items" : {
9612 "properties" : {
9613 "subdir" : {
9614 "type" : "string"
9615 }
9616 },
9617 "type" : "object"
9618 },
9619 "links" : [
9620 {
9621 "href" : "{subdir}",
9622 "rel" : "child"
9623 }
9624 ],
9625 "type" : "array"
9626 }
9627 }
9628 },
9fda36b0
DM
9629 "leaf" : 0,
9630 "path" : "/nodes/{node}/services/{service}",
9631 "text" : "{service}"
9632 }
9633 ],
9634 "info" : {
9635 "GET" : {
9636 "description" : "Service list.",
9637 "method" : "GET",
9638 "name" : "index",
9639 "parameters" : {
9640 "additionalProperties" : 0,
9641 "properties" : {
9642 "node" : {
9643 "description" : "The cluster node name.",
9644 "format" : "pve-node",
9645 "type" : "string",
9646 "typetext" : "<string>"
9647 }
9648 }
9649 },
732d76e1
DM
9650 "permissions" : {
9651 "check" : [
9652 "admin",
9653 "audit"
9654 ]
9655 },
9fda36b0
DM
9656 "protected" : 1,
9657 "proxyto" : "node",
9658 "returns" : {
9659 "items" : {
9660 "properties" : {},
9661 "type" : "object"
9662 },
9663 "links" : [
9664 {
9665 "href" : "{service}",
9666 "rel" : "child"
9667 }
9668 ],
9669 "type" : "array"
9670 }
9671 }
9672 },
9673 "leaf" : 0,
9674 "path" : "/nodes/{node}/services",
9675 "text" : "services"
9676 },
9677 {
9678 "info" : {
9679 "GET" : {
9680 "description" : "Read subscription info.",
9681 "method" : "GET",
9682 "name" : "get",
9683 "parameters" : {
9684 "additionalProperties" : 0,
9685 "properties" : {
9686 "node" : {
9687 "description" : "The cluster node name.",
9688 "format" : "pve-node",
9689 "type" : "string",
9690 "typetext" : "<string>"
9691 }
9692 }
9693 },
9694 "permissions" : {
9695 "check" : [
9696 "admin",
9697 "qmanager",
9698 "audit",
9699 "quser"
9700 ]
9701 },
9702 "proxyto" : "node",
9703 "returns" : {
9704 "type" : "object"
9705 }
732d76e1
DM
9706 },
9707 "POST" : {
9708 "description" : "Update subscription info.",
9709 "method" : "POST",
9710 "name" : "update",
9711 "parameters" : {
9712 "additionalProperties" : 0,
9713 "properties" : {
9714 "force" : {
9715 "default" : 0,
9716 "description" : "Always connect to server, even if we have up to date info inside local cache.",
9717 "optional" : 1,
9718 "type" : "boolean",
9719 "typetext" : "<boolean>"
9720 },
9721 "node" : {
9722 "description" : "The cluster node name.",
9723 "format" : "pve-node",
9724 "type" : "string",
9725 "typetext" : "<string>"
9726 }
9727 }
9728 },
9729 "permissions" : {
9730 "check" : [
9731 "admin"
9732 ]
9733 },
9734 "protected" : 1,
9735 "proxyto" : "node",
9736 "returns" : {
9737 "type" : "null"
9738 }
9739 },
9740 "PUT" : {
9741 "description" : "Set subscription key.",
9742 "method" : "PUT",
9743 "name" : "set",
9744 "parameters" : {
9745 "additionalProperties" : 0,
9746 "properties" : {
9747 "key" : {
9748 "description" : "Proxmox Mail Gateway subscription key",
9749 "maxLength" : 32,
9750 "pattern" : "pmg([cbsp])-[0-9a-f]{10}",
9751 "type" : "string"
9752 },
9753 "node" : {
9754 "description" : "The cluster node name.",
9755 "format" : "pve-node",
9756 "type" : "string",
9757 "typetext" : "<string>"
9758 }
9759 }
9760 },
9761 "protected" : 1,
9762 "proxyto" : "node",
9763 "returns" : {
9764 "type" : "null"
9765 }
9fda36b0
DM
9766 }
9767 },
9768 "leaf" : 1,
9769 "path" : "/nodes/{node}/subscription",
9770 "text" : "subscription"
9771 },
9772 {
9773 "children" : [
9774 {
9775 "info" : {
9776 "GET" : {
9777 "description" : "List available updates.",
9778 "method" : "GET",
9779 "name" : "list_updates",
9780 "parameters" : {
9781 "additionalProperties" : 0,
9782 "properties" : {
9783 "node" : {
9784 "description" : "The cluster node name.",
9785 "format" : "pve-node",
9786 "type" : "string",
9787 "typetext" : "<string>"
9788 }
9789 }
9790 },
732d76e1
DM
9791 "permissions" : {
9792 "check" : [
9793 "admin",
9794 "audit"
9795 ]
9796 },
9fda36b0
DM
9797 "protected" : 1,
9798 "proxyto" : "node",
9799 "returns" : {
9800 "items" : {
9801 "properties" : {},
9802 "type" : "object"
9803 },
9804 "type" : "array"
9805 }
9806 },
9807 "POST" : {
9808 "description" : "This is used to resynchronize the package index files from their sources (apt-get update).",
9809 "method" : "POST",
9810 "name" : "update_database",
9811 "parameters" : {
9812 "additionalProperties" : 0,
9813 "properties" : {
9814 "node" : {
9815 "description" : "The cluster node name.",
9816 "format" : "pve-node",
9817 "type" : "string",
9818 "typetext" : "<string>"
9819 },
9820 "notify" : {
9821 "default" : 0,
9822 "description" : "Send notification mail about new packages (to email address specified for user 'root@pam').",
9823 "optional" : 1,
9824 "type" : "boolean",
9825 "typetext" : "<boolean>"
9826 },
9827 "quiet" : {
9828 "default" : 0,
9829 "description" : "Only produces output suitable for logging, omitting progress indicators.",
9830 "optional" : 1,
9831 "type" : "boolean",
9832 "typetext" : "<boolean>"
9833 }
9834 }
9835 },
732d76e1
DM
9836 "permissions" : {
9837 "check" : [
9838 "admin"
9839 ]
9840 },
9fda36b0
DM
9841 "protected" : 1,
9842 "proxyto" : "node",
9843 "returns" : {
9844 "type" : "string"
9845 }
9846 }
9847 },
9848 "leaf" : 1,
9849 "path" : "/nodes/{node}/apt/update",
9850 "text" : "update"
9851 },
9852 {
9853 "info" : {
9854 "GET" : {
9855 "description" : "Get package changelogs.",
9856 "method" : "GET",
9857 "name" : "changelog",
9858 "parameters" : {
9859 "additionalProperties" : 0,
9860 "properties" : {
9861 "name" : {
9862 "description" : "Package name.",
9863 "type" : "string",
9864 "typetext" : "<string>"
9865 },
9866 "node" : {
9867 "description" : "The cluster node name.",
9868 "format" : "pve-node",
9869 "type" : "string",
9870 "typetext" : "<string>"
9871 },
9872 "version" : {
9873 "description" : "Package version.",
9874 "optional" : 1,
9875 "type" : "string",
9876 "typetext" : "<string>"
9877 }
9878 }
9879 },
732d76e1
DM
9880 "permissions" : {
9881 "check" : [
9882 "admin",
9883 "audit"
9884 ]
9885 },
9fda36b0
DM
9886 "proxyto" : "node",
9887 "returns" : {
9888 "type" : "string"
9889 }
9890 }
9891 },
9892 "leaf" : 1,
9893 "path" : "/nodes/{node}/apt/changelog",
9894 "text" : "changelog"
9895 },
9896 {
9897 "info" : {
9898 "GET" : {
9899 "description" : "Get package information for important Proxmox packages.",
9900 "method" : "GET",
9901 "name" : "versions",
9902 "parameters" : {
9903 "additionalProperties" : 0,
9904 "properties" : {
9905 "node" : {
9906 "description" : "The cluster node name.",
9907 "format" : "pve-node",
9908 "type" : "string",
9909 "typetext" : "<string>"
9910 }
9911 }
9912 },
9913 "permissions" : {
9914 "check" : [
732d76e1
DM
9915 "admin",
9916 "audit"
9fda36b0
DM
9917 ]
9918 },
9919 "proxyto" : "node",
9920 "returns" : {
9921 "items" : {
9922 "properties" : {},
9923 "type" : "object"
9924 },
9925 "type" : "array"
9926 }
9927 }
9928 },
9929 "leaf" : 1,
9930 "path" : "/nodes/{node}/apt/versions",
9931 "text" : "versions"
9932 }
9933 ],
9934 "info" : {
9935 "GET" : {
9936 "description" : "Directory index for apt (Advanced Package Tool).",
9937 "method" : "GET",
9938 "name" : "index",
9939 "parameters" : {
9940 "additionalProperties" : 0,
9941 "properties" : {
9942 "node" : {
9943 "description" : "The cluster node name.",
9944 "format" : "pve-node",
9945 "type" : "string",
9946 "typetext" : "<string>"
9947 }
9948 }
9949 },
9950 "permissions" : {
9951 "user" : "all"
9952 },
9953 "returns" : {
9954 "items" : {
9955 "properties" : {
9956 "id" : {
9957 "type" : "string"
9958 }
9959 },
9960 "type" : "object"
9961 },
9962 "links" : [
9963 {
9964 "href" : "{id}",
9965 "rel" : "child"
9966 }
9967 ],
9968 "type" : "array"
9969 }
9970 }
9971 },
9972 "leaf" : 0,
9973 "path" : "/nodes/{node}/apt",
9974 "text" : "apt"
9975 },
9976 {
9977 "children" : [
9978 {
9979 "info" : {
9980 "GET" : {
9981 "description" : "Get the detailed syslog entries for a specific mail ID.",
9982 "method" : "GET",
9983 "name" : "maillog",
9984 "parameters" : {
9985 "additionalProperties" : 0,
9986 "properties" : {
9987 "endtime" : {
9988 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
9989 "minimum" : 1,
9990 "optional" : 1,
9991 "type" : "integer",
9992 "typetext" : "<integer> (1 - N)"
9993 },
9994 "id" : {
9995 "description" : "Mail ID (as returend by the list API).",
9996 "maxLength" : 64,
9997 "minLength" : 3,
9998 "type" : "string",
9999 "typetext" : "<string>"
10000 },
10001 "node" : {
10002 "description" : "The cluster node name.",
10003 "format" : "pve-node",
10004 "type" : "string",
10005 "typetext" : "<string>"
10006 },
10007 "starttime" : {
10008 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
10009 "minimum" : 0,
10010 "optional" : 1,
10011 "type" : "integer",
10012 "typetext" : "<integer> (0 - N)"
10013 }
10014 }
10015 },
732d76e1
DM
10016 "permissions" : {
10017 "check" : [
10018 "admin",
10019 "audit"
10020 ]
10021 },
9fda36b0
DM
10022 "protected" : 1,
10023 "proxyto" : "node",
10024 "returns" : {
10025 "properties" : {
10026 "client" : {
10027 "description" : "Client address",
10028 "optional" : 1,
10029 "type" : "string"
10030 },
10031 "dstatus" : {
10032 "description" : "Delivery status.",
10033 "maxLength" : 1,
10034 "minLength" : 1,
10035 "type" : "string"
10036 },
10037 "from" : {
10038 "description" : "Sender email address.",
10039 "type" : "string"
10040 },
10041 "id" : {
10042 "description" : "Unique ID.",
10043 "type" : "string"
10044 },
10045 "logs" : {
10046 "items" : {
10047 "type" : "string"
10048 },
10049 "type" : "array"
10050 },
10051 "msgid" : {
10052 "description" : "SMTP message ID.",
10053 "optional" : 1,
10054 "type" : "string"
10055 },
10056 "qid" : {
10057 "description" : "Postfix qmgr ID.",
10058 "optional" : 1,
10059 "type" : "string"
10060 },
10061 "relay" : {
10062 "description" : "ID of relayed mail.",
10063 "optional" : 1,
10064 "type" : "string"
10065 },
10066 "rstatus" : {
10067 "description" : "Delivery status of relayed mail.",
10068 "maxLength" : 1,
10069 "minLength" : 1,
10070 "optional" : 1,
10071 "type" : "string"
10072 },
10073 "size" : {
10074 "description" : "The size of the raw email.",
10075 "optional" : 1,
10076 "type" : "number"
10077 },
10078 "time" : {
10079 "description" : "Delivery timestamp.",
10080 "type" : "integer"
10081 },
10082 "to" : {
10083 "description" : "Receiver email address.",
10084 "type" : "string"
10085 }
10086 },
10087 "type" : "object"
10088 }
10089 }
10090 },
10091 "leaf" : 1,
10092 "path" : "/nodes/{node}/tracker/{id}",
10093 "text" : "{id}"
10094 }
10095 ],
10096 "info" : {
10097 "GET" : {
10098 "description" : "Read mail list.",
10099 "method" : "GET",
10100 "name" : "list_mails",
10101 "parameters" : {
10102 "additionalProperties" : 0,
10103 "properties" : {
10104 "endtime" : {
10105 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
10106 "minimum" : 1,
10107 "optional" : 1,
10108 "type" : "integer",
10109 "typetext" : "<integer> (1 - N)"
10110 },
10111 "from" : {
10112 "description" : "Sender email address filter.",
10113 "maxLength" : 256,
10114 "minLength" : 1,
10115 "optional" : 1,
10116 "type" : "string",
10117 "typetext" : "<string>"
10118 },
10119 "greylist" : {
10120 "default" : 0,
10121 "description" : "Include Greylisted entries.",
10122 "optional" : 1,
10123 "type" : "boolean",
10124 "typetext" : "<boolean>"
10125 },
10126 "ndr" : {
10127 "default" : 0,
10128 "description" : "Include NDRs (non delivery reports).",
10129 "optional" : 1,
10130 "type" : "boolean",
10131 "typetext" : "<boolean>"
10132 },
10133 "node" : {
10134 "description" : "The cluster node name.",
10135 "format" : "pve-node",
10136 "type" : "string",
10137 "typetext" : "<string>"
10138 },
10139 "starttime" : {
10140 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
10141 "minimum" : 0,
10142 "optional" : 1,
10143 "type" : "integer",
10144 "typetext" : "<integer> (0 - N)"
10145 },
10146 "target" : {
10147 "description" : "Receiver email address filter.",
10148 "maxLength" : 256,
10149 "minLength" : 1,
10150 "optional" : 1,
10151 "type" : "string",
10152 "typetext" : "<string>"
10153 },
10154 "xfilter" : {
10155 "description" : "Only include mails containing this filter string.",
10156 "maxLength" : 256,
10157 "minLength" : 1,
10158 "optional" : 1,
10159 "type" : "string",
10160 "typetext" : "<string>"
10161 }
10162 }
10163 },
732d76e1
DM
10164 "permissions" : {
10165 "check" : [
10166 "admin",
10167 "audit"
10168 ]
10169 },
9fda36b0
DM
10170 "protected" : 1,
10171 "proxyto" : "node",
10172 "returns" : {
10173 "items" : {
10174 "properties" : {
10175 "client" : {
10176 "description" : "Client address",
10177 "optional" : 1,
10178 "type" : "string"
10179 },
10180 "dstatus" : {
10181 "description" : "Delivery status.",
10182 "maxLength" : 1,
10183 "minLength" : 1,
10184 "type" : "string"
10185 },
10186 "from" : {
10187 "description" : "Sender email address.",
10188 "type" : "string"
10189 },
10190 "id" : {
10191 "description" : "Unique ID.",
10192 "type" : "string"
10193 },
10194 "msgid" : {
10195 "description" : "SMTP message ID.",
10196 "optional" : 1,
10197 "type" : "string"
10198 },
10199 "qid" : {
10200 "description" : "Postfix qmgr ID.",
10201 "optional" : 1,
10202 "type" : "string"
10203 },
10204 "relay" : {
10205 "description" : "ID of relayed mail.",
10206 "optional" : 1,
10207 "type" : "string"
10208 },
10209 "rstatus" : {
10210 "description" : "Delivery status of relayed mail.",
10211 "maxLength" : 1,
10212 "minLength" : 1,
10213 "optional" : 1,
10214 "type" : "string"
10215 },
10216 "size" : {
10217 "description" : "The size of the raw email.",
10218 "optional" : 1,
10219 "type" : "number"
10220 },
10221 "time" : {
10222 "description" : "Delivery timestamp.",
10223 "type" : "integer"
10224 },
10225 "to" : {
10226 "description" : "Receiver email address.",
10227 "type" : "string"
10228 }
10229 },
10230 "type" : "object"
10231 },
10232 "links" : [
10233 {
10234 "href" : "{id}",
10235 "rel" : "child"
10236 }
10237 ],
10238 "type" : "array"
10239 }
10240 }
10241 },
10242 "leaf" : 0,
10243 "path" : "/nodes/{node}/tracker",
10244 "text" : "tracker"
10245 },
10246 {
10247 "info" : {
10248 "GET" : {
10249 "description" : "Read node RRD statistics",
10250 "method" : "GET",
10251 "name" : "rrddata",
10252 "parameters" : {
10253 "additionalProperties" : 0,
10254 "properties" : {
10255 "cf" : {
10256 "description" : "The RRD consolidation function",
10257 "enum" : [
10258 "AVERAGE",
10259 "MAX"
10260 ],
10261 "optional" : 1,
10262 "type" : "string"
10263 },
10264 "node" : {
10265 "description" : "The cluster node name.",
10266 "format" : "pve-node",
10267 "type" : "string",
10268 "typetext" : "<string>"
10269 },
10270 "timeframe" : {
10271 "description" : "Specify the time frame you are interested in.",
10272 "enum" : [
10273 "hour",
10274 "day",
10275 "week",
10276 "month",
10277 "year"
10278 ],
10279 "type" : "string"
10280 }
10281 }
10282 },
732d76e1
DM
10283 "permissions" : {
10284 "check" : [
10285 "admin",
10286 "audit"
10287 ]
10288 },
9fda36b0
DM
10289 "protected" : 1,
10290 "proxyto" : "node",
10291 "returns" : {
10292 "items" : {
10293 "properties" : {},
10294 "type" : "object"
10295 },
10296 "type" : "array"
10297 }
10298 }
10299 },
10300 "leaf" : 1,
10301 "path" : "/nodes/{node}/rrddata",
10302 "text" : "rrddata"
10303 },
10304 {
10305 "info" : {
10306 "GET" : {
10307 "description" : "Read system log",
10308 "method" : "GET",
10309 "name" : "syslog",
10310 "parameters" : {
10311 "additionalProperties" : 0,
10312 "properties" : {
10313 "limit" : {
10314 "minimum" : 0,
10315 "optional" : 1,
10316 "type" : "integer",
10317 "typetext" : "<integer> (0 - N)"
10318 },
10319 "node" : {
10320 "description" : "The cluster node name.",
10321 "format" : "pve-node",
10322 "type" : "string",
10323 "typetext" : "<string>"
10324 },
10325 "service" : {
10326 "description" : "Service ID",
10327 "maxLength" : 128,
10328 "optional" : 1,
10329 "type" : "string",
10330 "typetext" : "<string>"
10331 },
10332 "since" : {
10333 "description" : "Display all log since this date-time string.",
10334 "optional" : 1,
10335 "pattern" : "^\\d{4}-\\d{2}-\\d{2}( \\d{2}:\\d{2}(:\\d{2})?)?$",
10336 "type" : "string"
10337 },
10338 "start" : {
10339 "minimum" : 0,
10340 "optional" : 1,
10341 "type" : "integer",
10342 "typetext" : "<integer> (0 - N)"
10343 },
10344 "until" : {
10345 "description" : "Display all log until this date-time string.",
10346 "optional" : 1,
10347 "pattern" : "^\\d{4}-\\d{2}-\\d{2}( \\d{2}:\\d{2}(:\\d{2})?)?$",
10348 "type" : "string"
10349 }
10350 }
10351 },
732d76e1
DM
10352 "permissions" : {
10353 "check" : [
10354 "admin",
10355 "audit"
10356 ]
10357 },
9fda36b0
DM
10358 "protected" : 1,
10359 "proxyto" : "node",
10360 "returns" : {
10361 "items" : {
10362 "properties" : {
10363 "n" : {
10364 "description" : "Line number",
10365 "type" : "integer"
10366 },
10367 "t" : {
10368 "description" : "Line text",
10369 "type" : "string"
10370 }
10371 },
10372 "type" : "object"
10373 },
10374 "type" : "array"
10375 }
10376 }
10377 },
10378 "leaf" : 1,
10379 "path" : "/nodes/{node}/syslog",
10380 "text" : "syslog"
10381 },
10382 {
10383 "info" : {
10384 "POST" : {
10385 "description" : "Creates a VNC Shell proxy.",
10386 "method" : "POST",
10387 "name" : "vncshell",
10388 "parameters" : {
10389 "additionalProperties" : 0,
10390 "properties" : {
10391 "node" : {
10392 "description" : "The cluster node name.",
10393 "format" : "pve-node",
10394 "type" : "string",
10395 "typetext" : "<string>"
10396 },
10397 "upgrade" : {
10398 "default" : 0,
10399 "description" : "Run 'apt-get dist-upgrade' instead of normal shell.",
10400 "optional" : 1,
10401 "type" : "boolean",
10402 "typetext" : "<boolean>"
10403 },
10404 "websocket" : {
10405 "default" : 1,
10406 "description" : "use websocket instead of standard vnc.",
10407 "optional" : 1,
10408 "type" : "boolean",
10409 "typetext" : "<boolean>"
10410 }
10411 }
10412 },
10413 "protected" : 1,
10414 "returns" : {
10415 "additionalProperties" : 0,
10416 "properties" : {
10417 "port" : {
10418 "type" : "integer"
10419 },
10420 "ticket" : {
10421 "type" : "string"
10422 },
10423 "upid" : {
10424 "type" : "string"
10425 },
10426 "user" : {
10427 "type" : "string"
10428 }
10429 }
10430 }
10431 }
10432 },
10433 "leaf" : 1,
10434 "path" : "/nodes/{node}/vncshell",
10435 "text" : "vncshell"
10436 },
10437 {
10438 "info" : {
10439 "GET" : {
10440 "description" : "Opens a weksocket for VNC traffic.",
10441 "method" : "GET",
10442 "name" : "vncwebsocket",
10443 "parameters" : {
10444 "additionalProperties" : 0,
10445 "properties" : {
10446 "node" : {
10447 "description" : "The cluster node name.",
10448 "format" : "pve-node",
10449 "type" : "string",
10450 "typetext" : "<string>"
10451 },
10452 "port" : {
10453 "description" : "Port number returned by previous vncproxy call.",
10454 "maximum" : 5999,
10455 "minimum" : 5900,
10456 "type" : "integer",
10457 "typetext" : "<integer> (5900 - 5999)"
10458 },
10459 "vncticket" : {
10460 "description" : "Ticket from previous call to vncproxy.",
10461 "maxLength" : 512,
10462 "type" : "string",
10463 "typetext" : "<string>"
10464 }
10465 }
10466 },
10467 "returns" : {
10468 "properties" : {
10469 "port" : {
10470 "type" : "string"
10471 }
10472 },
10473 "type" : "object"
10474 }
10475 }
10476 },
10477 "leaf" : 1,
10478 "path" : "/nodes/{node}/vncwebsocket",
10479 "text" : "vncwebsocket"
10480 },
10481 {
10482 "info" : {
10483 "GET" : {
10484 "description" : "Read DNS settings.",
10485 "method" : "GET",
10486 "name" : "dns",
10487 "parameters" : {
10488 "additionalProperties" : 0,
10489 "properties" : {
10490 "node" : {
10491 "description" : "The cluster node name.",
10492 "format" : "pve-node",
10493 "type" : "string",
10494 "typetext" : "<string>"
10495 }
10496 }
10497 },
732d76e1
DM
10498 "permissions" : {
10499 "check" : [
10500 "admin",
10501 "audit"
10502 ]
10503 },
9fda36b0
DM
10504 "proxyto" : "node",
10505 "returns" : {
10506 "additionalProperties" : 0,
10507 "properties" : {
10508 "dns1" : {
10509 "description" : "First name server IP address.",
10510 "optional" : 1,
10511 "type" : "string"
10512 },
10513 "dns2" : {
10514 "description" : "Second name server IP address.",
10515 "optional" : 1,
10516 "type" : "string"
10517 },
10518 "dns3" : {
10519 "description" : "Third name server IP address.",
10520 "optional" : 1,
10521 "type" : "string"
10522 },
10523 "search" : {
10524 "description" : "Search domain for host-name lookup.",
10525 "optional" : 1,
10526 "type" : "string"
10527 }
10528 },
10529 "type" : "object"
10530 }
10531 },
10532 "PUT" : {
10533 "description" : "Write DNS settings.",
10534 "method" : "PUT",
10535 "name" : "update_dns",
10536 "parameters" : {
10537 "additionalProperties" : 0,
10538 "properties" : {
10539 "dns1" : {
10540 "description" : "First name server IP address.",
10541 "format" : "ip",
10542 "optional" : 1,
10543 "type" : "string",
10544 "typetext" : "<string>"
10545 },
10546 "dns2" : {
10547 "description" : "Second name server IP address.",
10548 "format" : "ip",
10549 "optional" : 1,
10550 "type" : "string",
10551 "typetext" : "<string>"
10552 },
10553 "dns3" : {
10554 "description" : "Third name server IP address.",
10555 "format" : "ip",
10556 "optional" : 1,
10557 "type" : "string",
10558 "typetext" : "<string>"
10559 },
10560 "node" : {
10561 "description" : "The cluster node name.",
10562 "format" : "pve-node",
10563 "type" : "string",
10564 "typetext" : "<string>"
10565 },
10566 "search" : {
10567 "description" : "Search domain for host-name lookup.",
10568 "type" : "string",
10569 "typetext" : "<string>"
10570 }
10571 }
10572 },
10573 "protected" : 1,
10574 "proxyto" : "node",
10575 "returns" : {
10576 "type" : "null"
10577 }
10578 }
10579 },
10580 "leaf" : 1,
10581 "path" : "/nodes/{node}/dns",
10582 "text" : "dns"
10583 },
10584 {
10585 "info" : {
10586 "GET" : {
10587 "description" : "Read server time and time zone settings.",
10588 "method" : "GET",
10589 "name" : "time",
10590 "parameters" : {
10591 "additionalProperties" : 0,
10592 "properties" : {
10593 "node" : {
10594 "description" : "The cluster node name.",
10595 "format" : "pve-node",
10596 "type" : "string",
10597 "typetext" : "<string>"
10598 }
10599 }
10600 },
732d76e1
DM
10601 "permissions" : {
10602 "check" : [
10603 "admin",
10604 "audit"
10605 ]
10606 },
9fda36b0
DM
10607 "proxyto" : "node",
10608 "returns" : {
10609 "additionalProperties" : 0,
10610 "properties" : {
10611 "localtime" : {
10612 "description" : "Seconds since 1970-01-01 00:00:00 (local time)",
10613 "minimum" : 1297163644,
10614 "type" : "integer"
10615 },
10616 "time" : {
10617 "description" : "Seconds since 1970-01-01 00:00:00 UTC.",
10618 "minimum" : 1297163644,
10619 "type" : "integer"
10620 },
10621 "timezone" : {
10622 "description" : "Time zone",
10623 "type" : "string"
10624 }
10625 },
10626 "type" : "object"
10627 }
10628 },
10629 "PUT" : {
10630 "description" : "Set time zone.",
10631 "method" : "PUT",
10632 "name" : "set_timezone",
10633 "parameters" : {
10634 "additionalProperties" : 0,
10635 "properties" : {
10636 "node" : {
10637 "description" : "The cluster node name.",
10638 "format" : "pve-node",
10639 "type" : "string",
10640 "typetext" : "<string>"
10641 },
10642 "timezone" : {
10643 "description" : "Time zone. The file '/usr/share/zoneinfo/zone.tab' contains the list of valid names.",
10644 "type" : "string",
10645 "typetext" : "<string>"
10646 }
10647 }
10648 },
10649 "protected" : 1,
10650 "proxyto" : "node",
10651 "returns" : {
10652 "type" : "null"
10653 }
10654 }
10655 },
10656 "leaf" : 1,
10657 "path" : "/nodes/{node}/time",
10658 "text" : "time"
10659 },
10660 {
10661 "info" : {
10662 "GET" : {
10663 "description" : "Read server status. This is used by the cluster manager to test the node health.",
10664 "method" : "GET",
10665 "name" : "status",
10666 "parameters" : {
10667 "additionalProperties" : 0,
10668 "properties" : {
10669 "node" : {
10670 "description" : "The cluster node name.",
10671 "format" : "pve-node",
10672 "type" : "string",
10673 "typetext" : "<string>"
10674 }
10675 }
10676 },
10677 "protected" : 1,
10678 "proxyto" : "node",
10679 "returns" : {
10680 "additionalProperties" : 1,
10681 "properties" : {
10682 "insync" : {
10683 "description" : "Database is synced with other nodes.",
10684 "type" : "boolean"
10685 },
10686 "time" : {
10687 "description" : "Seconds since 1970-01-01 00:00:00 UTC.",
10688 "minimum" : 1297163644,
10689 "type" : "integer"
10690 },
10691 "uptime" : {
10692 "description" : "The uptime of the system in seconds.",
10693 "minimum" : 0,
10694 "type" : "integer"
10695 }
10696 },
10697 "type" : "object"
10698 }
10699 }
10700 },
10701 "leaf" : 1,
10702 "path" : "/nodes/{node}/status",
10703 "text" : "status"
10704 }
10705 ],
10706 "info" : {
10707 "GET" : {
10708 "description" : "Node index.",
10709 "method" : "GET",
10710 "name" : "index",
10711 "parameters" : {
10712 "additionalProperties" : 0,
10713 "properties" : {
10714 "node" : {
10715 "description" : "The cluster node name.",
10716 "format" : "pve-node",
10717 "type" : "string",
10718 "typetext" : "<string>"
10719 }
10720 }
10721 },
10722 "permissions" : {
10723 "user" : "all"
10724 },
10725 "returns" : {
10726 "items" : {
10727 "properties" : {},
10728 "type" : "object"
10729 },
10730 "links" : [
10731 {
10732 "href" : "{name}",
10733 "rel" : "child"
10734 }
10735 ],
10736 "type" : "array"
10737 }
10738 }
10739 },
10740 "leaf" : 0,
10741 "path" : "/nodes/{node}",
10742 "text" : "{node}"
10743 }
10744 ],
10745 "info" : {
10746 "GET" : {
10747 "description" : "Cluster node index.",
10748 "method" : "GET",
10749 "name" : "index",
10750 "parameters" : {
10751 "additionalProperties" : 0
10752 },
10753 "permissions" : {
10754 "user" : "all"
10755 },
10756 "returns" : {
10757 "items" : {
10758 "properties" : {},
10759 "type" : "object"
10760 },
10761 "links" : [
10762 {
10763 "href" : "{node}",
10764 "rel" : "child"
10765 }
10766 ],
10767 "type" : "array"
10768 }
10769 }
10770 },
10771 "leaf" : 0,
10772 "path" : "/nodes",
10773 "text" : "nodes"
10774 },
10775 {
10776 "children" : [
10777 {
10778 "children" : [
10779 {
10780 "info" : {
10781 "DELETE" : {
10782 "description" : "Delete a user.",
10783 "method" : "DELETE",
10784 "name" : "delete",
10785 "parameters" : {
10786 "additionalProperties" : 0,
10787 "properties" : {
10788 "userid" : {
10789 "description" : "User ID",
10790 "format" : "pmg-userid",
10791 "maxLength" : 64,
10792 "minLength" : 4,
10793 "type" : "string",
10794 "typetext" : "<string>"
10795 }
10796 }
10797 },
10798 "protected" : 1,
10799 "proxyto" : "master",
10800 "returns" : {
10801 "type" : "null"
10802 }
10803 },
10804 "GET" : {
10805 "description" : "Read User data.",
10806 "method" : "GET",
10807 "name" : "read",
10808 "parameters" : {
10809 "additionalProperties" : 0,
10810 "properties" : {
10811 "userid" : {
10812 "description" : "User ID",
10813 "format" : "pmg-userid",
10814 "maxLength" : 64,
10815 "minLength" : 4,
10816 "type" : "string",
10817 "typetext" : "<string>"
10818 }
10819 }
10820 },
10821 "protected" : 1,
10822 "proxyto" : "master",
10823 "returns" : {
10824 "properties" : {},
10825 "type" : "object"
10826 }
10827 },
10828 "PUT" : {
10829 "description" : "Update user data.",
10830 "method" : "PUT",
10831 "name" : "write",
10832 "parameters" : {
10833 "additionalProperties" : 0,
10834 "properties" : {
10835 "comment" : {
10836 "description" : "Comment.",
10837 "optional" : 1,
10838 "type" : "string",
10839 "typetext" : "<string>"
10840 },
10841 "crypt_pass" : {
10842 "description" : "Encrypted password (see `man crypt`)",
10843 "optional" : 1,
10844 "pattern" : "\\$\\d\\$[a-zA-Z0-9\\.\\/]+\\$[a-zA-Z0-9\\.\\/]+",
10845 "type" : "string"
10846 },
10847 "delete" : {
10848 "description" : "A list of settings you want to delete.",
10849 "format" : "pve-configid-list",
10850 "maxLength" : 4096,
10851 "optional" : 1,
10852 "type" : "string",
10853 "typetext" : "<string>"
10854 },
10855 "email" : {
10856 "description" : "Users E-Mail address.",
10857 "format" : "email",
10858 "optional" : 1,
10859 "type" : "string",
10860 "typetext" : "<string>"
10861 },
10862 "enable" : {
10863 "default" : 0,
10864 "description" : "Flag to enable or disable the account.",
10865 "optional" : 1,
10866 "type" : "boolean",
10867 "typetext" : "<boolean>"
10868 },
10869 "expire" : {
10870 "default" : 0,
10871 "description" : "Account expiration date (seconds since epoch). '0' means no expiration date.",
10872 "minimum" : 0,
10873 "optional" : 1,
10874 "type" : "integer",
10875 "typetext" : "<integer> (0 - N)"
10876 },
10877 "firstname" : {
10878 "description" : "First name.",
10879 "maxLength" : 64,
10880 "optional" : 1,
10881 "type" : "string",
10882 "typetext" : "<string>"
10883 },
10884 "keys" : {
10885 "description" : "Keys for two factor auth (yubico).",
10886 "maxLength" : 128,
10887 "optional" : 1,
10888 "type" : "string",
10889 "typetext" : "<string>"
10890 },
10891 "lastname" : {
10892 "description" : "Last name.",
10893 "maxLength" : 64,
10894 "optional" : 1,
10895 "type" : "string",
10896 "typetext" : "<string>"
10897 },
10898 "password" : {
10899 "description" : "Password",
10900 "maxLength" : 32,
10901 "minLength" : 5,
10902 "optional" : 1,
10903 "type" : "string",
10904 "typetext" : "<string>"
10905 },
10906 "role" : {
10907 "description" : "User role. Role 'root' is reseved for the Unix Superuser.",
10908 "enum" : [
10909 "root",
10910 "admin",
10911 "qmanager",
10912 "audit"
10913 ],
10914 "optional" : 1,
10915 "type" : "string"
10916 },
10917 "userid" : {
10918 "description" : "User ID",
10919 "format" : "pmg-userid",
10920 "maxLength" : 64,
10921 "minLength" : 4,
10922 "type" : "string",
10923 "typetext" : "<string>"
10924 }
10925 }
10926 },
10927 "protected" : 1,
10928 "proxyto" : "master",
10929 "returns" : {
10930 "type" : "null"
10931 }
10932 }
10933 },
10934 "leaf" : 1,
10935 "path" : "/access/users/{userid}",
10936 "text" : "{userid}"
10937 }
10938 ],
10939 "info" : {
10940 "GET" : {
10941 "description" : "List users.",
10942 "method" : "GET",
10943 "name" : "index",
10944 "parameters" : {
10945 "additionalProperties" : 0
10946 },
10947 "permissions" : {
10948 "check" : [
10949 "admin"
10950 ]
10951 },
10952 "protected" : 1,
10953 "proxyto" : "master",
10954 "returns" : {
10955 "items" : {
10956 "properties" : {
10957 "comment" : {
10958 "optional" : 1,
10959 "type" : "string"
10960 },
10961 "enable" : {
10962 "type" : "boolean"
10963 },
10964 "role" : {
10965 "type" : "string"
10966 },
10967 "userid" : {
10968 "type" : "string"
10969 }
10970 },
10971 "type" : "object"
10972 },
10973 "links" : [
10974 {
10975 "href" : "{userid}",
10976 "rel" : "child"
10977 }
10978 ],
10979 "type" : "array"
10980 }
10981 },
10982 "POST" : {
10983 "description" : "Creat new user",
10984 "method" : "POST",
10985 "name" : "create",
10986 "parameters" : {
10987 "additionalProperties" : 0,
10988 "properties" : {
10989 "comment" : {
10990 "description" : "Comment.",
10991 "optional" : 1,
10992 "type" : "string",
10993 "typetext" : "<string>"
10994 },
10995 "crypt_pass" : {
10996 "description" : "Encrypted password (see `man crypt`)",
10997 "optional" : 1,
10998 "pattern" : "\\$\\d\\$[a-zA-Z0-9\\.\\/]+\\$[a-zA-Z0-9\\.\\/]+",
10999 "type" : "string"
11000 },
11001 "email" : {
11002 "description" : "Users E-Mail address.",
11003 "format" : "email",
11004 "optional" : 1,
11005 "type" : "string",
11006 "typetext" : "<string>"
11007 },
11008 "enable" : {
11009 "default" : 0,
11010 "description" : "Flag to enable or disable the account.",
11011 "optional" : 1,
11012 "type" : "boolean",
11013 "typetext" : "<boolean>"
11014 },
11015 "expire" : {
11016 "default" : 0,
11017 "description" : "Account expiration date (seconds since epoch). '0' means no expiration date.",
11018 "minimum" : 0,
11019 "optional" : 1,
11020 "type" : "integer",
11021 "typetext" : "<integer> (0 - N)"
11022 },
11023 "firstname" : {
11024 "description" : "First name.",
11025 "maxLength" : 64,
11026 "optional" : 1,
11027 "type" : "string",
11028 "typetext" : "<string>"
a55e94a6 11029 },
9fda36b0
DM
11030 "keys" : {
11031 "description" : "Keys for two factor auth (yubico).",
11032 "maxLength" : 128,
11033 "optional" : 1,
11034 "type" : "string",
11035 "typetext" : "<string>"
11036 },
11037 "lastname" : {
11038 "description" : "Last name.",
11039 "maxLength" : 64,
11040 "optional" : 1,
11041 "type" : "string",
11042 "typetext" : "<string>"
11043 },
11044 "password" : {
11045 "description" : "Password",
11046 "maxLength" : 32,
11047 "minLength" : 5,
11048 "optional" : 1,
11049 "type" : "string",
11050 "typetext" : "<string>"
11051 },
11052 "role" : {
11053 "description" : "User role. Role 'root' is reseved for the Unix Superuser.",
11054 "enum" : [
11055 "root",
11056 "admin",
11057 "qmanager",
11058 "audit"
a55e94a6 11059 ],
9fda36b0
DM
11060 "type" : "string"
11061 },
11062 "userid" : {
11063 "description" : "User ID",
11064 "format" : "pmg-userid",
11065 "maxLength" : 64,
11066 "minLength" : 4,
11067 "type" : "string",
11068 "typetext" : "<string>"
a55e94a6
DM
11069 }
11070 }
11071 },
9fda36b0
DM
11072 "protected" : 1,
11073 "proxyto" : "master",
11074 "returns" : {
11075 "type" : "null"
11076 }
11077 }
11078 },
11079 "leaf" : 0,
11080 "path" : "/access/users",
11081 "text" : "users"
11082 },
11083 {
11084 "info" : {
11085 "GET" : {
11086 "description" : "Dummy. Useful for formaters which want to priovde a login page.",
11087 "method" : "GET",
11088 "name" : "get_ticket",
11089 "parameters" : {
11090 "additionalProperties" : 0
11091 },
11092 "permissions" : {
11093 "user" : "world"
11094 },
11095 "returns" : {
11096 "type" : "null"
11097 }
a55e94a6 11098 },
9fda36b0
DM
11099 "POST" : {
11100 "description" : "Create or verify authentication ticket.",
11101 "method" : "POST",
11102 "name" : "create_ticket",
11103 "parameters" : {
11104 "additionalProperties" : 0,
11105 "properties" : {
11106 "otp" : {
11107 "description" : "One-time password for Two-factor authentication.",
11108 "optional" : 1,
11109 "type" : "string",
11110 "typetext" : "<string>"
410dc2c9 11111 },
9fda36b0
DM
11112 "password" : {
11113 "description" : "The secret password. This can also be a valid ticket.",
11114 "type" : "string",
11115 "typetext" : "<string>"
11116 },
11117 "realm" : {
11118 "description" : "You can optionally pass the realm using this parameter. Normally the realm is simply added to the username <username>@<relam>.",
732d76e1
DM
11119 "enum" : [
11120 "pam",
11121 "pmg",
11122 "quarantine"
11123 ],
9fda36b0
DM
11124 "maxLength" : 32,
11125 "optional" : 1,
732d76e1 11126 "type" : "string"
9fda36b0
DM
11127 },
11128 "username" : {
11129 "description" : "User name",
11130 "maxLength" : 64,
11131 "type" : "string",
11132 "typetext" : "<string>"
11133 }
11134 }
11135 },
11136 "permissions" : {
11137 "description" : "You need to pass valid credientials.",
11138 "user" : "world"
11139 },
11140 "protected" : 1,
11141 "returns" : {
11142 "properties" : {
11143 "CSRFPreventionToken" : {
11144 "optional" : 1,
11145 "type" : "string"
11146 },
11147 "role" : {
11148 "optional" : 1,
11149 "type" : "string"
11150 },
11151 "ticket" : {
11152 "optional" : 1,
11153 "type" : "string"
11154 },
11155 "username" : {
11156 "type" : "string"
11157 }
11158 },
11159 "type" : "object"
11160 }
11161 }
11162 },
11163 "leaf" : 1,
11164 "path" : "/access/ticket",
11165 "text" : "ticket"
11166 },
11167 {
11168 "info" : {
11169 "PUT" : {
11170 "description" : "Change user password.",
11171 "method" : "PUT",
11172 "name" : "change_passsword",
11173 "parameters" : {
11174 "additionalProperties" : 0,
11175 "properties" : {
11176 "password" : {
11177 "description" : "The new password.",
11178 "maxLength" : 64,
11179 "minLength" : 5,
11180 "type" : "string",
11181 "typetext" : "<string>"
11182 },
11183 "userid" : {
11184 "description" : "User ID",
11185 "format" : "pmg-userid",
11186 "maxLength" : 64,
11187 "minLength" : 4,
11188 "type" : "string",
11189 "typetext" : "<string>"
410dc2c9
DM
11190 }
11191 }
11192 },
9fda36b0
DM
11193 "permissions" : {
11194 "description" : "Each user is allowed to change his own password. Only root can change the password of another user.",
11195 "user" : "all"
11196 },
11197 "protected" : 1,
11198 "returns" : {
11199 "type" : "null"
11200 }
11201 }
11202 },
11203 "leaf" : 1,
11204 "path" : "/access/password",
11205 "text" : "password"
11206 }
11207 ],
11208 "info" : {
11209 "GET" : {
11210 "description" : "Directory index.",
11211 "method" : "GET",
11212 "name" : "index",
11213 "parameters" : {
11214 "additionalProperties" : 0
11215 },
11216 "permissions" : {
11217 "user" : "all"
11218 },
11219 "returns" : {
11220 "items" : {
11221 "properties" : {
11222 "subdir" : {
11223 "type" : "string"
11224 }
11225 },
11226 "type" : "object"
410dc2c9 11227 },
9fda36b0
DM
11228 "links" : [
11229 {
11230 "href" : "{subdir}",
11231 "rel" : "child"
11232 }
11233 ],
11234 "type" : "array"
11235 }
11236 }
11237 },
11238 "leaf" : 0,
11239 "path" : "/access",
11240 "text" : "access"
11241 },
11242 {
11243 "children" : [
11244 {
11245 "children" : [
410dc2c9
DM
11246 {
11247 "info" : {
9fda36b0
DM
11248 "DELETE" : {
11249 "description" : "Delete user whitelist entries.",
11250 "method" : "DELETE",
11251 "name" : "whitelist_delete",
410dc2c9
DM
11252 "parameters" : {
11253 "additionalProperties" : 0,
11254 "properties" : {
9fda36b0
DM
11255 "address" : {
11256 "description" : "The address you want to remove.",
11257 "maxLength" : 512,
11258 "minLength" : 3,
11259 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
11260 "type" : "string"
410dc2c9 11261 },
9fda36b0
DM
11262 "pmail" : {
11263 "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.",
11264 "format" : "email",
d7cd791b
DM
11265 "optional" : 1,
11266 "type" : "string",
11267 "typetext" : "<string>"
410dc2c9
DM
11268 }
11269 }
11270 },
9fda36b0
DM
11271 "permissions" : {
11272 "check" : [
11273 "admin",
11274 "qmanager",
11275 "audit",
11276 "quser"
11277 ]
11278 },
410dc2c9 11279 "protected" : 1,
410dc2c9 11280 "returns" : {
9fda36b0 11281 "type" : "null"
410dc2c9
DM
11282 }
11283 }
11284 },
11285 "leaf" : 1,
9fda36b0
DM
11286 "path" : "/quarantine/whitelist/{address}",
11287 "text" : "{address}"
11288 }
11289 ],
11290 "info" : {
11291 "GET" : {
11292 "description" : "Show user whitelist.",
11293 "method" : "GET",
11294 "name" : "whitelist",
11295 "parameters" : {
11296 "additionalProperties" : 0,
11297 "properties" : {
11298 "pmail" : {
11299 "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.",
11300 "format" : "email",
11301 "optional" : 1,
11302 "type" : "string",
11303 "typetext" : "<string>"
11304 }
11305 }
11306 },
11307 "permissions" : {
11308 "check" : [
11309 "admin",
11310 "qmanager",
11311 "audit",
11312 "quser"
11313 ]
11314 },
11315 "returns" : {
11316 "items" : {
11317 "properties" : {
11318 "address" : {
11319 "type" : "string"
410dc2c9
DM
11320 }
11321 },
9fda36b0
DM
11322 "type" : "object"
11323 },
11324 "type" : "array"
11325 }
11326 },
11327 "POST" : {
11328 "description" : "Add user whitelist entries.",
11329 "method" : "POST",
11330 "name" : "whitelist_add",
11331 "parameters" : {
11332 "additionalProperties" : 0,
11333 "properties" : {
11334 "address" : {
11335 "description" : "The address you want to add.",
11336 "maxLength" : 512,
11337 "minLength" : 3,
11338 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
11339 "type" : "string"
11340 },
11341 "pmail" : {
11342 "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.",
11343 "format" : "email",
11344 "optional" : 1,
11345 "type" : "string",
11346 "typetext" : "<string>"
410dc2c9
DM
11347 }
11348 }
11349 },
9fda36b0
DM
11350 "permissions" : {
11351 "check" : [
11352 "admin",
11353 "qmanager",
11354 "audit",
11355 "quser"
11356 ]
11357 },
11358 "protected" : 1,
11359 "returns" : {
11360 "type" : "null"
11361 }
11362 }
11363 },
11364 "leaf" : 0,
11365 "path" : "/quarantine/whitelist",
11366 "text" : "whitelist"
11367 },
11368 {
11369 "children" : [
11370 {
11371 "info" : {
11372 "DELETE" : {
11373 "description" : "Delete user blacklist entries.",
11374 "method" : "DELETE",
11375 "name" : "blacklist_delete",
11376 "parameters" : {
11377 "additionalProperties" : 0,
11378 "properties" : {
11379 "address" : {
11380 "description" : "The address you want to remove.",
410dc2c9 11381 "maxLength" : 512,
9fda36b0
DM
11382 "minLength" : 3,
11383 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
11384 "type" : "string"
11385 },
11386 "pmail" : {
11387 "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.",
11388 "format" : "email",
11389 "optional" : 1,
410dc2c9
DM
11390 "type" : "string",
11391 "typetext" : "<string>"
11392 }
11393 }
11394 },
9fda36b0
DM
11395 "permissions" : {
11396 "check" : [
11397 "admin",
11398 "qmanager",
11399 "audit",
11400 "quser"
11401 ]
11402 },
11403 "protected" : 1,
410dc2c9 11404 "returns" : {
9fda36b0 11405 "type" : "null"
410dc2c9
DM
11406 }
11407 }
11408 },
11409 "leaf" : 1,
9fda36b0
DM
11410 "path" : "/quarantine/blacklist/{address}",
11411 "text" : "{address}"
11412 }
11413 ],
11414 "info" : {
11415 "GET" : {
11416 "description" : "Show user blacklist.",
11417 "method" : "GET",
11418 "name" : "blacklist",
11419 "parameters" : {
11420 "additionalProperties" : 0,
11421 "properties" : {
11422 "pmail" : {
11423 "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.",
11424 "format" : "email",
11425 "optional" : 1,
11426 "type" : "string",
11427 "typetext" : "<string>"
11428 }
11429 }
11430 },
11431 "permissions" : {
11432 "check" : [
11433 "admin",
11434 "qmanager",
11435 "audit",
11436 "quser"
11437 ]
11438 },
11439 "returns" : {
11440 "items" : {
11441 "properties" : {
11442 "address" : {
11443 "type" : "string"
410dc2c9
DM
11444 }
11445 },
9fda36b0
DM
11446 "type" : "object"
11447 },
11448 "type" : "array"
11449 }
11450 },
11451 "POST" : {
11452 "description" : "Add user blacklist entries.",
11453 "method" : "POST",
11454 "name" : "blacklist_add",
11455 "parameters" : {
11456 "additionalProperties" : 0,
11457 "properties" : {
11458 "address" : {
11459 "description" : "The address you want to add.",
11460 "maxLength" : 512,
11461 "minLength" : 3,
11462 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
11463 "type" : "string"
11464 },
11465 "pmail" : {
11466 "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.",
11467 "format" : "email",
11468 "optional" : 1,
11469 "type" : "string",
11470 "typetext" : "<string>"
11471 }
11472 }
11473 },
11474 "permissions" : {
11475 "check" : [
11476 "admin",
11477 "qmanager",
11478 "audit",
11479 "quser"
11480 ]
11481 },
11482 "protected" : 1,
11483 "returns" : {
11484 "type" : "null"
11485 }
11486 }
11487 },
11488 "leaf" : 0,
11489 "path" : "/quarantine/blacklist",
11490 "text" : "blacklist"
11491 },
11492 {
11493 "info" : {
11494 "GET" : {
11495 "description" : "Get a list of receivers of spam in the given timespan (Default the last 24 hours).",
11496 "method" : "GET",
11497 "name" : "spamusers",
11498 "parameters" : {
11499 "additionalProperties" : 0,
11500 "properties" : {
11501 "endtime" : {
11502 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
11503 "minimum" : 1,
11504 "optional" : 1,
11505 "type" : "integer",
11506 "typetext" : "<integer> (1 - N)"
11507 },
11508 "starttime" : {
11509 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
11510 "minimum" : 0,
11511 "optional" : 1,
11512 "type" : "integer",
11513 "typetext" : "<integer> (0 - N)"
410dc2c9 11514 }
9fda36b0
DM
11515 }
11516 },
11517 "permissions" : {
11518 "check" : [
11519 "admin",
11520 "qmanager",
11521 "audit"
11522 ]
11523 },
11524 "returns" : {
11525 "items" : {
11526 "properties" : {
11527 "mail" : {
11528 "description" : "the receiving email",
11529 "type" : "string"
11530 }
11531 },
11532 "type" : "object"
410dc2c9 11533 },
9fda36b0
DM
11534 "type" : "array"
11535 }
11536 }
11537 },
11538 "leaf" : 1,
11539 "path" : "/quarantine/spamusers",
11540 "text" : "spamusers"
11541 },
11542 {
11543 "info" : {
11544 "GET" : {
11545 "description" : "Get Spam Quarantine Status",
11546 "method" : "GET",
11547 "name" : "spamstatus",
11548 "parameters" : {
11549 "additionalProperties" : 0
11550 },
11551 "permissions" : {
11552 "check" : [
11553 "admin",
11554 "qmanager",
11555 "audit"
11556 ]
11557 },
11558 "returns" : {
11559 "properties" : {
11560 "avgbytes" : {
11561 "description" : "Average size of stored mails in bytes.",
11562 "type" : "number"
11563 },
11564 "avgspam" : {
11565 "description" : "Average spam level.",
11566 "type" : "number"
11567 },
11568 "count" : {
11569 "description" : "Number of stored mails.",
11570 "type" : "integer"
11571 },
11572 "mbytes" : {
11573 "description" : "Estimated disk space usage in MByte.",
11574 "type" : "number"
11575 }
11576 },
11577 "type" : "object"
11578 }
11579 }
11580 },
11581 "leaf" : 1,
11582 "path" : "/quarantine/spamstatus",
11583 "text" : "spamstatus"
11584 },
11585 {
11586 "info" : {
11587 "GET" : {
11588 "description" : "Get a list of users with whitelist/blacklist setttings.",
11589 "method" : "GET",
11590 "name" : "quarusers",
11591 "parameters" : {
11592 "additionalProperties" : 0
11593 },
11594 "permissions" : {
11595 "check" : [
11596 "admin",
11597 "qmanager",
11598 "audit"
11599 ]
11600 },
11601 "returns" : {
11602 "items" : {
11603 "properties" : {
11604 "mail" : {
11605 "description" : "the receiving email",
11606 "type" : "string"
410dc2c9
DM
11607 }
11608 },
9fda36b0
DM
11609 "type" : "object"
11610 },
11611 "type" : "array"
11612 }
11613 }
11614 },
11615 "leaf" : 1,
11616 "path" : "/quarantine/quarusers",
11617 "text" : "quarusers"
11618 },
11619 {
11620 "info" : {
11621 "GET" : {
11622 "description" : "Get a list of quarantined spam mails in the given timeframe (default the last 24 hours) for the given user.",
11623 "method" : "GET",
11624 "name" : "spam",
11625 "parameters" : {
11626 "additionalProperties" : 0,
11627 "properties" : {
11628 "endtime" : {
11629 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
11630 "minimum" : 1,
11631 "optional" : 1,
11632 "type" : "integer",
11633 "typetext" : "<integer> (1 - N)"
11634 },
11635 "pmail" : {
11636 "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.",
11637 "format" : "email",
11638 "optional" : 1,
11639 "type" : "string",
11640 "typetext" : "<string>"
11641 },
11642 "starttime" : {
11643 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
11644 "minimum" : 0,
11645 "optional" : 1,
11646 "type" : "integer",
11647 "typetext" : "<integer> (0 - N)"
410dc2c9
DM
11648 }
11649 }
11650 },
9fda36b0
DM
11651 "permissions" : {
11652 "check" : [
11653 "admin",
11654 "qmanager",
11655 "audit",
11656 "quser"
11657 ]
11658 },
11659 "returns" : {
11660 "items" : {
11661 "properties" : {
11662 "bytes" : {
11663 "description" : "Size of raw email.",
11664 "type" : "integer"
11665 },
11666 "envelope_sender" : {
11667 "description" : "SMTP envelope sender.",
11668 "type" : "string"
11669 },
11670 "from" : {
11671 "description" : "Header 'From' field.",
11672 "type" : "string"
11673 },
11674 "id" : {
11675 "description" : "Unique ID",
11676 "type" : "string"
11677 },
11678 "receiver" : {
11679 "description" : "Receiver email address",
11680 "type" : "string"
11681 },
11682 "sender" : {
11683 "description" : "Header 'Sender' field.",
11684 "optional" : 1,
11685 "type" : "string"
11686 },
11687 "spamlevel" : {
11688 "description" : "Spam score.",
11689 "type" : "number"
11690 },
11691 "subject" : {
11692 "description" : "Header 'Subject' field.",
11693 "type" : "string"
11694 },
11695 "time" : {
11696 "description" : "Receive time stamp",
11697 "type" : "integer"
410dc2c9
DM
11698 }
11699 },
9fda36b0 11700 "type" : "object"
410dc2c9 11701 },
9fda36b0
DM
11702 "type" : "array"
11703 }
11704 }
11705 },
11706 "leaf" : 1,
11707 "path" : "/quarantine/spam",
11708 "text" : "spam"
11709 },
11710 {
11711 "info" : {
11712 "GET" : {
11713 "description" : "Get a list of quarantined virus mails in the given timeframe (default the last 24 hours).",
11714 "method" : "GET",
11715 "name" : "virus",
11716 "parameters" : {
11717 "additionalProperties" : 0,
11718 "properties" : {
11719 "endtime" : {
11720 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
11721 "minimum" : 1,
11722 "optional" : 1,
11723 "type" : "integer",
11724 "typetext" : "<integer> (1 - N)"
410dc2c9 11725 },
9fda36b0
DM
11726 "starttime" : {
11727 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
11728 "minimum" : 0,
11729 "optional" : 1,
11730 "type" : "integer",
11731 "typetext" : "<integer> (0 - N)"
410dc2c9
DM
11732 }
11733 }
11734 },
9fda36b0
DM
11735 "permissions" : {
11736 "check" : [
11737 "admin",
11738 "qmanager",
11739 "audit"
11740 ]
11741 },
11742 "returns" : {
11743 "items" : {
11744 "properties" : {
11745 "bytes" : {
11746 "description" : "Size of raw email.",
11747 "type" : "integer"
11748 },
11749 "envelope_sender" : {
11750 "description" : "SMTP envelope sender.",
11751 "type" : "string"
11752 },
11753 "from" : {
11754 "description" : "Header 'From' field.",
11755 "type" : "string"
11756 },
11757 "id" : {
11758 "description" : "Unique ID",
11759 "type" : "string"
11760 },
11761 "receiver" : {
11762 "description" : "Receiver email address",
11763 "type" : "string"
11764 },
11765 "sender" : {
11766 "description" : "Header 'Sender' field.",
11767 "optional" : 1,
11768 "type" : "string"
11769 },
11770 "subject" : {
11771 "description" : "Header 'Subject' field.",
11772 "type" : "string"
11773 },
11774 "time" : {
11775 "description" : "Receive time stamp",
11776 "type" : "integer"
11777 },
11778 "virusname" : {
11779 "description" : "Virus name.",
11780 "type" : "string"
d7cd791b
DM
11781 }
11782 },
9fda36b0
DM
11783 "type" : "object"
11784 },
11785 "type" : "array"
11786 }
11787 }
11788 },
11789 "leaf" : 1,
11790 "path" : "/quarantine/virus",
11791 "text" : "virus"
11792 },
11793 {
11794 "info" : {
11795 "GET" : {
11796 "description" : "Get Virus Quarantine Status",
11797 "method" : "GET",
11798 "name" : "virusstatus",
11799 "parameters" : {
11800 "additionalProperties" : 0
11801 },
11802 "permissions" : {
11803 "check" : [
11804 "admin",
11805 "qmanager",
11806 "audit"
11807 ]
11808 },
11809 "returns" : {
11810 "properties" : {
11811 "avgbytes" : {
11812 "description" : "Average size of stored mails in bytes.",
11813 "type" : "number"
11814 },
11815 "count" : {
11816 "description" : "Number of stored mails.",
11817 "type" : "integer"
11818 },
11819 "mbytes" : {
11820 "description" : "Estimated disk space usage in MByte.",
11821 "type" : "number"
d7cd791b 11822 }
9fda36b0
DM
11823 },
11824 "type" : "object"
11825 }
d7cd791b 11826 }
9fda36b0
DM
11827 },
11828 "leaf" : 1,
11829 "path" : "/quarantine/virusstatus",
11830 "text" : "virusstatus"
11831 },
11832 {
d7cd791b
DM
11833 "info" : {
11834 "GET" : {
9fda36b0 11835 "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 11836 "method" : "GET",
9fda36b0 11837 "name" : "content",
d7cd791b
DM
11838 "parameters" : {
11839 "additionalProperties" : 0,
11840 "properties" : {
9fda36b0
DM
11841 "id" : {
11842 "description" : "Unique ID",
11843 "maxLength" : 40,
11844 "pattern" : "C\\d+R\\d+",
11845 "type" : "string"
11846 },
11847 "raw" : {
11848 "default" : 0,
11849 "description" : "Display 'raw' eml data. This is only used with the 'htmlmail' formatter.",
11850 "optional" : 1,
11851 "type" : "boolean",
11852 "typetext" : "<boolean>"
d7cd791b
DM
11853 }
11854 }
11855 },
11856 "permissions" : {
9fda36b0
DM
11857 "check" : [
11858 "admin",
11859 "qmanager",
11860 "audit",
11861 "quser"
11862 ]
d7cd791b
DM
11863 },
11864 "returns" : {
9fda36b0
DM
11865 "properties" : {
11866 "bytes" : {
11867 "description" : "Size of raw email.",
11868 "type" : "integer"
11869 },
11870 "content" : {
11871 "description" : "Raw email data (first 4096 bytes). Useful for preview. NOTE: The 'htmlmail' formatter displays the whole email.",
11872 "type" : "string"
11873 },
11874 "envelope_sender" : {
11875 "description" : "SMTP envelope sender.",
11876 "type" : "string"
11877 },
11878 "from" : {
11879 "description" : "Header 'From' field.",
11880 "type" : "string"
11881 },
11882 "header" : {
11883 "description" : "Raw email header data.",
11884 "type" : "string"
11885 },
11886 "id" : {
11887 "description" : "Unique ID",
11888 "type" : "string"
11889 },
11890 "receiver" : {
11891 "description" : "Receiver email address",
11892 "type" : "string"
11893 },
11894 "sender" : {
11895 "description" : "Header 'Sender' field.",
11896 "optional" : 1,
11897 "type" : "string"
11898 },
11899 "spaminfo" : {
11900 "description" : "Information about matched spam tests (name, score, desc, url).",
11901 "type" : "array"
11902 },
11903 "spamlevel" : {
11904 "description" : "Spam score.",
11905 "type" : "number"
11906 },
11907 "subject" : {
11908 "description" : "Header 'Subject' field.",
11909 "type" : "string"
11910 },
11911 "time" : {
11912 "description" : "Receive time stamp",
11913 "type" : "integer"
11914 }
d7cd791b 11915 },
9fda36b0
DM
11916 "type" : "object"
11917 }
11918 },
11919 "POST" : {
11920 "description" : "Execute quarantine actions.",
11921 "method" : "POST",
11922 "name" : "action",
11923 "parameters" : {
11924 "additionalProperties" : 0,
11925 "properties" : {
11926 "action" : {
11927 "description" : "Action - specify what you want to do with the mail.",
11928 "enum" : [
11929 "whitelist",
11930 "blacklist",
11931 "deliver",
11932 "delete"
11933 ],
11934 "type" : "string"
11935 },
11936 "id" : {
11937 "description" : "Unique ID",
11938 "maxLength" : 40,
11939 "pattern" : "C\\d+R\\d+",
11940 "type" : "string"
410dc2c9 11941 }
9fda36b0
DM
11942 }
11943 },
11944 "permissions" : {
11945 "check" : [
11946 "admin",
11947 "qmanager",
11948 "quser"
11949 ]
11950 },
11951 "protected" : 1,
11952 "returns" : {
11953 "type" : "null"
410dc2c9
DM
11954 }
11955 }
11956 },
9fda36b0
DM
11957 "leaf" : 1,
11958 "path" : "/quarantine/content",
11959 "text" : "content"
410dc2c9
DM
11960 }
11961 ],
11962 "info" : {
11963 "GET" : {
9fda36b0 11964 "description" : "Directory index.",
410dc2c9
DM
11965 "method" : "GET",
11966 "name" : "index",
11967 "parameters" : {
11968 "additionalProperties" : 0
11969 },
11970 "permissions" : {
11971 "user" : "all"
11972 },
11973 "returns" : {
11974 "items" : {
11975 "properties" : {},
11976 "type" : "object"
11977 },
11978 "links" : [
11979 {
9fda36b0 11980 "href" : "{name}",
410dc2c9
DM
11981 "rel" : "child"
11982 }
11983 ],
11984 "type" : "array"
11985 }
11986 }
11987 },
11988 "leaf" : 0,
9fda36b0
DM
11989 "path" : "/quarantine",
11990 "text" : "quarantine"
410dc2c9
DM
11991 },
11992 {
11993 "children" : [
a55e94a6
DM
11994 {
11995 "children" : [
11996 {
11997 "info" : {
a55e94a6 11998 "GET" : {
9fda36b0 11999 "description" : "Detailed Contact Statistics.",
a55e94a6 12000 "method" : "GET",
9fda36b0 12001 "name" : "contactdetails",
a55e94a6
DM
12002 "parameters" : {
12003 "additionalProperties" : 0,
9fda36b0
DM
12004 "properties" : {
12005 "contact" : {
12006 "description" : "Contact email address.",
12007 "maxLength" : 512,
12008 "minLength" : 3,
12009 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
12010 "type" : "string"
a55e94a6 12011 },
9fda36b0
DM
12012 "day" : {
12013 "description" : "Day of month. Get statistics for a single day.",
12014 "maximum" : 31,
12015 "minimum" : 1,
a55e94a6
DM
12016 "optional" : 1,
12017 "type" : "integer",
9fda36b0 12018 "typetext" : "<integer> (1 - 31)"
a55e94a6 12019 },
9fda36b0
DM
12020 "endtime" : {
12021 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12022 "minimum" : 1,
a55e94a6 12023 "optional" : 1,
9fda36b0
DM
12024 "type" : "integer",
12025 "typetext" : "<integer> (1 - N)"
a55e94a6 12026 },
9fda36b0
DM
12027 "filter" : {
12028 "description" : "Sender address filter.",
12029 "maxLength" : 512,
a55e94a6
DM
12030 "optional" : 1,
12031 "type" : "string",
12032 "typetext" : "<string>"
12033 },
9fda36b0
DM
12034 "month" : {
12035 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12036 "maximum" : 12,
12037 "minimum" : 1,
a55e94a6 12038 "optional" : 1,
9fda36b0
DM
12039 "type" : "integer",
12040 "typetext" : "<integer> (1 - 12)"
a55e94a6 12041 },
9fda36b0
DM
12042 "orderby" : {
12043 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12044 "maxLength" : 4096,
a55e94a6
DM
12045 "optional" : 1,
12046 "type" : "string",
12047 "typetext" : "<string>"
12048 },
9fda36b0
DM
12049 "starttime" : {
12050 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12051 "minimum" : 0,
a55e94a6 12052 "optional" : 1,
9fda36b0
DM
12053 "type" : "integer",
12054 "typetext" : "<integer> (0 - N)"
a55e94a6 12055 },
9fda36b0
DM
12056 "year" : {
12057 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12058 "maximum" : 3000,
12059 "minimum" : 1900,
12060 "optional" : 1,
12061 "type" : "integer",
12062 "typetext" : "<integer> (1900 - 3000)"
a55e94a6
DM
12063 }
12064 }
12065 },
9fda36b0
DM
12066 "permissions" : {
12067 "check" : [
12068 "admin",
12069 "qmanager",
12070 "audit"
12071 ]
12072 },
a55e94a6 12073 "returns" : {
9fda36b0
DM
12074 "items" : {
12075 "properties" : {
12076 "blocked" : {
12077 "description" : "Mail was blocked.",
12078 "type" : "boolean"
12079 },
12080 "bytes" : {
12081 "description" : "Mail traffic (Bytes).",
12082 "type" : "number"
12083 },
12084 "sender" : {
12085 "description" : "Sender email.",
12086 "type" : "string"
12087 },
12088 "spamlevel" : {
12089 "description" : "Spam score.",
12090 "type" : "number"
12091 },
12092 "time" : {
12093 "description" : "Receive time stamp",
12094 "type" : "integer"
12095 },
12096 "virusinfo" : {
12097 "description" : "Virus name.",
12098 "optional" : 1,
12099 "type" : "string"
12100 }
12101 },
12102 "type" : "object"
12103 },
12104 "type" : "array"
a55e94a6
DM
12105 }
12106 }
12107 },
12108 "leaf" : 1,
9fda36b0
DM
12109 "path" : "/statistics/contact/{contact}",
12110 "text" : "{contact}"
a55e94a6
DM
12111 }
12112 ],
12113 "info" : {
12114 "GET" : {
9fda36b0 12115 "description" : "Contact Address Statistics.",
a55e94a6 12116 "method" : "GET",
9fda36b0 12117 "name" : "contact",
a55e94a6
DM
12118 "parameters" : {
12119 "additionalProperties" : 0,
12120 "properties" : {
9fda36b0
DM
12121 "day" : {
12122 "description" : "Day of month. Get statistics for a single day.",
12123 "maximum" : 31,
12124 "minimum" : 1,
a55e94a6
DM
12125 "optional" : 1,
12126 "type" : "integer",
9fda36b0 12127 "typetext" : "<integer> (1 - 31)"
a55e94a6 12128 },
9fda36b0
DM
12129 "endtime" : {
12130 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12131 "minimum" : 1,
410dc2c9 12132 "optional" : 1,
9fda36b0
DM
12133 "type" : "integer",
12134 "typetext" : "<integer> (1 - N)"
410dc2c9 12135 },
9fda36b0
DM
12136 "filter" : {
12137 "description" : "Contact address filter.",
12138 "maxLength" : 512,
12139 "optional" : 1,
410dc2c9
DM
12140 "type" : "string",
12141 "typetext" : "<string>"
12142 },
9fda36b0
DM
12143 "month" : {
12144 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12145 "maximum" : 12,
12146 "minimum" : 1,
410dc2c9 12147 "optional" : 1,
9fda36b0
DM
12148 "type" : "integer",
12149 "typetext" : "<integer> (1 - 12)"
410dc2c9 12150 },
9fda36b0
DM
12151 "orderby" : {
12152 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12153 "maxLength" : 4096,
12154 "optional" : 1,
410dc2c9
DM
12155 "type" : "string",
12156 "typetext" : "<string>"
9fda36b0
DM
12157 },
12158 "starttime" : {
12159 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12160 "minimum" : 0,
12161 "optional" : 1,
12162 "type" : "integer",
12163 "typetext" : "<integer> (0 - N)"
12164 },
12165 "year" : {
12166 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12167 "maximum" : 3000,
12168 "minimum" : 1900,
12169 "optional" : 1,
12170 "type" : "integer",
12171 "typetext" : "<integer> (1900 - 3000)"
410dc2c9
DM
12172 }
12173 }
12174 },
12175 "permissions" : {
9fda36b0
DM
12176 "check" : [
12177 "admin",
12178 "qmanager",
12179 "audit"
12180 ]
410dc2c9 12181 },
410dc2c9 12182 "returns" : {
9fda36b0
DM
12183 "items" : {
12184 "properties" : {
12185 "bytes" : {
12186 "description" : "Mail traffic (Bytes).",
12187 "type" : "number"
12188 },
12189 "contact" : {
12190 "description" : "Contact email.",
12191 "type" : "string"
12192 },
12193 "count" : {
12194 "description" : "Mail count.",
12195 "optional" : 1,
12196 "type" : "number"
12197 },
12198 "viruscount" : {
12199 "description" : "Number of sent virus mails.",
12200 "optional" : 1,
12201 "type" : "number"
12202 }
410dc2c9 12203 },
9fda36b0 12204 "type" : "object"
410dc2c9 12205 },
9fda36b0
DM
12206 "links" : [
12207 {
12208 "href" : "{contact}",
12209 "rel" : "child"
12210 }
12211 ],
12212 "type" : "array"
410dc2c9
DM
12213 }
12214 }
12215 },
9fda36b0
DM
12216 "leaf" : 0,
12217 "path" : "/statistics/contact",
12218 "text" : "contact"
410dc2c9
DM
12219 },
12220 {
9fda36b0
DM
12221 "children" : [
12222 {
12223 "info" : {
12224 "GET" : {
12225 "description" : "Detailed Sender Statistics.",
12226 "method" : "GET",
12227 "name" : "senderdetails",
12228 "parameters" : {
12229 "additionalProperties" : 0,
12230 "properties" : {
12231 "day" : {
12232 "description" : "Day of month. Get statistics for a single day.",
12233 "maximum" : 31,
12234 "minimum" : 1,
12235 "optional" : 1,
12236 "type" : "integer",
12237 "typetext" : "<integer> (1 - 31)"
12238 },
12239 "endtime" : {
12240 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12241 "minimum" : 1,
12242 "optional" : 1,
12243 "type" : "integer",
12244 "typetext" : "<integer> (1 - N)"
12245 },
12246 "filter" : {
12247 "description" : "Receiver address filter.",
12248 "maxLength" : 512,
12249 "optional" : 1,
12250 "type" : "string",
12251 "typetext" : "<string>"
12252 },
12253 "month" : {
12254 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12255 "maximum" : 12,
12256 "minimum" : 1,
12257 "optional" : 1,
12258 "type" : "integer",
12259 "typetext" : "<integer> (1 - 12)"
12260 },
12261 "orderby" : {
12262 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12263 "maxLength" : 4096,
12264 "optional" : 1,
12265 "type" : "string",
12266 "typetext" : "<string>"
12267 },
12268 "sender" : {
12269 "description" : "Sender email address.",
12270 "maxLength" : 512,
12271 "minLength" : 3,
12272 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
12273 "type" : "string"
12274 },
12275 "starttime" : {
12276 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12277 "minimum" : 0,
12278 "optional" : 1,
12279 "type" : "integer",
12280 "typetext" : "<integer> (0 - N)"
12281 },
12282 "year" : {
12283 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12284 "maximum" : 3000,
12285 "minimum" : 1900,
12286 "optional" : 1,
12287 "type" : "integer",
12288 "typetext" : "<integer> (1900 - 3000)"
12289 }
12290 }
12291 },
12292 "permissions" : {
12293 "check" : [
12294 "admin",
12295 "qmanager",
12296 "audit"
12297 ]
12298 },
12299 "returns" : {
12300 "items" : {
12301 "properties" : {
12302 "blocked" : {
12303 "description" : "Mail was blocked.",
12304 "type" : "boolean"
12305 },
12306 "bytes" : {
12307 "description" : "Mail traffic (Bytes).",
12308 "type" : "number"
12309 },
12310 "receiver" : {
12311 "description" : "Receiver email.",
12312 "type" : "string"
12313 },
12314 "spamlevel" : {
12315 "description" : "Spam score.",
12316 "type" : "number"
12317 },
12318 "time" : {
12319 "description" : "Receive time stamp",
12320 "type" : "integer"
12321 },
12322 "virusinfo" : {
12323 "description" : "Virus name.",
12324 "optional" : 1,
12325 "type" : "string"
12326 }
12327 },
12328 "type" : "object"
12329 },
12330 "type" : "array"
12331 }
12332 }
12333 },
12334 "leaf" : 1,
12335 "path" : "/statistics/sender/{sender}",
12336 "text" : "{sender}"
12337 }
12338 ],
410dc2c9 12339 "info" : {
9fda36b0
DM
12340 "GET" : {
12341 "description" : "Sender Address Statistics.",
12342 "method" : "GET",
12343 "name" : "sender",
410dc2c9
DM
12344 "parameters" : {
12345 "additionalProperties" : 0,
12346 "properties" : {
9fda36b0
DM
12347 "day" : {
12348 "description" : "Day of month. Get statistics for a single day.",
12349 "maximum" : 31,
12350 "minimum" : 1,
12351 "optional" : 1,
12352 "type" : "integer",
12353 "typetext" : "<integer> (1 - 31)"
12354 },
12355 "endtime" : {
12356 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12357 "minimum" : 1,
12358 "optional" : 1,
12359 "type" : "integer",
12360 "typetext" : "<integer> (1 - N)"
12361 },
12362 "filter" : {
12363 "description" : "Sender address filter.",
12364 "maxLength" : 512,
12365 "optional" : 1,
410dc2c9
DM
12366 "type" : "string",
12367 "typetext" : "<string>"
12368 },
9fda36b0
DM
12369 "month" : {
12370 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12371 "maximum" : 12,
12372 "minimum" : 1,
12373 "optional" : 1,
12374 "type" : "integer",
12375 "typetext" : "<integer> (1 - 12)"
12376 },
12377 "orderby" : {
12378 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12379 "maxLength" : 4096,
12380 "optional" : 1,
410dc2c9
DM
12381 "type" : "string",
12382 "typetext" : "<string>"
9fda36b0
DM
12383 },
12384 "starttime" : {
12385 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12386 "minimum" : 0,
12387 "optional" : 1,
12388 "type" : "integer",
12389 "typetext" : "<integer> (0 - N)"
12390 },
12391 "year" : {
12392 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12393 "maximum" : 3000,
12394 "minimum" : 1900,
12395 "optional" : 1,
12396 "type" : "integer",
12397 "typetext" : "<integer> (1900 - 3000)"
410dc2c9
DM
12398 }
12399 }
12400 },
a55e94a6 12401 "permissions" : {
9fda36b0
DM
12402 "check" : [
12403 "admin",
12404 "qmanager",
12405 "audit"
12406 ]
a55e94a6 12407 },
410dc2c9 12408 "returns" : {
9fda36b0
DM
12409 "items" : {
12410 "properties" : {
12411 "bytes" : {
12412 "description" : "Mail traffic (Bytes).",
12413 "type" : "number"
12414 },
12415 "count" : {
12416 "description" : "Mail count.",
12417 "optional" : 1,
12418 "type" : "number"
12419 },
12420 "sender" : {
12421 "description" : "Sender email.",
12422 "type" : "string"
12423 },
12424 "viruscount" : {
12425 "description" : "Number of sent virus mails.",
12426 "optional" : 1,
12427 "type" : "number"
12428 }
12429 },
12430 "type" : "object"
12431 },
12432 "links" : [
12433 {
12434 "href" : "{sender}",
12435 "rel" : "child"
12436 }
12437 ],
12438 "type" : "array"
410dc2c9 12439 }
9fda36b0
DM
12440 }
12441 },
12442 "leaf" : 0,
12443 "path" : "/statistics/sender",
12444 "text" : "sender"
12445 },
d7cd791b
DM
12446 {
12447 "children" : [
12448 {
12449 "info" : {
9fda36b0
DM
12450 "GET" : {
12451 "description" : "Detailed Receiver Statistics.",
12452 "method" : "GET",
12453 "name" : "receiverdetails",
d7cd791b
DM
12454 "parameters" : {
12455 "additionalProperties" : 0,
12456 "properties" : {
9fda36b0
DM
12457 "day" : {
12458 "description" : "Day of month. Get statistics for a single day.",
12459 "maximum" : 31,
12460 "minimum" : 1,
12461 "optional" : 1,
12462 "type" : "integer",
12463 "typetext" : "<integer> (1 - 31)"
12464 },
12465 "endtime" : {
12466 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12467 "minimum" : 1,
12468 "optional" : 1,
12469 "type" : "integer",
12470 "typetext" : "<integer> (1 - N)"
12471 },
12472 "filter" : {
12473 "description" : "Sender address filter.",
d7cd791b 12474 "maxLength" : 512,
9fda36b0
DM
12475 "optional" : 1,
12476 "type" : "string",
12477 "typetext" : "<string>"
d7cd791b 12478 },
9fda36b0
DM
12479 "month" : {
12480 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12481 "maximum" : 12,
12482 "minimum" : 1,
12483 "optional" : 1,
12484 "type" : "integer",
12485 "typetext" : "<integer> (1 - 12)"
12486 },
12487 "orderby" : {
12488 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12489 "maxLength" : 4096,
d7cd791b
DM
12490 "optional" : 1,
12491 "type" : "string",
12492 "typetext" : "<string>"
9fda36b0
DM
12493 },
12494 "receiver" : {
12495 "description" : "Receiver email address.",
12496 "maxLength" : 512,
12497 "minLength" : 3,
12498 "pattern" : "(?:|[^\\s\\/\\@]+\\@[^\\s\\/\\@]+)",
12499 "type" : "string"
12500 },
12501 "starttime" : {
12502 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12503 "minimum" : 0,
12504 "optional" : 1,
12505 "type" : "integer",
12506 "typetext" : "<integer> (0 - N)"
12507 },
12508 "year" : {
12509 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12510 "maximum" : 3000,
12511 "minimum" : 1900,
12512 "optional" : 1,
12513 "type" : "integer",
12514 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
12515 }
12516 }
12517 },
12518 "permissions" : {
12519 "check" : [
12520 "admin",
12521 "qmanager",
9fda36b0 12522 "audit"
d7cd791b
DM
12523 ]
12524 },
d7cd791b 12525 "returns" : {
9fda36b0
DM
12526 "items" : {
12527 "properties" : {
12528 "blocked" : {
12529 "description" : "Mail was blocked.",
12530 "type" : "boolean"
12531 },
12532 "bytes" : {
12533 "description" : "Mail traffic (Bytes).",
12534 "type" : "number"
12535 },
12536 "sender" : {
12537 "description" : "Sender email.",
12538 "type" : "string"
12539 },
12540 "spamlevel" : {
12541 "description" : "Spam score.",
12542 "type" : "number"
12543 },
12544 "time" : {
12545 "description" : "Receive time stamp",
12546 "type" : "integer"
12547 },
12548 "virusinfo" : {
12549 "description" : "Virus name.",
12550 "optional" : 1,
12551 "type" : "string"
12552 }
12553 },
12554 "type" : "object"
12555 },
12556 "type" : "array"
d7cd791b
DM
12557 }
12558 }
12559 },
12560 "leaf" : 1,
9fda36b0
DM
12561 "path" : "/statistics/receiver/{receiver}",
12562 "text" : "{receiver}"
d7cd791b
DM
12563 }
12564 ],
12565 "info" : {
12566 "GET" : {
9fda36b0 12567 "description" : "Receiver Address Statistics.",
d7cd791b 12568 "method" : "GET",
9fda36b0 12569 "name" : "receiver",
d7cd791b
DM
12570 "parameters" : {
12571 "additionalProperties" : 0,
12572 "properties" : {
9fda36b0
DM
12573 "day" : {
12574 "description" : "Day of month. Get statistics for a single day.",
12575 "maximum" : 31,
12576 "minimum" : 1,
12577 "optional" : 1,
12578 "type" : "integer",
12579 "typetext" : "<integer> (1 - 31)"
12580 },
12581 "endtime" : {
12582 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12583 "minimum" : 1,
12584 "optional" : 1,
12585 "type" : "integer",
12586 "typetext" : "<integer> (1 - N)"
12587 },
12588 "filter" : {
12589 "description" : "Receiver address filter.",
12590 "maxLength" : 512,
12591 "optional" : 1,
12592 "type" : "string",
12593 "typetext" : "<string>"
12594 },
12595 "month" : {
12596 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12597 "maximum" : 12,
12598 "minimum" : 1,
12599 "optional" : 1,
12600 "type" : "integer",
12601 "typetext" : "<integer> (1 - 12)"
12602 },
12603 "orderby" : {
12604 "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
12605 "maxLength" : 4096,
d7cd791b
DM
12606 "optional" : 1,
12607 "type" : "string",
12608 "typetext" : "<string>"
9fda36b0
DM
12609 },
12610 "starttime" : {
12611 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12612 "minimum" : 0,
12613 "optional" : 1,
12614 "type" : "integer",
12615 "typetext" : "<integer> (0 - N)"
12616 },
12617 "year" : {
12618 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12619 "maximum" : 3000,
12620 "minimum" : 1900,
12621 "optional" : 1,
12622 "type" : "integer",
12623 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
12624 }
12625 }
12626 },
12627 "permissions" : {
12628 "check" : [
12629 "admin",
12630 "qmanager",
9fda36b0 12631 "audit"
d7cd791b
DM
12632 ]
12633 },
12634 "returns" : {
12635 "items" : {
12636 "properties" : {
9fda36b0
DM
12637 "bytes" : {
12638 "description" : "Mail traffic (Bytes).",
12639 "type" : "number"
12640 },
12641 "count" : {
12642 "description" : "Mail count.",
12643 "optional" : 1,
12644 "type" : "number"
12645 },
12646 "receiver" : {
12647 "description" : "Sender email.",
d7cd791b 12648 "type" : "string"
9fda36b0
DM
12649 },
12650 "spamcount" : {
12651 "description" : "Number of sent spam mails.",
12652 "optional" : 1,
12653 "type" : "number"
12654 },
12655 "viruscount" : {
12656 "description" : "Number of sent virus mails.",
12657 "optional" : 1,
12658 "type" : "number"
d7cd791b
DM
12659 }
12660 },
12661 "type" : "object"
12662 },
9fda36b0
DM
12663 "links" : [
12664 {
12665 "href" : "{receiver}",
12666 "rel" : "child"
d7cd791b 12667 }
9fda36b0
DM
12668 ],
12669 "type" : "array"
d7cd791b
DM
12670 }
12671 }
12672 },
12673 "leaf" : 0,
9fda36b0
DM
12674 "path" : "/statistics/receiver",
12675 "text" : "receiver"
d7cd791b
DM
12676 },
12677 {
d7cd791b
DM
12678 "info" : {
12679 "GET" : {
9fda36b0 12680 "description" : "Mail Domains Statistics.",
d7cd791b 12681 "method" : "GET",
9fda36b0 12682 "name" : "domains",
d7cd791b
DM
12683 "parameters" : {
12684 "additionalProperties" : 0,
12685 "properties" : {
9fda36b0
DM
12686 "day" : {
12687 "description" : "Day of month. Get statistics for a single day.",
12688 "maximum" : 31,
12689 "minimum" : 1,
12690 "optional" : 1,
12691 "type" : "integer",
12692 "typetext" : "<integer> (1 - 31)"
12693 },
12694 "endtime" : {
12695 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12696 "minimum" : 1,
12697 "optional" : 1,
12698 "type" : "integer",
12699 "typetext" : "<integer> (1 - N)"
12700 },
12701 "month" : {
12702 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12703 "maximum" : 12,
12704 "minimum" : 1,
12705 "optional" : 1,
12706 "type" : "integer",
12707 "typetext" : "<integer> (1 - 12)"
12708 },
12709 "starttime" : {
12710 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12711 "minimum" : 0,
d7cd791b 12712 "optional" : 1,
9fda36b0
DM
12713 "type" : "integer",
12714 "typetext" : "<integer> (0 - N)"
12715 },
12716 "year" : {
12717 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12718 "maximum" : 3000,
12719 "minimum" : 1900,
12720 "optional" : 1,
12721 "type" : "integer",
12722 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
12723 }
12724 }
12725 },
12726 "permissions" : {
12727 "check" : [
12728 "admin",
12729 "qmanager",
9fda36b0 12730 "audit"
d7cd791b
DM
12731 ]
12732 },
12733 "returns" : {
12734 "items" : {
12735 "properties" : {
9fda36b0
DM
12736 "count_in" : {
12737 "description" : "Incoming mail count.",
12738 "type" : "number"
12739 },
12740 "count_out" : {
12741 "description" : "Outgoing mail count.",
12742 "type" : "number"
12743 },
12744 "domain" : {
12745 "description" : "Domain name.",
d7cd791b 12746 "type" : "string"
9fda36b0
DM
12747 },
12748 "mbytes_in" : {
12749 "description" : "Incoming mail traffic (Mebibytes).",
12750 "type" : "number"
12751 },
12752 "mbytes_out" : {
12753 "description" : "Outgoing mail traffic (Mebibytes).",
12754 "type" : "number"
12755 },
12756 "spamcount_in" : {
12757 "description" : "Incoming spam mails.",
12758 "type" : "number"
12759 },
12760 "spamcount_out" : {
12761 "description" : "Outgoing spam mails.",
12762 "type" : "number"
12763 },
12764 "viruscount_in" : {
12765 "description" : "Number of incoming virus mails.",
12766 "type" : "number"
12767 },
12768 "viruscount_out" : {
12769 "description" : "Number of outgoing virus mails.",
12770 "type" : "number"
d7cd791b
DM
12771 }
12772 },
12773 "type" : "object"
12774 },
12775 "type" : "array"
12776 }
9fda36b0
DM
12777 }
12778 },
12779 "leaf" : 1,
12780 "path" : "/statistics/domains",
12781 "text" : "domains"
12782 },
12783 {
12784 "info" : {
12785 "GET" : {
12786 "description" : "General Mail Statistics.",
12787 "method" : "GET",
12788 "name" : "mail",
d7cd791b
DM
12789 "parameters" : {
12790 "additionalProperties" : 0,
12791 "properties" : {
9fda36b0
DM
12792 "day" : {
12793 "description" : "Day of month. Get statistics for a single day.",
12794 "maximum" : 31,
12795 "minimum" : 1,
12796 "optional" : 1,
12797 "type" : "integer",
12798 "typetext" : "<integer> (1 - 31)"
d7cd791b 12799 },
9fda36b0
DM
12800 "endtime" : {
12801 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
12802 "minimum" : 1,
d7cd791b 12803 "optional" : 1,
9fda36b0
DM
12804 "type" : "integer",
12805 "typetext" : "<integer> (1 - N)"
12806 },
12807 "month" : {
12808 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
12809 "maximum" : 12,
12810 "minimum" : 1,
12811 "optional" : 1,
12812 "type" : "integer",
12813 "typetext" : "<integer> (1 - 12)"
12814 },
12815 "starttime" : {
12816 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
12817 "minimum" : 0,
12818 "optional" : 1,
12819 "type" : "integer",
12820 "typetext" : "<integer> (0 - N)"
12821 },
12822 "year" : {
12823 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
12824 "maximum" : 3000,
12825 "minimum" : 1900,
12826 "optional" : 1,
12827 "type" : "integer",
12828 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
12829 }
12830 }
12831 },
12832 "permissions" : {
12833 "check" : [
12834 "admin",
12835 "qmanager",
9fda36b0 12836 "audit"
d7cd791b
DM
12837 ]
12838 },
d7cd791b 12839 "returns" : {
9fda36b0
DM
12840 "properties" : {
12841 "avptime" : {
12842 "description" : "Average mail processing time in seconds.",
12843 "type" : "number"
12844 },
12845 "bounces_in" : {
12846 "description" : "Incoming bounce mail count (sender = <>).",
12847 "type" : "number"
12848 },
12849 "bounces_out" : {
12850 "description" : "Outgoing bounce mail count (sender = <>).",
12851 "type" : "number"
12852 },
12853 "bytes_in" : {
12854 "description" : "Incoming mail traffic (bytes).",
12855 "type" : "number"
12856 },
12857 "bytes_out" : {
12858 "description" : "Outgoing mail traffic (bytes).",
12859 "type" : "number"
12860 },
12861 "count" : {
12862 "description" : "Overall mail count (in and out).",
12863 "type" : "number"
12864 },
12865 "count_in" : {
12866 "description" : "Incoming mail count.",
12867 "type" : "number"
12868 },
12869 "count_out" : {
12870 "description" : "Outgoing mail count.",
12871 "type" : "number"
12872 },
12873 "glcount" : {
12874 "description" : "Number of greylisted mails.",
12875 "type" : "number"
12876 },
12877 "junk_in" : {
12878 "description" : "Incoming junk mail count (viruscount_in + spamcount_in + glcount + spfcount).",
12879 "type" : "number"
12880 },
12881 "junk_out" : {
12882 "description" : "Outgoing junk mail count (viruscount_out + spamcount_out).",
12883 "type" : "number"
12884 },
12885 "spamcount_in" : {
12886 "description" : "Incoming spam mails.",
12887 "type" : "number"
12888 },
12889 "spamcount_out" : {
12890 "description" : "Outgoing spam mails.",
12891 "type" : "number"
12892 },
12893 "spfcount" : {
12894 "description" : "Mails rejected by SPF.",
12895 "type" : "number"
12896 },
12897 "viruscount_in" : {
12898 "description" : "Number of incoming virus mails.",
12899 "type" : "number"
12900 },
12901 "viruscount_out" : {
12902 "description" : "Number of outgoing virus mails.",
12903 "type" : "number"
12904 }
12905 },
12906 "type" : "object"
d7cd791b
DM
12907 }
12908 }
12909 },
9fda36b0
DM
12910 "leaf" : 1,
12911 "path" : "/statistics/mail",
12912 "text" : "mail"
d7cd791b 12913 },
732d76e1
DM
12914 {
12915 "info" : {
12916 "GET" : {
12917 "description" : "Mail Count Statistics.",
12918 "method" : "GET",
12919 "name" : "recent",
12920 "parameters" : {
12921 "additionalProperties" : 0,
12922 "properties" : {
12923 "hours" : {
12924 "default" : 12,
12925 "description" : "How many hours you want to get",
12926 "maximum" : 24,
12927 "minimum" : 1,
12928 "optional" : 1,
12929 "type" : "integer",
12930 "typetext" : "<integer> (1 - 24)"
12931 },
12932 "timespan" : {
12933 "default" : 1800,
12934 "description" : "The Timespan for one datapoint (in seconds)",
12935 "maximum" : 1800,
12936 "minimum" : 1,
12937 "optional" : 1,
12938 "type" : "integer",
12939 "typetext" : "<integer> (1 - 1800)"
12940 }
12941 }
12942 },
12943 "permissions" : {
12944 "check" : [
12945 "admin",
12946 "qmanager",
12947 "audit"
12948 ]
12949 },
12950 "returns" : {
12951 "items" : {
12952 "properties" : {
12953 "bytes_in" : {
12954 "description" : "Number of incoming bytes mails.",
12955 "type" : "number"
12956 },
12957 "bytes_out" : {
12958 "description" : "Number of outgoing bytes mails.",
12959 "type" : "number"
12960 },
12961 "count" : {
12962 "description" : "Overall mail count (in and out).",
12963 "type" : "number"
12964 },
12965 "count_in" : {
12966 "description" : "Incoming mail count.",
12967 "type" : "number"
12968 },
12969 "count_out" : {
12970 "description" : "Outgoing mail count.",
12971 "type" : "number"
12972 },
12973 "index" : {
12974 "description" : "Time index.",
12975 "type" : "integer"
12976 },
12977 "spam" : {
12978 "description" : "Overall spam mail count (in and out).",
12979 "type" : "number"
12980 },
12981 "spam_in" : {
12982 "description" : "Incoming spam mails (spamcount_in + glcount + spfcount).",
12983 "type" : "number"
12984 },
12985 "spam_out" : {
12986 "description" : "Outgoing spam mails.",
12987 "type" : "number"
12988 },
12989 "time" : {
12990 "description" : "Time (Unix epoch).",
12991 "type" : "integer"
12992 },
12993 "timespan" : {
12994 "description" : "Timespan in seconds for one data point",
12995 "type" : "number"
12996 },
12997 "virus_in" : {
12998 "description" : "Number of incoming virus mails.",
12999 "type" : "number"
13000 },
13001 "virus_out" : {
13002 "description" : "Number of outgoing virus mails.",
13003 "type" : "number"
13004 }
13005 },
13006 "type" : "object"
13007 },
13008 "type" : "array"
13009 }
13010 }
13011 },
13012 "leaf" : 1,
13013 "path" : "/statistics/recent",
13014 "text" : "recent"
13015 },
13016 {
13017 "info" : {
13018 "GET" : {
13019 "description" : "Top recent Mail Receivers (including spam)",
13020 "method" : "GET",
13021 "name" : "recentreceivers",
13022 "parameters" : {
13023 "additionalProperties" : 0,
13024 "properties" : {
13025 "hours" : {
13026 "default" : 12,
13027 "description" : "How many hours you want to get",
13028 "maximum" : 24,
13029 "minimum" : 1,
13030 "optional" : 1,
13031 "type" : "integer",
13032 "typetext" : "<integer> (1 - 24)"
13033 },
13034 "limit" : {
13035 "default" : 5,
13036 "description" : "The maximum number of receivers to return.",
13037 "maximum" : 50,
13038 "minimum" : 1,
13039 "optional" : 1,
13040 "type" : "integer",
13041 "typetext" : "<integer> (1 - 50)"
13042 }
13043 }
13044 },
13045 "permissions" : {
13046 "check" : [
13047 "admin",
13048 "qmanager",
13049 "audit"
13050 ]
13051 },
13052 "returns" : {
13053 "items" : {
13054 "properties" : {
13055 "count" : {
13056 "description" : "The count of incoming not blocked E-Mails",
13057 "type" : "integer"
13058 },
13059 "receiver" : {
13060 "description" : "The receiver",
13061 "type" : "string"
13062 }
13063 },
13064 "type" : "object"
13065 },
13066 "type" : "array"
13067 }
13068 }
13069 },
13070 "leaf" : 1,
13071 "path" : "/statistics/recentreceivers",
13072 "text" : "recentreceivers"
13073 },
d7cd791b 13074 {
9fda36b0
DM
13075 "info" : {
13076 "GET" : {
13077 "description" : "Mail Count Statistics.",
13078 "method" : "GET",
13079 "name" : "mailcount",
13080 "parameters" : {
13081 "additionalProperties" : 0,
13082 "properties" : {
13083 "day" : {
13084 "description" : "Day of month. Get statistics for a single day.",
13085 "maximum" : 31,
13086 "minimum" : 1,
13087 "optional" : 1,
13088 "type" : "integer",
13089 "typetext" : "<integer> (1 - 31)"
d7cd791b 13090 },
9fda36b0
DM
13091 "endtime" : {
13092 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
13093 "minimum" : 1,
13094 "optional" : 1,
13095 "type" : "integer",
13096 "typetext" : "<integer> (1 - N)"
d7cd791b 13097 },
9fda36b0
DM
13098 "month" : {
13099 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13100 "maximum" : 12,
13101 "minimum" : 1,
13102 "optional" : 1,
13103 "type" : "integer",
13104 "typetext" : "<integer> (1 - 12)"
13105 },
13106 "starttime" : {
13107 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
13108 "minimum" : 0,
13109 "optional" : 1,
13110 "type" : "integer",
13111 "typetext" : "<integer> (0 - N)"
13112 },
13113 "timespan" : {
13114 "default" : 3600,
13115 "description" : "Return Mails/<timespan>, where <timespan> is specified in seconds.",
13116 "maximum" : 31622400,
13117 "minimum" : 3600,
13118 "optional" : 1,
13119 "type" : "integer",
13120 "typetext" : "<integer> (3600 - 31622400)"
13121 },
13122 "year" : {
13123 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13124 "maximum" : 3000,
13125 "minimum" : 1900,
13126 "optional" : 1,
13127 "type" : "integer",
13128 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
13129 }
13130 }
13131 },
9fda36b0
DM
13132 "permissions" : {
13133 "check" : [
13134 "admin",
13135 "qmanager",
13136 "audit"
13137 ]
13138 },
13139 "returns" : {
13140 "items" : {
13141 "properties" : {
13142 "bounces_in" : {
13143 "description" : "Incoming bounce mail count (sender = <>).",
13144 "type" : "number"
13145 },
13146 "bounces_out" : {
13147 "description" : "Outgoing bounce mail count (sender = <>).",
13148 "type" : "number"
13149 },
13150 "count" : {
13151 "description" : "Overall mail count (in and out).",
13152 "type" : "number"
13153 },
13154 "count_in" : {
13155 "description" : "Incoming mail count.",
13156 "type" : "number"
13157 },
13158 "count_out" : {
13159 "description" : "Outgoing mail count.",
13160 "type" : "number"
13161 },
13162 "index" : {
13163 "description" : "Time index.",
13164 "type" : "integer"
13165 },
13166 "spamcount_in" : {
13167 "description" : "Incoming spam mails (spamcount_in + glcount + spfcount).",
13168 "type" : "number"
13169 },
13170 "spamcount_out" : {
13171 "description" : "Outgoing spam mails.",
13172 "type" : "number"
13173 },
13174 "time" : {
13175 "description" : "Time (Unix epoch).",
13176 "type" : "integer"
13177 },
13178 "viruscount_in" : {
13179 "description" : "Number of incoming virus mails.",
13180 "type" : "number"
13181 },
13182 "viruscount_out" : {
13183 "description" : "Number of outgoing virus mails.",
13184 "type" : "number"
13185 }
13186 },
13187 "type" : "object"
13188 },
13189 "type" : "array"
13190 }
d7cd791b 13191 }
9fda36b0
DM
13192 },
13193 "leaf" : 1,
13194 "path" : "/statistics/mailcount",
13195 "text" : "mailcount"
13196 },
13197 {
d7cd791b
DM
13198 "info" : {
13199 "GET" : {
9fda36b0 13200 "description" : "Get Statistics about detected Viruses.",
d7cd791b 13201 "method" : "GET",
9fda36b0 13202 "name" : "virus",
d7cd791b
DM
13203 "parameters" : {
13204 "additionalProperties" : 0,
13205 "properties" : {
9fda36b0
DM
13206 "day" : {
13207 "description" : "Day of month. Get statistics for a single day.",
13208 "maximum" : 31,
13209 "minimum" : 1,
13210 "optional" : 1,
13211 "type" : "integer",
13212 "typetext" : "<integer> (1 - 31)"
13213 },
d7cd791b 13214 "endtime" : {
9fda36b0 13215 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
d7cd791b
DM
13216 "minimum" : 1,
13217 "optional" : 1,
13218 "type" : "integer",
13219 "typetext" : "<integer> (1 - N)"
13220 },
9fda36b0
DM
13221 "month" : {
13222 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13223 "maximum" : 12,
13224 "minimum" : 1,
d7cd791b 13225 "optional" : 1,
9fda36b0
DM
13226 "type" : "integer",
13227 "typetext" : "<integer> (1 - 12)"
d7cd791b
DM
13228 },
13229 "starttime" : {
9fda36b0 13230 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
d7cd791b
DM
13231 "minimum" : 0,
13232 "optional" : 1,
13233 "type" : "integer",
13234 "typetext" : "<integer> (0 - N)"
9fda36b0
DM
13235 },
13236 "year" : {
13237 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13238 "maximum" : 3000,
13239 "minimum" : 1900,
13240 "optional" : 1,
13241 "type" : "integer",
13242 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
13243 }
13244 }
13245 },
13246 "permissions" : {
13247 "check" : [
13248 "admin",
13249 "qmanager",
9fda36b0 13250 "audit"
d7cd791b
DM
13251 ]
13252 },
13253 "returns" : {
13254 "items" : {
13255 "properties" : {
13256 "count" : {
9fda36b0 13257 "description" : "Detection count.",
d7cd791b
DM
13258 "type" : "integer"
13259 },
9fda36b0
DM
13260 "name" : {
13261 "description" : "Virus name.",
13262 "type" : "string"
d7cd791b
DM
13263 }
13264 },
13265 "type" : "object"
13266 },
d7cd791b
DM
13267 "type" : "array"
13268 }
13269 }
13270 },
9fda36b0
DM
13271 "leaf" : 1,
13272 "path" : "/statistics/virus",
13273 "text" : "virus"
d7cd791b
DM
13274 },
13275 {
13276 "info" : {
13277 "GET" : {
9fda36b0 13278 "description" : "Get the count of spam mails grouped by spam score. Count for score 10 includes mails with spam score > 10.",
d7cd791b 13279 "method" : "GET",
9fda36b0 13280 "name" : "spamscores",
d7cd791b
DM
13281 "parameters" : {
13282 "additionalProperties" : 0,
13283 "properties" : {
9fda36b0
DM
13284 "day" : {
13285 "description" : "Day of month. Get statistics for a single day.",
13286 "maximum" : 31,
13287 "minimum" : 1,
13288 "optional" : 1,
13289 "type" : "integer",
13290 "typetext" : "<integer> (1 - 31)"
d7cd791b 13291 },
9fda36b0
DM
13292 "endtime" : {
13293 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
13294 "minimum" : 1,
d7cd791b 13295 "optional" : 1,
9fda36b0
DM
13296 "type" : "integer",
13297 "typetext" : "<integer> (1 - N)"
13298 },
13299 "month" : {
13300 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13301 "maximum" : 12,
13302 "minimum" : 1,
13303 "optional" : 1,
13304 "type" : "integer",
13305 "typetext" : "<integer> (1 - 12)"
13306 },
13307 "starttime" : {
13308 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
13309 "minimum" : 0,
13310 "optional" : 1,
13311 "type" : "integer",
13312 "typetext" : "<integer> (0 - N)"
13313 },
13314 "year" : {
13315 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13316 "maximum" : 3000,
13317 "minimum" : 1900,
13318 "optional" : 1,
13319 "type" : "integer",
13320 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
13321 }
13322 }
13323 },
13324 "permissions" : {
13325 "check" : [
13326 "admin",
13327 "qmanager",
9fda36b0 13328 "audit"
d7cd791b
DM
13329 ]
13330 },
13331 "returns" : {
9fda36b0
DM
13332 "items" : {
13333 "properties" : {
13334 "count" : {
13335 "description" : "Detection count.",
13336 "type" : "integer"
13337 },
13338 "level" : {
13339 "description" : "Spam level.",
13340 "type" : "string"
13341 },
13342 "ratio" : {
13343 "description" : "Portion of overall mail count.",
13344 "type" : "number"
13345 }
d7cd791b 13346 },
9fda36b0
DM
13347 "type" : "object"
13348 },
13349 "type" : "array"
13350 }
13351 }
13352 },
13353 "leaf" : 1,
13354 "path" : "/statistics/spamscores",
13355 "text" : "spamscores"
13356 },
13357 {
13358 "info" : {
13359 "GET" : {
13360 "description" : "Get the count of spam mails grouped by spam score. Count for score 10 includes mails with spam score > 10.",
13361 "method" : "GET",
13362 "name" : "maildistribution",
13363 "parameters" : {
13364 "additionalProperties" : 0,
13365 "properties" : {
13366 "day" : {
13367 "description" : "Day of month. Get statistics for a single day.",
13368 "maximum" : 31,
13369 "minimum" : 1,
d7cd791b 13370 "optional" : 1,
9fda36b0
DM
13371 "type" : "integer",
13372 "typetext" : "<integer> (1 - 31)"
d7cd791b 13373 },
9fda36b0
DM
13374 "endtime" : {
13375 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
13376 "minimum" : 1,
13377 "optional" : 1,
13378 "type" : "integer",
13379 "typetext" : "<integer> (1 - N)"
d7cd791b 13380 },
9fda36b0
DM
13381 "month" : {
13382 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13383 "maximum" : 12,
13384 "minimum" : 1,
13385 "optional" : 1,
13386 "type" : "integer",
13387 "typetext" : "<integer> (1 - 12)"
d7cd791b 13388 },
9fda36b0
DM
13389 "starttime" : {
13390 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
13391 "minimum" : 0,
13392 "optional" : 1,
13393 "type" : "integer",
13394 "typetext" : "<integer> (0 - N)"
d7cd791b 13395 },
9fda36b0
DM
13396 "year" : {
13397 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13398 "maximum" : 3000,
13399 "minimum" : 1900,
13400 "optional" : 1,
13401 "type" : "integer",
13402 "typetext" : "<integer> (1900 - 3000)"
d7cd791b 13403 }
9fda36b0
DM
13404 }
13405 },
13406 "permissions" : {
13407 "check" : [
13408 "admin",
13409 "qmanager",
13410 "audit"
13411 ]
13412 },
13413 "returns" : {
13414 "items" : {
13415 "properties" : {
13416 "bounces_in" : {
13417 "description" : "Incoming bounce mail count (sender = <>).",
13418 "type" : "number"
13419 },
13420 "bounces_out" : {
13421 "description" : "Outgoing bounce mail count (sender = <>).",
13422 "type" : "number"
13423 },
13424 "count" : {
13425 "description" : "Overall mail count (in and out).",
13426 "type" : "number"
13427 },
13428 "count_in" : {
13429 "description" : "Incoming mail count.",
13430 "type" : "number"
13431 },
13432 "count_out" : {
13433 "description" : "Outgoing mail count.",
13434 "type" : "number"
13435 },
13436 "index" : {
13437 "description" : "Hour (0-23).",
13438 "type" : "integer"
13439 },
13440 "spamcount_in" : {
13441 "description" : "Incoming spam mails (spamcount_in + glcount + spfcount).",
13442 "type" : "number"
13443 },
13444 "spamcount_out" : {
13445 "description" : "Outgoing spam mails.",
13446 "type" : "number"
13447 },
13448 "viruscount_in" : {
13449 "description" : "Number of incoming virus mails.",
13450 "type" : "number"
13451 },
13452 "viruscount_out" : {
13453 "description" : "Number of outgoing virus mails.",
13454 "type" : "number"
13455 }
13456 },
13457 "type" : "object"
d7cd791b 13458 },
9fda36b0 13459 "type" : "array"
d7cd791b 13460 }
9fda36b0
DM
13461 }
13462 },
13463 "leaf" : 1,
13464 "path" : "/statistics/maildistribution",
13465 "text" : "maildistribution"
13466 },
13467 {
13468 "info" : {
13469 "GET" : {
13470 "description" : "Mail RBL Count Statistics.",
13471 "method" : "GET",
13472 "name" : "rblcount",
d7cd791b
DM
13473 "parameters" : {
13474 "additionalProperties" : 0,
13475 "properties" : {
9fda36b0
DM
13476 "day" : {
13477 "description" : "Day of month. Get statistics for a single day.",
13478 "maximum" : 31,
13479 "minimum" : 1,
13480 "optional" : 1,
13481 "type" : "integer",
13482 "typetext" : "<integer> (1 - 31)"
d7cd791b 13483 },
9fda36b0
DM
13484 "endtime" : {
13485 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
13486 "minimum" : 1,
13487 "optional" : 1,
13488 "type" : "integer",
13489 "typetext" : "<integer> (1 - N)"
13490 },
13491 "month" : {
13492 "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
13493 "maximum" : 12,
13494 "minimum" : 1,
13495 "optional" : 1,
13496 "type" : "integer",
13497 "typetext" : "<integer> (1 - 12)"
13498 },
13499 "starttime" : {
13500 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
13501 "minimum" : 0,
13502 "optional" : 1,
13503 "type" : "integer",
13504 "typetext" : "<integer> (0 - N)"
13505 },
13506 "timespan" : {
13507 "default" : 3600,
13508 "description" : "Return RBL rejects/<timespan>, where <timespan> is specified in seconds.",
13509 "maximum" : 31622400,
13510 "minimum" : 3600,
13511 "optional" : 1,
13512 "type" : "integer",
13513 "typetext" : "<integer> (3600 - 31622400)"
13514 },
13515 "year" : {
13516 "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
13517 "maximum" : 3000,
13518 "minimum" : 1900,
13519 "optional" : 1,
13520 "type" : "integer",
13521 "typetext" : "<integer> (1900 - 3000)"
d7cd791b
DM
13522 }
13523 }
13524 },
13525 "permissions" : {
13526 "check" : [
13527 "admin",
13528 "qmanager",
9fda36b0 13529 "audit"
d7cd791b
DM
13530 ]
13531 },
d7cd791b 13532 "returns" : {
9fda36b0
DM
13533 "items" : {
13534 "properties" : {
13535 "count" : {
13536 "description" : "RBL recject count.",
13537 "type" : "number"
13538 },
13539 "index" : {
13540 "description" : "Time index.",
13541 "type" : "integer"
13542 },
13543 "time" : {
13544 "description" : "Time (Unix epoch).",
13545 "type" : "integer"
13546 }
13547 },
13548 "type" : "object"
13549 },
13550 "type" : "array"
d7cd791b
DM
13551 }
13552 }
13553 },
13554 "leaf" : 1,
9fda36b0
DM
13555 "path" : "/statistics/rblcount",
13556 "text" : "rblcount"
d7cd791b
DM
13557 }
13558 ],
13559 "info" : {
13560 "GET" : {
13561 "description" : "Directory index.",
13562 "method" : "GET",
13563 "name" : "index",
13564 "parameters" : {
13565 "additionalProperties" : 0
13566 },
13567 "permissions" : {
9fda36b0
DM
13568 "check" : [
13569 "admin",
13570 "qmanager",
13571 "audit"
13572 ]
d7cd791b
DM
13573 },
13574 "returns" : {
13575 "items" : {
13576 "properties" : {},
13577 "type" : "object"
13578 },
13579 "links" : [
13580 {
13581 "href" : "{name}",
13582 "rel" : "child"
13583 }
13584 ],
13585 "type" : "array"
13586 }
13587 }
13588 },
13589 "leaf" : 0,
9fda36b0
DM
13590 "path" : "/statistics",
13591 "text" : "statistics"
d7cd791b 13592 },
410dc2c9
DM
13593 {
13594 "info" : {
13595 "GET" : {
13596 "description" : "API version details.",
13597 "method" : "GET",
13598 "name" : "version",
13599 "parameters" : {
13600 "additionalProperties" : 0
13601 },
13602 "permissions" : {
13603 "user" : "all"
13604 },
13605 "returns" : {
13606 "properties" : {
13607 "release" : {
13608 "type" : "string"
13609 },
13610 "repoid" : {
13611 "type" : "string"
13612 },
13613 "version" : {
13614 "type" : "string"
13615 }
13616 },
13617 "type" : "object"
13618 }
13619 }
13620 },
13621 "leaf" : 1,
13622 "path" : "/version",
13623 "text" : "version"
13624 }
13625]
13626;
13627