]> git.proxmox.com Git - pmg-docs.git/blobdiff - api-viewer/apidata.js
run make update
[pmg-docs.git] / api-viewer / apidata.js
index 665681c48e86a962e5ba1ec96f828e98739741dc..e9b4de29ffc35cfe9eb39afe3f7d46985e915ed3 100644 (file)
@@ -6,6 +6,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Returns the rule database digest. This is used internally for cluster synchronization.",
                         "method" : "GET",
                         "name" : "ruledb_digest",
@@ -34,6 +35,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Get common rule properties.",
                                     "method" : "GET",
                                     "name" : "config",
@@ -76,6 +78,7 @@ var pmgapi = [
                                     }
                                  },
                                  "PUT" : {
+                                    "allowtoken" : 1,
                                     "description" : "Set rule properties.",
                                     "method" : "PUT",
                                     "name" : "update_config",
@@ -89,7 +92,7 @@ var pmgapi = [
                                              "typetext" : "<boolean>"
                                           },
                                           "direction" : {
-                                             "description" : "Rule direction. Value `0` matches incomming mails, value `1` matches outgoing mails, and value `2` matches both directions.",
+                                             "description" : "Rule direction. Value `0` matches incoming mails, value `1` matches outgoing mails, and value `2` matches both directions.",
                                              "maximum" : 2,
                                              "minimum" : 0,
                                              "optional" : 1,
@@ -138,6 +141,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "DELETE" : {
+                                          "allowtoken" : 1,
                                           "description" : "Delete group from 'from' list.",
                                           "method" : "DELETE",
                                           "name" : "delete_from_group",
@@ -175,6 +179,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Get 'from' group list.",
                                     "method" : "GET",
                                     "name" : "from",
@@ -208,6 +213,7 @@ var pmgapi = [
                                     }
                                  },
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add  group to 'from' list.",
                                     "method" : "POST",
                                     "name" : "add_from_group",
@@ -247,6 +253,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "DELETE" : {
+                                          "allowtoken" : 1,
                                           "description" : "Delete group from 'to' list.",
                                           "method" : "DELETE",
                                           "name" : "delete_to_group",
@@ -284,6 +291,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Get 'to' group list.",
                                     "method" : "GET",
                                     "name" : "to",
@@ -317,6 +325,7 @@ var pmgapi = [
                                     }
                                  },
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add  group to 'to' list.",
                                     "method" : "POST",
                                     "name" : "add_to_group",
@@ -356,6 +365,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "DELETE" : {
+                                          "allowtoken" : 1,
                                           "description" : "Delete group from 'when' list.",
                                           "method" : "DELETE",
                                           "name" : "delete_when_group",
@@ -393,6 +403,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Get 'when' group list.",
                                     "method" : "GET",
                                     "name" : "when",
@@ -426,6 +437,7 @@ var pmgapi = [
                                     }
                                  },
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add  group to 'when' list.",
                                     "method" : "POST",
                                     "name" : "add_when_group",
@@ -465,6 +477,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "DELETE" : {
+                                          "allowtoken" : 1,
                                           "description" : "Delete group from 'what' list.",
                                           "method" : "DELETE",
                                           "name" : "delete_what_group",
@@ -502,6 +515,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Get 'what' group list.",
                                     "method" : "GET",
                                     "name" : "what",
@@ -535,6 +549,7 @@ var pmgapi = [
                                     }
                                  },
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add  group to 'what' list.",
                                     "method" : "POST",
                                     "name" : "add_what_group",
@@ -574,6 +589,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "DELETE" : {
+                                          "allowtoken" : 1,
                                           "description" : "Delete group from 'action' list.",
                                           "method" : "DELETE",
                                           "name" : "delete_action_group",
@@ -611,6 +627,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Get 'action' group list.",
                                     "method" : "GET",
                                     "name" : "action",
@@ -644,6 +661,7 @@ var pmgapi = [
                                     }
                                  },
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add  group to 'action' list.",
                                     "method" : "POST",
                                     "name" : "add_action_group",
@@ -681,6 +699,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "DELETE" : {
+                              "allowtoken" : 1,
                               "description" : "Delete rule.",
                               "method" : "DELETE",
                               "name" : "delete_rule",
@@ -706,6 +725,7 @@ var pmgapi = [
                               }
                            },
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Directory index.",
                               "method" : "GET",
                               "name" : "index",
@@ -751,6 +771,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Get list of rules.",
                         "method" : "GET",
                         "name" : "list_rules",
@@ -783,6 +804,7 @@ var pmgapi = [
                         }
                      },
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Create new rule.",
                         "method" : "POST",
                         "name" : "create_rule",
@@ -796,7 +818,7 @@ var pmgapi = [
                                  "typetext" : "<boolean>"
                               },
                               "direction" : {
-                                 "description" : "Rule direction. Value `0` matches incomming mails, value `1` matches outgoing mails, and value `2` matches both directions.",
+                                 "description" : "Rule direction. Value `0` matches incoming mails, value `1` matches outgoing mails, and value `2` matches both directions.",
                                  "maximum" : 2,
                                  "minimum" : 0,
                                  "optional" : 1,
@@ -840,6 +862,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "DELETE" : {
+                                    "allowtoken" : 1,
                                     "description" : "Delete 'actions' object.",
                                     "method" : "DELETE",
                                     "name" : "delete_action",
@@ -872,6 +895,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "List 'actions' objects.",
                               "method" : "GET",
                               "name" : "list_actions",
@@ -915,6 +939,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Read 'BCC' object settings.",
                                     "method" : "GET",
                                     "name" : "read_bcc",
@@ -945,6 +970,7 @@ var pmgapi = [
                                     }
                                  },
                                  "PUT" : {
+                                    "allowtoken" : 1,
                                     "description" : "Update 'BCC' object.",
                                     "method" : "PUT",
                                     "name" : "update_bcc",
@@ -1004,6 +1030,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "POST" : {
+                              "allowtoken" : 1,
                               "description" : "Create 'BCC' object.",
                               "method" : "POST",
                               "name" : "bcc",
@@ -1060,6 +1087,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Read 'Header Attribute' object settings.",
                                     "method" : "GET",
                                     "name" : "read_field",
@@ -1090,6 +1118,7 @@ var pmgapi = [
                                     }
                                  },
                                  "PUT" : {
+                                    "allowtoken" : 1,
                                     "description" : "Update 'Header Attribute' object.",
                                     "method" : "PUT",
                                     "name" : "update_field",
@@ -1148,6 +1177,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "POST" : {
+                              "allowtoken" : 1,
                               "description" : "Create 'Header Attribute' object.",
                               "method" : "POST",
                               "name" : "field",
@@ -1203,6 +1233,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Read 'Notification' object settings.",
                                     "method" : "GET",
                                     "name" : "read_notification",
@@ -1233,6 +1264,7 @@ var pmgapi = [
                                     }
                                  },
                                  "PUT" : {
+                                    "allowtoken" : 1,
                                     "description" : "Update 'Notification' object.",
                                     "method" : "PUT",
                                     "name" : "update_notification",
@@ -1304,6 +1336,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "POST" : {
+                              "allowtoken" : 1,
                               "description" : "Create 'Notification' object.",
                               "method" : "POST",
                               "name" : "notification",
@@ -1372,6 +1405,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Read 'Disclaimer' object settings.",
                                     "method" : "GET",
                                     "name" : "read_disclaimer",
@@ -1402,6 +1436,7 @@ var pmgapi = [
                                     }
                                  },
                                  "PUT" : {
+                                    "allowtoken" : 1,
                                     "description" : "Update 'Disclaimer' object.",
                                     "method" : "PUT",
                                     "name" : "update_disclaimer",
@@ -1454,6 +1489,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "POST" : {
+                              "allowtoken" : 1,
                               "description" : "Create 'Disclaimer' object.",
                               "method" : "POST",
                               "name" : "disclaimer",
@@ -1503,6 +1539,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Read 'Remove attachments' object settings.",
                                     "method" : "GET",
                                     "name" : "read_removeattachments",
@@ -1533,6 +1570,7 @@ var pmgapi = [
                                     }
                                  },
                                  "PUT" : {
+                                    "allowtoken" : 1,
                                     "description" : "Update 'Remove attachments' object.",
                                     "method" : "PUT",
                                     "name" : "update_removeattachments",
@@ -1598,6 +1636,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "POST" : {
+                              "allowtoken" : 1,
                               "description" : "Create 'Remove attachments' object.",
                               "method" : "POST",
                               "name" : "removeattachments",
@@ -1658,6 +1697,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Directory index.",
                         "method" : "GET",
                         "name" : "index",
@@ -1700,6 +1740,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Get 'what' group properties",
                                     "method" : "GET",
                                     "name" : "get_config",
@@ -1736,6 +1777,7 @@ var pmgapi = [
                                     }
                                  },
                                  "PUT" : {
+                                    "allowtoken" : 1,
                                     "description" : "Modify 'what' group properties",
                                     "method" : "PUT",
                                     "name" : "set_config",
@@ -1784,6 +1826,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "DELETE" : {
+                                          "allowtoken" : 1,
                                           "description" : "Remove an object from the 'what' group.",
                                           "method" : "DELETE",
                                           "name" : "delete_object",
@@ -1821,6 +1864,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "List 'what' group objects.",
                                     "method" : "GET",
                                     "name" : "objects",
@@ -1869,6 +1913,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'ContentType Filter' object settings.",
                                           "method" : "GET",
                                           "name" : "read_contenttype",
@@ -1904,6 +1949,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'ContentType Filter' object.",
                                           "method" : "PUT",
                                           "name" : "update_contenttype",
@@ -1947,6 +1993,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'ContentType Filter' object.",
                                     "method" : "POST",
                                     "name" : "contenttype",
@@ -1988,6 +2035,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'Match Field' object settings.",
                                           "method" : "GET",
                                           "name" : "read_matchfield",
@@ -2023,6 +2071,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'Match Field' object.",
                                           "method" : "PUT",
                                           "name" : "update_matchfield",
@@ -2072,6 +2121,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'Match Field' object.",
                                     "method" : "POST",
                                     "name" : "matchfield",
@@ -2119,6 +2169,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'Spam Filter' object settings.",
                                           "method" : "GET",
                                           "name" : "read_spamfilter",
@@ -2154,6 +2205,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'Spam Filter' object.",
                                           "method" : "PUT",
                                           "name" : "update_spamfilter",
@@ -2197,6 +2249,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'Spam Filter' object.",
                                     "method" : "POST",
                                     "name" : "spamfilter",
@@ -2238,6 +2291,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'Archive Filter' object settings.",
                                           "method" : "GET",
                                           "name" : "read_archivefilter",
@@ -2273,6 +2327,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'Archive Filter' object.",
                                           "method" : "PUT",
                                           "name" : "update_archivefilter",
@@ -2316,6 +2371,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'Archive Filter' object.",
                                     "method" : "POST",
                                     "name" : "archivefilter",
@@ -2357,6 +2413,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'Match Filename' object settings.",
                                           "method" : "GET",
                                           "name" : "read_filenamefilter",
@@ -2392,6 +2449,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'Match Filename' object.",
                                           "method" : "PUT",
                                           "name" : "update_filenamefilter",
@@ -2435,6 +2493,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'Match Filename' object.",
                                     "method" : "POST",
                                     "name" : "filenamefilter",
@@ -2476,6 +2535,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'Virus Filter' object settings.",
                                           "method" : "GET",
                                           "name" : "read_virusfilter",
@@ -2511,6 +2571,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'Virus Filter' object.",
                                           "method" : "PUT",
                                           "name" : "update_virusfilter",
@@ -2548,6 +2609,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'Virus Filter' object.",
                                     "method" : "POST",
                                     "name" : "virusfilter",
@@ -2577,10 +2639,133 @@ var pmgapi = [
                               "leaf" : 0,
                               "path" : "/config/ruledb/what/{ogroup}/virusfilter",
                               "text" : "virusfilter"
+                           },
+                           {
+                              "children" : [
+                                 {
+                                    "info" : {
+                                       "GET" : {
+                                          "allowtoken" : 1,
+                                          "description" : "Read 'Match Archive Filename' object settings.",
+                                          "method" : "GET",
+                                          "name" : "read_archivefilenamefilter",
+                                          "parameters" : {
+                                             "additionalProperties" : 0,
+                                             "properties" : {
+                                                "id" : {
+                                                   "description" : "Object ID.",
+                                                   "type" : "integer",
+                                                   "typetext" : "<integer>"
+                                                },
+                                                "ogroup" : {
+                                                   "description" : "Object Groups ID.",
+                                                   "type" : "integer",
+                                                   "typetext" : "<integer>"
+                                                }
+                                             }
+                                          },
+                                          "permissions" : {
+                                             "check" : [
+                                                "admin",
+                                                "audit"
+                                             ]
+                                          },
+                                          "proxyto" : "master",
+                                          "returns" : {
+                                             "properties" : {
+                                                "id" : {
+                                                   "type" : "integer"
+                                                }
+                                             },
+                                             "type" : "object"
+                                          }
+                                       },
+                                       "PUT" : {
+                                          "allowtoken" : 1,
+                                          "description" : "Update 'Match Archive Filename' object.",
+                                          "method" : "PUT",
+                                          "name" : "update_archivefilenamefilter",
+                                          "parameters" : {
+                                             "additionalProperties" : 0,
+                                             "properties" : {
+                                                "filename" : {
+                                                   "description" : "Filename filter",
+                                                   "maxLength" : 1024,
+                                                   "type" : "string",
+                                                   "typetext" : "<string>"
+                                                },
+                                                "id" : {
+                                                   "description" : "Object ID.",
+                                                   "type" : "integer",
+                                                   "typetext" : "<integer>"
+                                                },
+                                                "ogroup" : {
+                                                   "description" : "Object Groups ID.",
+                                                   "type" : "integer",
+                                                   "typetext" : "<integer>"
+                                                }
+                                             }
+                                          },
+                                          "permissions" : {
+                                             "check" : [
+                                                "admin"
+                                             ]
+                                          },
+                                          "protected" : 1,
+                                          "proxyto" : "master",
+                                          "returns" : {
+                                             "type" : "null"
+                                          }
+                                       }
+                                    },
+                                    "leaf" : 1,
+                                    "path" : "/config/ruledb/what/{ogroup}/archivefilenamefilter/{id}",
+                                    "text" : "{id}"
+                                 }
+                              ],
+                              "info" : {
+                                 "POST" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Add 'Match Archive Filename' object.",
+                                    "method" : "POST",
+                                    "name" : "archivefilenamefilter",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "filename" : {
+                                             "description" : "Filename filter",
+                                             "maxLength" : 1024,
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "ogroup" : {
+                                             "description" : "Object Groups ID.",
+                                             "type" : "integer",
+                                             "typetext" : "<integer>"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "master",
+                                    "returns" : {
+                                       "description" : "The object ID.",
+                                       "type" : "integer"
+                                    }
+                                 }
+                              },
+                              "leaf" : 0,
+                              "path" : "/config/ruledb/what/{ogroup}/archivefilenamefilter",
+                              "text" : "archivefilenamefilter"
                            }
                         ],
                         "info" : {
                            "DELETE" : {
+                              "allowtoken" : 1,
                               "description" : "Delete a 'what' group.",
                               "method" : "DELETE",
                               "name" : "delete_{$oclass}_group",
@@ -2606,6 +2791,7 @@ var pmgapi = [
                               }
                            },
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Directory index.",
                               "method" : "GET",
                               "name" : "index",
@@ -2651,6 +2837,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Get list of 'what' groups.",
                         "method" : "GET",
                         "name" : "list_what_groups",
@@ -2677,6 +2864,7 @@ var pmgapi = [
                         }
                      },
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Create a new 'what' group.",
                         "method" : "POST",
                         "name" : "create_what_group",
@@ -2721,6 +2909,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Get 'when' group properties",
                                     "method" : "GET",
                                     "name" : "get_config",
@@ -2757,6 +2946,7 @@ var pmgapi = [
                                     }
                                  },
                                  "PUT" : {
+                                    "allowtoken" : 1,
                                     "description" : "Modify 'when' group properties",
                                     "method" : "PUT",
                                     "name" : "set_config",
@@ -2805,6 +2995,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "DELETE" : {
+                                          "allowtoken" : 1,
                                           "description" : "Remove an object from the 'when' group.",
                                           "method" : "DELETE",
                                           "name" : "delete_object",
@@ -2842,6 +3033,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "List 'when' group objects.",
                                     "method" : "GET",
                                     "name" : "objects",
@@ -2890,6 +3082,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'TimeFrame' object settings.",
                                           "method" : "GET",
                                           "name" : "read_timeframe",
@@ -2925,6 +3118,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'TimeFrame' object.",
                                           "method" : "PUT",
                                           "name" : "update_timeframe",
@@ -2972,6 +3166,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'TimeFrame' object.",
                                     "method" : "POST",
                                     "name" : "timeframe",
@@ -3015,6 +3210,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "DELETE" : {
+                              "allowtoken" : 1,
                               "description" : "Delete a 'when' group.",
                               "method" : "DELETE",
                               "name" : "delete_{$oclass}_group",
@@ -3040,6 +3236,7 @@ var pmgapi = [
                               }
                            },
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Directory index.",
                               "method" : "GET",
                               "name" : "index",
@@ -3085,6 +3282,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Get list of 'when' groups.",
                         "method" : "GET",
                         "name" : "list_when_groups",
@@ -3111,6 +3309,7 @@ var pmgapi = [
                         }
                      },
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Create a new 'when' group.",
                         "method" : "POST",
                         "name" : "create_when_group",
@@ -3155,6 +3354,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Get 'who' group properties",
                                     "method" : "GET",
                                     "name" : "get_config",
@@ -3191,6 +3391,7 @@ var pmgapi = [
                                     }
                                  },
                                  "PUT" : {
+                                    "allowtoken" : 1,
                                     "description" : "Modify 'who' group properties",
                                     "method" : "PUT",
                                     "name" : "set_config",
@@ -3239,6 +3440,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "DELETE" : {
+                                          "allowtoken" : 1,
                                           "description" : "Remove an object from the 'who' group.",
                                           "method" : "DELETE",
                                           "name" : "delete_object",
@@ -3276,6 +3478,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "List 'who' group objects.",
                                     "method" : "GET",
                                     "name" : "objects",
@@ -3324,6 +3527,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'Mail address' object settings.",
                                           "method" : "GET",
                                           "name" : "read_email",
@@ -3359,6 +3563,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'Mail address' object.",
                                           "method" : "PUT",
                                           "name" : "update_email",
@@ -3402,6 +3607,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'Mail address' object.",
                                     "method" : "POST",
                                     "name" : "email",
@@ -3443,6 +3649,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'Domain' object settings.",
                                           "method" : "GET",
                                           "name" : "read_domain",
@@ -3478,6 +3685,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'Domain' object.",
                                           "method" : "PUT",
                                           "name" : "update_domain",
@@ -3521,6 +3729,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'Domain' object.",
                                     "method" : "POST",
                                     "name" : "domain",
@@ -3562,6 +3771,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'Regular Expression' object settings.",
                                           "method" : "GET",
                                           "name" : "read_regex",
@@ -3597,6 +3807,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'Regular Expression' object.",
                                           "method" : "PUT",
                                           "name" : "update_regex",
@@ -3640,6 +3851,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'Regular Expression' object.",
                                     "method" : "POST",
                                     "name" : "regex",
@@ -3681,6 +3893,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'IP Address' object settings.",
                                           "method" : "GET",
                                           "name" : "read_ip",
@@ -3716,6 +3929,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'IP Address' object.",
                                           "method" : "PUT",
                                           "name" : "update_ip",
@@ -3759,6 +3973,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'IP Address' object.",
                                     "method" : "POST",
                                     "name" : "ip",
@@ -3800,6 +4015,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'IP Network' object settings.",
                                           "method" : "GET",
                                           "name" : "read_network",
@@ -3835,6 +4051,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'IP Network' object.",
                                           "method" : "PUT",
                                           "name" : "update_network",
@@ -3878,6 +4095,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'IP Network' object.",
                                     "method" : "POST",
                                     "name" : "network",
@@ -3919,6 +4137,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'LDAP Group' object settings.",
                                           "method" : "GET",
                                           "name" : "read_ldap",
@@ -3954,6 +4173,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'LDAP Group' object.",
                                           "method" : "PUT",
                                           "name" : "update_ldap",
@@ -4015,6 +4235,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'LDAP Group' object.",
                                     "method" : "POST",
                                     "name" : "ldap",
@@ -4074,6 +4295,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Read 'LDAP User' object settings.",
                                           "method" : "GET",
                                           "name" : "read_ldapuser",
@@ -4109,6 +4331,7 @@ var pmgapi = [
                                           }
                                        },
                                        "PUT" : {
+                                          "allowtoken" : 1,
                                           "description" : "Update 'LDAP User' object.",
                                           "method" : "PUT",
                                           "name" : "update_ldapuser",
@@ -4159,6 +4382,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "POST" : {
+                                    "allowtoken" : 1,
                                     "description" : "Add 'LDAP User' object.",
                                     "method" : "POST",
                                     "name" : "ldapuser",
@@ -4205,6 +4429,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "DELETE" : {
+                              "allowtoken" : 1,
                               "description" : "Delete a 'who' group.",
                               "method" : "DELETE",
                               "name" : "delete_{$oclass}_group",
@@ -4230,6 +4455,7 @@ var pmgapi = [
                               }
                            },
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Directory index.",
                               "method" : "GET",
                               "name" : "index",
@@ -4275,6 +4501,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Get list of 'who' groups.",
                         "method" : "GET",
                         "name" : "list_who_groups",
@@ -4301,6 +4528,7 @@ var pmgapi = [
                         }
                      },
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Create a new 'who' group.",
                         "method" : "POST",
                         "name" : "create_who_group",
@@ -4341,6 +4569,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Directory index.",
                   "method" : "GET",
                   "name" : "index",
@@ -4368,6 +4597,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Reset PMG rule database back to factory defaults.",
                   "method" : "POST",
                   "name" : "reset_ruledb",
@@ -4396,6 +4626,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "DELETE" : {
+                              "allowtoken" : 1,
                               "description" : "Remove an object from the SMTP whitelist.",
                               "method" : "DELETE",
                               "name" : "delete_object",
@@ -4428,6 +4659,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Get list of all SMTP whitelist entries.",
                         "method" : "GET",
                         "name" : "objects",
@@ -4469,6 +4701,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Read 'Mail address' object settings.",
                               "method" : "GET",
                               "name" : "read_email",
@@ -4499,6 +4732,7 @@ var pmgapi = [
                               }
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update 'Mail address' object.",
                               "method" : "PUT",
                               "name" : "update_email",
@@ -4537,6 +4771,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Add 'Mail address' object.",
                         "method" : "POST",
                         "name" : "email",
@@ -4573,6 +4808,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Read 'Mail address' object settings.",
                               "method" : "GET",
                               "name" : "read_receiver",
@@ -4603,6 +4839,7 @@ var pmgapi = [
                               }
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update 'Mail address' object.",
                               "method" : "PUT",
                               "name" : "update_receiver",
@@ -4641,6 +4878,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Add 'Mail address' object.",
                         "method" : "POST",
                         "name" : "receiver",
@@ -4677,6 +4915,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Read 'Domain' object settings.",
                               "method" : "GET",
                               "name" : "read_domain",
@@ -4707,6 +4946,7 @@ var pmgapi = [
                               }
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update 'Domain' object.",
                               "method" : "PUT",
                               "name" : "update_domain",
@@ -4745,6 +4985,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Add 'Domain' object.",
                         "method" : "POST",
                         "name" : "domain",
@@ -4781,6 +5022,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Read 'Domain' object settings.",
                               "method" : "GET",
                               "name" : "read_receiver_domain",
@@ -4811,6 +5053,7 @@ var pmgapi = [
                               }
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update 'Domain' object.",
                               "method" : "PUT",
                               "name" : "update_receiver_domain",
@@ -4849,6 +5092,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Add 'Domain' object.",
                         "method" : "POST",
                         "name" : "receiver_domain",
@@ -4885,6 +5129,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Read 'Regular Expression' object settings.",
                               "method" : "GET",
                               "name" : "read_regex",
@@ -4915,6 +5160,7 @@ var pmgapi = [
                               }
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update 'Regular Expression' object.",
                               "method" : "PUT",
                               "name" : "update_regex",
@@ -4953,6 +5199,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Add 'Regular Expression' object.",
                         "method" : "POST",
                         "name" : "regex",
@@ -4989,6 +5236,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Read 'Regular Expression' object settings.",
                               "method" : "GET",
                               "name" : "read_receiver_regex",
@@ -5019,6 +5267,7 @@ var pmgapi = [
                               }
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update 'Regular Expression' object.",
                               "method" : "PUT",
                               "name" : "update_receiver_regex",
@@ -5057,6 +5306,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Add 'Regular Expression' object.",
                         "method" : "POST",
                         "name" : "receiver_regex",
@@ -5093,6 +5343,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Read 'IP Address' object settings.",
                               "method" : "GET",
                               "name" : "read_ip",
@@ -5123,6 +5374,7 @@ var pmgapi = [
                               }
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update 'IP Address' object.",
                               "method" : "PUT",
                               "name" : "update_ip",
@@ -5161,6 +5413,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Add 'IP Address' object.",
                         "method" : "POST",
                         "name" : "ip",
@@ -5197,6 +5450,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Read 'IP Network' object settings.",
                               "method" : "GET",
                               "name" : "read_network",
@@ -5227,6 +5481,7 @@ var pmgapi = [
                               }
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update 'IP Network' object.",
                               "method" : "PUT",
                               "name" : "update_network",
@@ -5265,6 +5520,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Add 'IP Network' object.",
                         "method" : "POST",
                         "name" : "network",
@@ -5299,6 +5555,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Directory index.",
                   "method" : "GET",
                   "name" : "index",
@@ -5341,6 +5598,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Get LDAP profile configuration.",
                               "method" : "GET",
                               "name" : "read_config",
@@ -5365,6 +5623,7 @@ var pmgapi = [
                               "returns" : {}
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update LDAP profile settings.",
                               "method" : "PUT",
                               "name" : "update_config",
@@ -5529,6 +5788,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "POST" : {
+                              "allowtoken" : 1,
                               "description" : "Synchronice LDAP users to local database.",
                               "method" : "POST",
                               "name" : "sync_profile",
@@ -5564,6 +5824,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "Get all email addresses for the specified user.",
                                     "method" : "GET",
                                     "name" : "address_list",
@@ -5615,6 +5876,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "List LDAP users.",
                               "method" : "GET",
                               "name" : "profile_list_users",
@@ -5671,6 +5933,7 @@ var pmgapi = [
                            {
                               "info" : {
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "List LDAP group members.",
                                     "method" : "GET",
                                     "name" : "profile_list_group_members",
@@ -5724,6 +5987,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "List LDAP groups.",
                               "method" : "GET",
                               "name" : "profile_list_groups",
@@ -5775,6 +6039,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Delete an LDAP profile",
                         "method" : "DELETE",
                         "name" : "delete",
@@ -5801,6 +6066,7 @@ var pmgapi = [
                         }
                      },
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Directory index",
                         "method" : "GET",
                         "name" : "profile_index",
@@ -5844,6 +6110,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "List configured LDAP profiles.",
                   "method" : "GET",
                   "name" : "index",
@@ -5905,6 +6172,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Add LDAP profile.",
                   "method" : "POST",
                   "name" : "create",
@@ -6056,6 +6324,7 @@ var pmgapi = [
                {
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Delete a relay domain",
                         "method" : "DELETE",
                         "name" : "delete",
@@ -6082,6 +6351,7 @@ var pmgapi = [
                         }
                      },
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read Domain data (comment).",
                         "method" : "GET",
                         "name" : "read",
@@ -6116,6 +6386,7 @@ var pmgapi = [
                         }
                      },
                      "PUT" : {
+                        "allowtoken" : 1,
                         "description" : "Update relay domain data (comment).",
                         "method" : "PUT",
                         "name" : "write",
@@ -6154,6 +6425,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "List relay domains.",
                   "method" : "GET",
                   "name" : "index",
@@ -6189,6 +6461,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Add relay domain.",
                   "method" : "POST",
                   "name" : "create",
@@ -6230,6 +6503,7 @@ var pmgapi = [
                {
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Delete a fetchmail configuration entry.",
                         "method" : "DELETE",
                         "name" : "delete",
@@ -6256,6 +6530,7 @@ var pmgapi = [
                         }
                      },
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read fetchmail user configuration.",
                         "method" : "GET",
                         "name" : "read",
@@ -6344,7 +6619,7 @@ var pmgapi = [
                                  "maxLength" : 512,
                                  "minLength" : 3,
                                  "optional" : 1,
-                                 "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                                 "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                                  "type" : "string"
                               },
                               "user" : {
@@ -6359,6 +6634,7 @@ var pmgapi = [
                         }
                      },
                      "PUT" : {
+                        "allowtoken" : 1,
                         "description" : "Update fetchmail user configuration.",
                         "method" : "PUT",
                         "name" : "write",
@@ -6436,7 +6712,7 @@ var pmgapi = [
                                  "maxLength" : 512,
                                  "minLength" : 3,
                                  "optional" : 1,
-                                 "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                                 "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                                  "type" : "string"
                               },
                               "user" : {
@@ -6468,6 +6744,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "List fetchmail users.",
                   "method" : "GET",
                   "name" : "index",
@@ -6549,7 +6826,7 @@ var pmgapi = [
                               "maxLength" : 512,
                               "minLength" : 3,
                               "optional" : 1,
-                              "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                              "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                               "type" : "string"
                            },
                            "user" : {
@@ -6572,6 +6849,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Create fetchmail user configuration.",
                   "method" : "POST",
                   "name" : "create",
@@ -6639,7 +6917,7 @@ var pmgapi = [
                            "description" : "The target email address (where to deliver fetched mails).",
                            "maxLength" : 512,
                            "minLength" : 3,
-                           "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                            "type" : "string"
                         },
                         "user" : {
@@ -6675,6 +6953,7 @@ var pmgapi = [
                {
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Delete a transport map entry",
                         "method" : "DELETE",
                         "name" : "delete",
@@ -6701,6 +6980,7 @@ var pmgapi = [
                         }
                      },
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read transport map entry.",
                         "method" : "GET",
                         "name" : "read",
@@ -6736,6 +7016,9 @@ var pmgapi = [
                               "port" : {
                                  "type" : "integer"
                               },
+                              "protocol" : {
+                                 "type" : "string"
+                              },
                               "use_mx" : {
                                  "type" : "boolean"
                               }
@@ -6744,6 +7027,7 @@ var pmgapi = [
                         }
                      },
                      "PUT" : {
+                        "allowtoken" : 1,
                         "description" : "Update transport map entry.",
                         "method" : "PUT",
                         "name" : "write",
@@ -6764,21 +7048,31 @@ var pmgapi = [
                               },
                               "host" : {
                                  "description" : "Target host (name or IP address).",
-                                 "format" : "address",
+                                 "format" : "transport-address",
                                  "optional" : 1,
                                  "type" : "string",
                                  "typetext" : "<string>"
                               },
                               "port" : {
-                                 "description" : "SMTP port.",
+                                 "description" : "Transport port.",
                                  "maximum" : 65535,
                                  "minimum" : 1,
                                  "optional" : 1,
                                  "type" : "integer",
                                  "typetext" : "<integer> (1 - 65535)"
                               },
+                              "protocol" : {
+                                 "default" : "smtp",
+                                 "description" : "Transport protocol.",
+                                 "enum" : [
+                                    "smtp",
+                                    "lmtp"
+                                 ],
+                                 "optional" : 1,
+                                 "type" : "string"
+                              },
                               "use_mx" : {
-                                 "description" : "Enable MX lookups.",
+                                 "description" : "Enable MX lookups (SMTP).",
                                  "optional" : 1,
                                  "type" : "boolean",
                                  "typetext" : "<boolean>"
@@ -6804,6 +7098,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "List transport map entries.",
                   "method" : "GET",
                   "name" : "index",
@@ -6832,6 +7127,9 @@ var pmgapi = [
                            "port" : {
                               "type" : "integer"
                            },
+                           "protocol" : {
+                              "type" : "string"
+                           },
                            "use_mx" : {
                               "type" : "boolean"
                            }
@@ -6848,6 +7146,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Add transport map entry.",
                   "method" : "POST",
                   "name" : "create",
@@ -6868,22 +7167,32 @@ var pmgapi = [
                         },
                         "host" : {
                            "description" : "Target host (name or IP address).",
-                           "format" : "address",
+                           "format" : "transport-address",
                            "type" : "string",
                            "typetext" : "<string>"
                         },
                         "port" : {
                            "default" : 25,
-                           "description" : "SMTP port.",
+                           "description" : "Transport port.",
                            "maximum" : 65535,
                            "minimum" : 1,
                            "optional" : 1,
                            "type" : "integer",
                            "typetext" : "<integer> (1 - 65535)"
                         },
+                        "protocol" : {
+                           "default" : "smtp",
+                           "description" : "Transport protocol.",
+                           "enum" : [
+                              "smtp",
+                              "lmtp"
+                           ],
+                           "optional" : 1,
+                           "type" : "string"
+                        },
                         "use_mx" : {
                            "default" : 1,
-                           "description" : "Enable MX lookups.",
+                           "description" : "Enable MX lookups (SMTP).",
                            "optional" : 1,
                            "type" : "boolean",
                            "typetext" : "<boolean>"
@@ -6911,6 +7220,7 @@ var pmgapi = [
                {
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Delete a truster network",
                         "method" : "DELETE",
                         "name" : "delete",
@@ -6937,6 +7247,7 @@ var pmgapi = [
                         }
                      },
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read trusted network data (comment).",
                         "method" : "GET",
                         "name" : "read",
@@ -6971,6 +7282,7 @@ var pmgapi = [
                         }
                      },
                      "PUT" : {
+                        "allowtoken" : 1,
                         "description" : "Update trusted data (comment).",
                         "method" : "PUT",
                         "name" : "write",
@@ -7008,6 +7320,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "List of trusted networks from where SMTP clients are allowed to relay mail through Proxmox Mail Gateway.",
                   "method" : "GET",
                   "name" : "index",
@@ -7040,6 +7353,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Add a trusted network.",
                   "method" : "POST",
                   "name" : "create",
@@ -7081,6 +7395,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Cluster node index.",
                         "method" : "GET",
                         "name" : "nodes",
@@ -7125,6 +7440,7 @@ var pmgapi = [
                         }
                      },
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Add an node to the cluster config.",
                         "method" : "POST",
                         "name" : "add_node",
@@ -7196,6 +7512,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Cluster node status.",
                         "method" : "GET",
                         "name" : "status",
@@ -7262,6 +7579,7 @@ var pmgapi = [
                {
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Create initial cluster config with current node as master.",
                         "method" : "POST",
                         "name" : "create",
@@ -7281,6 +7599,7 @@ var pmgapi = [
                {
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Join local node to an existing cluster.",
                         "method" : "POST",
                         "name" : "join",
@@ -7315,10 +7634,32 @@ var pmgapi = [
                   "leaf" : 1,
                   "path" : "/config/cluster/join",
                   "text" : "join"
+               },
+               {
+                  "info" : {
+                     "POST" : {
+                        "allowtoken" : 1,
+                        "description" : "Update API certificate fingerprints (by fetching it via ssh).",
+                        "method" : "POST",
+                        "name" : "update_fingerprints",
+                        "parameters" : {
+                           "additionalProperties" : 0
+                        },
+                        "protected" : 1,
+                        "proxyto" : "master",
+                        "returns" : {
+                           "type" : "null"
+                        }
+                     }
+                  },
+                  "leaf" : 1,
+                  "path" : "/config/cluster/update-fingerprints",
+                  "text" : "update-fingerprints"
                }
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Directory index.",
                   "method" : "GET",
                   "name" : "index",
@@ -7350,6 +7691,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get Mime Types List",
                   "method" : "GET",
                   "name" : "index",
@@ -7381,15 +7723,16 @@ var pmgapi = [
                {
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Delete a tls_policy entry",
                         "method" : "DELETE",
                         "name" : "delete",
                         "parameters" : {
                            "additionalProperties" : 0,
                            "properties" : {
-                              "domain" : {
-                                 "description" : "Domain name.",
-                                 "format" : "transport-domain",
+                              "destination" : {
+                                 "description" : "Destination (Domain or next-hop).",
+                                 "format" : "transport-domain-or-nexthop",
                                  "type" : "string",
                                  "typetext" : "<string>"
                               }
@@ -7407,15 +7750,16 @@ var pmgapi = [
                         }
                      },
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read tls_policy entry.",
                         "method" : "GET",
                         "name" : "read",
                         "parameters" : {
                            "additionalProperties" : 0,
                            "properties" : {
-                              "domain" : {
-                                 "description" : "Domain name.",
-                                 "format" : "transport-domain",
+                              "destination" : {
+                                 "description" : "Destination (Domain or next-hop).",
+                                 "format" : "transport-domain-or-nexthop",
                                  "type" : "string",
                                  "typetext" : "<string>"
                               }
@@ -7430,8 +7774,8 @@ var pmgapi = [
                         "proxyto" : "master",
                         "returns" : {
                            "properties" : {
-                              "domain" : {
-                                 "format" : "transport-domain",
+                              "destination" : {
+                                 "format" : "transport-domain-or-nexthop",
                                  "type" : "string"
                               },
                               "policy" : {
@@ -7443,15 +7787,16 @@ var pmgapi = [
                         }
                      },
                      "PUT" : {
+                        "allowtoken" : 1,
                         "description" : "Update tls_policy entry.",
                         "method" : "PUT",
                         "name" : "write",
                         "parameters" : {
                            "additionalProperties" : 0,
                            "properties" : {
-                              "domain" : {
-                                 "description" : "Domain name.",
-                                 "format" : "transport-domain",
+                              "destination" : {
+                                 "description" : "Destination (Domain or next-hop).",
+                                 "format" : "transport-domain-or-nexthop",
                                  "type" : "string",
                                  "typetext" : "<string>"
                               },
@@ -7476,12 +7821,13 @@ var pmgapi = [
                      }
                   },
                   "leaf" : 1,
-                  "path" : "/config/tlspolicy/{domain}",
-                  "text" : "{domain}"
+                  "path" : "/config/tlspolicy/{destination}",
+                  "text" : "{destination}"
                }
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "List tls_policy entries.",
                   "method" : "GET",
                   "name" : "index",
@@ -7498,8 +7844,8 @@ var pmgapi = [
                   "returns" : {
                      "items" : {
                         "properties" : {
-                           "domain" : {
-                              "format" : "transport-domain",
+                           "destination" : {
+                              "format" : "transport-domain-or-nexthop",
                               "type" : "string"
                            },
                            "policy" : {
@@ -7511,7 +7857,7 @@ var pmgapi = [
                      },
                      "links" : [
                         {
-                           "href" : "{domain}",
+                           "href" : "{destination}",
                            "rel" : "child"
                         }
                      ],
@@ -7519,15 +7865,16 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Add tls_policy entry.",
                   "method" : "POST",
                   "name" : "create",
                   "parameters" : {
                      "additionalProperties" : 0,
                      "properties" : {
-                        "domain" : {
-                           "description" : "Domain name.",
-                           "format" : "transport-domain",
+                        "destination" : {
+                           "description" : "Destination (Domain or next-hop).",
+                           "format" : "transport-domain-or-nexthop",
                            "type" : "string",
                            "typetext" : "<string>"
                         },
@@ -7562,6 +7909,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "DELETE" : {
+                              "allowtoken" : 1,
                               "description" : "Delete a DKIM-sign domain",
                               "method" : "DELETE",
                               "name" : "delete",
@@ -7588,6 +7936,7 @@ var pmgapi = [
                               }
                            },
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Read Domain data (comment).",
                               "method" : "GET",
                               "name" : "read",
@@ -7622,6 +7971,7 @@ var pmgapi = [
                               }
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update DKIM-sign domain data (comment).",
                               "method" : "PUT",
                               "name" : "write",
@@ -7660,6 +8010,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "List DKIM-sign domains.",
                         "method" : "GET",
                         "name" : "index",
@@ -7695,6 +8046,7 @@ var pmgapi = [
                         }
                      },
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Add DKIM-sign domain.",
                         "method" : "POST",
                         "name" : "create",
@@ -7734,6 +8086,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Get the public key for the configured selector, prepared as DKIM TXT record",
                         "method" : "GET",
                         "name" : "get_selector_info",
@@ -7769,12 +8122,19 @@ var pmgapi = [
                         }
                      },
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Generate a new private key for selector. All future mail will be signed with the new key!",
                         "method" : "POST",
                         "name" : "set_selector",
                         "parameters" : {
                            "additionalProperties" : 0,
                            "properties" : {
+                              "force" : {
+                                 "description" : "Overwrite existing key",
+                                 "optional" : 1,
+                                 "type" : "boolean",
+                                 "typetext" : "<boolean>"
+                              },
                               "keysize" : {
                                  "description" : "Number of bits for the RSA-Key",
                                  "minimum" : 1024,
@@ -7804,10 +8164,52 @@ var pmgapi = [
                   "leaf" : 1,
                   "path" : "/config/dkim/selector",
                   "text" : "selector"
+               },
+               {
+                  "info" : {
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "Get a list of all existing selectors",
+                        "method" : "GET",
+                        "name" : "get_selector_list",
+                        "parameters" : {
+                           "additionalProperties" : 0
+                        },
+                        "permissions" : {
+                           "check" : [
+                              "admin"
+                           ]
+                        },
+                        "protected" : 1,
+                        "proxyto" : "master",
+                        "returns" : {
+                           "items" : {
+                              "properties" : {
+                                 "selector" : {
+                                    "format" : "dns-name",
+                                    "type" : "string"
+                                 }
+                              },
+                              "type" : "object"
+                           },
+                           "links" : [
+                              {
+                                 "href" : "{selector}",
+                                 "rel" : "child"
+                              }
+                           ],
+                           "type" : "array"
+                        }
+                     }
+                  },
+                  "leaf" : 1,
+                  "path" : "/config/dkim/selectors",
+                  "text" : "selectors"
                }
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Directory index.",
                   "method" : "GET",
                   "name" : "index",
@@ -7842,6 +8244,7 @@ var pmgapi = [
                {
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Edit custom SpamAssassin score",
                         "method" : "DELETE",
                         "name" : "delete_score",
@@ -7869,6 +8272,7 @@ var pmgapi = [
                         }
                      },
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Get custom SpamAssassin score",
                         "method" : "GET",
                         "name" : "get_score",
@@ -7905,6 +8309,7 @@ var pmgapi = [
                         }
                      },
                      "PUT" : {
+                        "allowtoken" : 1,
                         "description" : "Edit custom SpamAssassin score",
                         "method" : "PUT",
                         "name" : "edit_score",
@@ -7950,6 +8355,7 @@ var pmgapi = [
             ],
             "info" : {
                "DELETE" : {
+                  "allowtoken" : 1,
                   "description" : "Revert custom score changes.",
                   "method" : "DELETE",
                   "name" : "revert_score_changes",
@@ -7968,6 +8374,7 @@ var pmgapi = [
                   }
                },
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "List custom scores.",
                   "method" : "GET",
                   "name" : "list_scores",
@@ -8019,6 +8426,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Create custom SpamAssassin score",
                   "method" : "POST",
                   "name" : "create_score",
@@ -8057,6 +8465,7 @@ var pmgapi = [
                   }
                },
                "PUT" : {
+                  "allowtoken" : 1,
                   "description" : "Apply custom score changes.",
                   "method" : "PUT",
                   "name" : "apply_score_changes",
@@ -8096,164 +8505,220 @@ var pmgapi = [
             "text" : "customscores"
          },
          {
-            "info" : {
-               "GET" : {
-                  "description" : "Read admin configuration properties.",
-                  "method" : "GET",
-                  "name" : "read_admin_section",
-                  "parameters" : {
-                     "additionalProperties" : 0
-                  },
-                  "permissions" : {
-                     "check" : [
-                        "admin",
-                        "audit"
-                     ]
-                  },
-                  "proxyto" : "master",
-                  "returns" : {
-                     "type" : "object"
-                  }
-               },
-               "PUT" : {
-                  "description" : "Update admin configuration properties.",
-                  "method" : "PUT",
-                  "name" : "update_admin_section",
-                  "parameters" : {
-                     "additionalProperties" : 0,
-                     "properties" : {
-                        "advfilter" : {
-                           "default" : 1,
-                           "description" : "Use advanced filters for statistic.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "avast" : {
-                           "default" : 0,
-                           "description" : "Use Avast Virus Scanner (/usr/bin/scan). You need to buy and install 'Avast Core Security' before you can enable this feature.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
+            "children" : [
+               {
+                  "info" : {
+                     "DELETE" : {
+                        "allowtoken" : 1,
+                        "description" : "Delete an PBS remote",
+                        "method" : "DELETE",
+                        "name" : "delete",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "remote" : {
+                                 "description" : "Profile ID.",
+                                 "format" : "pve-configid",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
                         },
-                        "clamav" : {
-                           "default" : 1,
-                           "description" : "Use ClamAV Virus Scanner. This is the default virus scanner and is enabled by default.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "custom_check" : {
-                           "default" : 0,
-                           "description" : "Use Custom Check Script. The script has to take the defined arguments and can return Virus findings or a Spamscore.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "custom_check_path" : {
-                           "default" : "/usr/local/bin/pmg-custom-check",
-                           "description" : "Absolute Path to the Custom Check Script",
-                           "optional" : 1,
-                           "pattern" : "^/([^/\\0]+\\/)+[^/\\0]+$",
-                           "type" : "string"
-                        },
-                        "dailyreport" : {
-                           "default" : 1,
-                           "description" : "Send daily reports.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "delete" : {
-                           "description" : "A list of settings you want to delete.",
-                           "format" : "pve-configid-list",
-                           "maxLength" : 4096,
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
-                        },
-                        "demo" : {
-                           "default" : 0,
-                           "description" : "Demo mode - do not start SMTP filter.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "digest" : {
-                           "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
-                           "maxLength" : 40,
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
-                        },
-                        "dkim_selector" : {
-                           "description" : "Default DKIM selector",
-                           "format" : "dns-name",
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
+                        "permissions" : {
+                           "check" : [
+                              "admin"
+                           ]
                         },
-                        "dkim_sign" : {
-                           "default" : 0,
-                           "description" : "DKIM sign outbound mails with the configured Selector.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
+                        "protected" : 1,
+                        "proxyto" : "master",
+                        "returns" : {
+                           "type" : "null"
+                        }
+                     },
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "Get Proxmox Backup Server remote configuration.",
+                        "method" : "GET",
+                        "name" : "read_config",
+                        "parameters" : {
+                           "additionalProperties" : 1,
+                           "properties" : {
+                              "remote" : {
+                                 "description" : "Proxmox Backup Server ID.",
+                                 "format" : "pve-configid",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
                         },
-                        "dkim_sign_all_mail" : {
-                           "default" : 0,
-                           "description" : "DKIM sign all outgoing mails irrespective of the Envelope From domain.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
+                        "permissions" : {
+                           "check" : [
+                              "admin",
+                              "audit"
+                           ]
                         },
-                        "email" : {
-                           "default" : "admin@domain.tld",
-                           "description" : "Administrator E-Mail address.",
-                           "format" : "email",
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
+                        "proxyto" : "master",
+                        "returns" : {}
+                     },
+                     "PUT" : {
+                        "allowtoken" : 1,
+                        "description" : "Update PBS remote settings.",
+                        "method" : "PUT",
+                        "name" : "update_config",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "datastore" : {
+                                 "description" : "Proxmox Backup Server datastore name.",
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "delete" : {
+                                 "description" : "A list of settings you want to delete.",
+                                 "format" : "pve-configid-list",
+                                 "maxLength" : 4096,
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "digest" : {
+                                 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
+                                 "maxLength" : 40,
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "disable" : {
+                                 "description" : "Flag to disable (deactivate) the entry.",
+                                 "optional" : 1,
+                                 "type" : "boolean",
+                                 "typetext" : "<boolean>"
+                              },
+                              "fingerprint" : {
+                                 "description" : "Certificate SHA 256 fingerprint.",
+                                 "optional" : 1,
+                                 "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
+                                 "type" : "string"
+                              },
+                              "include-statistics" : {
+                                 "description" : "Include statistics in scheduled backups",
+                                 "optional" : 1,
+                                 "type" : "boolean",
+                                 "typetext" : "<boolean>"
+                              },
+                              "keep-daily" : {
+                                 "description" : "Keep backups for the last <N> different days. If there is more than one backup for a single day, only the latest one is kept.",
+                                 "format_description" : "N",
+                                 "minimum" : "0",
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<N>"
+                              },
+                              "keep-hourly" : {
+                                 "description" : "Keep backups for the last <N> different hours. If there is more than one backup for a single hour, only the latest one is kept.",
+                                 "format_description" : "N",
+                                 "minimum" : "0",
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<N>"
+                              },
+                              "keep-last" : {
+                                 "description" : "Keep the last <N> backups.",
+                                 "format_description" : "N",
+                                 "minimum" : "0",
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<N>"
+                              },
+                              "keep-monthly" : {
+                                 "description" : "Keep backups for the last <N> different months. If there is more than one backup for a single month, only the latest one is kept.",
+                                 "format_description" : "N",
+                                 "minimum" : "0",
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<N>"
+                              },
+                              "keep-weekly" : {
+                                 "description" : "Keep backups for the last <N> different weeks. If there ismore than one backup for a single week, only the latest one is kept.",
+                                 "format_description" : "N",
+                                 "minimum" : "0",
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<N>"
+                              },
+                              "keep-yearly" : {
+                                 "description" : "Keep backups for the last <N> different years. If there is more than one backup for a single year, only the latest one is kept.",
+                                 "format_description" : "N",
+                                 "minimum" : "0",
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<N>"
+                              },
+                              "notify" : {
+                                 "description" : "Specify when to notify via e-mail",
+                                 "enum" : [
+                                    "always",
+                                    "error",
+                                    "never"
+                                 ],
+                                 "optional" : 1,
+                                 "type" : "string"
+                              },
+                              "password" : {
+                                 "description" : "Password or API token secret for the user on the Proxmox Backup Server.",
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "remote" : {
+                                 "description" : "Proxmox Backup Server ID.",
+                                 "format" : "pve-configid",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "server" : {
+                                 "description" : "Proxmox Backup Server address.",
+                                 "format" : "address",
+                                 "maxLength" : 256,
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "username" : {
+                                 "description" : "Username or API token ID on the Proxmox Backup Server",
+                                 "maxLength" : 512,
+                                 "minLength" : 3,
+                                 "optional" : 1,
+                                 "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                                 "type" : "string"
+                              }
+                           },
+                           "type" : "object"
                         },
-                        "http_proxy" : {
-                           "description" : "Specify external http proxy which is used for downloads (example: 'http://username:password@host:port/')",
-                           "optional" : 1,
-                           "pattern" : "http://.*",
-                           "type" : "string"
+                        "permissions" : {
+                           "check" : [
+                              "admin"
+                           ]
                         },
-                        "statlifetime" : {
-                           "default" : 7,
-                           "description" : "User Statistics Lifetime (days)",
-                           "minimum" : 1,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (1 - N)"
+                        "protected" : 1,
+                        "proxyto" : "master",
+                        "returns" : {
+                           "type" : "null"
                         }
-                     },
-                     "type" : "object"
-                  },
-                  "permissions" : {
-                     "check" : [
-                        "admin"
-                     ]
+                     }
                   },
-                  "protected" : 1,
-                  "proxyto" : "master",
-                  "returns" : {
-                     "type" : "null"
-                  }
+                  "leaf" : 1,
+                  "path" : "/config/pbs/{remote}",
+                  "text" : "{remote}"
                }
-            },
-            "leaf" : 1,
-            "path" : "/config/admin",
-            "text" : "admin"
-         },
-         {
+            ],
             "info" : {
                "GET" : {
-                  "description" : "Read clamav configuration properties.",
+                  "allowtoken" : 1,
+                  "description" : "List all configured Proxmox Backup Server instances.",
                   "method" : "GET",
-                  "name" : "read_clamav_section",
+                  "name" : "list",
                   "parameters" : {
                      "additionalProperties" : 0
                   },
@@ -8263,395 +8728,238 @@ var pmgapi = [
                         "audit"
                      ]
                   },
+                  "protected" : 1,
                   "proxyto" : "master",
                   "returns" : {
-                     "type" : "object"
-                  }
-               },
-               "PUT" : {
-                  "description" : "Update clamav configuration properties.",
-                  "method" : "PUT",
-                  "name" : "update_clamav_section",
-                  "parameters" : {
-                     "additionalProperties" : 0,
-                     "properties" : {
-                        "archiveblockencrypted" : {
-                           "default" : 0,
-                           "description" : "Whether to mark encrypted archives and documents as heuristic virus match. A match does not necessarily result in an immediate block, it just raises the Spam Score by 'clamav_heuristic_score'.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "archivemaxfiles" : {
-                           "default" : 1000,
-                           "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.",
-                           "minimum" : 0,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (0 - N)"
-                        },
-                        "archivemaxrec" : {
-                           "default" : 5,
-                           "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.",
-                           "minimum" : 1,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (1 - N)"
-                        },
-                        "archivemaxsize" : {
-                           "default" : 25000000,
-                           "description" : "Files larger than this limit (in bytes) won't be scanned.",
-                           "minimum" : 1000000,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (1000000 - N)"
-                        },
-                        "dbmirror" : {
-                           "default" : "database.clamav.net",
-                           "description" : "ClamAV database mirror server.",
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
-                        },
-                        "delete" : {
-                           "description" : "A list of settings you want to delete.",
-                           "format" : "pve-configid-list",
-                           "maxLength" : 4096,
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
-                        },
-                        "digest" : {
-                           "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
-                           "maxLength" : 40,
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
-                        },
-                        "maxcccount" : {
-                           "default" : 0,
-                           "description" : "This option sets the lowest number of Credit Card or Social Security numbers found in a file to generate a detect.",
-                           "minimum" : 0,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (0 - N)"
-                        },
-                        "maxscansize" : {
-                           "default" : 100000000,
-                           "description" : "Sets the maximum amount of data (in bytes) to be scanned for each input file.",
-                           "minimum" : 1000000,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (1000000 - N)"
+                     "items" : {
+                        "additionalProperties" : 0,
+                        "properties" : {
+                           "datastore" : {
+                              "description" : "Proxmox Backup Server datastore name.",
+                              "optional" : 0,
+                              "type" : "string"
+                           },
+                           "disable" : {
+                              "description" : "Flag to disable (deactivate) the entry.",
+                              "optional" : 1,
+                              "type" : "boolean"
+                           },
+                           "fingerprint" : {
+                              "description" : "Certificate SHA 256 fingerprint.",
+                              "optional" : 1,
+                              "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
+                              "type" : "string"
+                           },
+                           "include-statistics" : {
+                              "description" : "Include statistics in scheduled backups",
+                              "optional" : 1,
+                              "type" : "boolean"
+                           },
+                           "keep-daily" : {
+                              "description" : "Keep backups for the last <N> different days. If there is more than one backup for a single day, only the latest one is kept.",
+                              "format_description" : "N",
+                              "minimum" : "0",
+                              "optional" : 1,
+                              "type" : "integer"
+                           },
+                           "keep-hourly" : {
+                              "description" : "Keep backups for the last <N> different hours. If there is more than one backup for a single hour, only the latest one is kept.",
+                              "format_description" : "N",
+                              "minimum" : "0",
+                              "optional" : 1,
+                              "type" : "integer"
+                           },
+                           "keep-last" : {
+                              "description" : "Keep the last <N> backups.",
+                              "format_description" : "N",
+                              "minimum" : "0",
+                              "optional" : 1,
+                              "type" : "integer"
+                           },
+                           "keep-monthly" : {
+                              "description" : "Keep backups for the last <N> different months. If there is more than one backup for a single month, only the latest one is kept.",
+                              "format_description" : "N",
+                              "minimum" : "0",
+                              "optional" : 1,
+                              "type" : "integer"
+                           },
+                           "keep-weekly" : {
+                              "description" : "Keep backups for the last <N> different weeks. If there ismore than one backup for a single week, only the latest one is kept.",
+                              "format_description" : "N",
+                              "minimum" : "0",
+                              "optional" : 1,
+                              "type" : "integer"
+                           },
+                           "keep-yearly" : {
+                              "description" : "Keep backups for the last <N> different years. If there is more than one backup for a single year, only the latest one is kept.",
+                              "format_description" : "N",
+                              "minimum" : "0",
+                              "optional" : 1,
+                              "type" : "integer"
+                           },
+                           "notify" : {
+                              "description" : "Specify when to notify via e-mail",
+                              "enum" : [
+                                 "always",
+                                 "error",
+                                 "never"
+                              ],
+                              "optional" : 1,
+                              "type" : "string"
+                           },
+                           "password" : {
+                              "description" : "Password or API token secret for the user on the Proxmox Backup Server.",
+                              "optional" : 1,
+                              "type" : "string"
+                           },
+                           "remote" : {
+                              "description" : "Proxmox Backup Server ID.",
+                              "format" : "pve-configid",
+                              "type" : "string"
+                           },
+                           "server" : {
+                              "description" : "Proxmox Backup Server address.",
+                              "format" : "address",
+                              "maxLength" : 256,
+                              "optional" : 0,
+                              "type" : "string"
+                           },
+                           "username" : {
+                              "description" : "Username or API token ID on the Proxmox Backup Server",
+                              "maxLength" : 512,
+                              "minLength" : 3,
+                              "optional" : 1,
+                              "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                              "type" : "string"
+                           }
                         },
-                        "safebrowsing" : {
-                           "default" : 1,
-                           "description" : "Enables support for Google Safe Browsing.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        }
+                        "type" : "object"
                      },
-                     "type" : "object"
-                  },
-                  "permissions" : {
-                     "check" : [
-                        "admin"
-                     ]
-                  },
-                  "protected" : 1,
-                  "proxyto" : "master",
-                  "returns" : {
-                     "type" : "null"
-                  }
-               }
-            },
-            "leaf" : 1,
-            "path" : "/config/clamav",
-            "text" : "clamav"
-         },
-         {
-            "info" : {
-               "GET" : {
-                  "description" : "Read mail configuration properties.",
-                  "method" : "GET",
-                  "name" : "read_mail_section",
-                  "parameters" : {
-                     "additionalProperties" : 0
-                  },
-                  "permissions" : {
-                     "check" : [
-                        "admin",
-                        "audit"
-                     ]
-                  },
-                  "proxyto" : "master",
-                  "returns" : {
-                     "type" : "object"
+                     "links" : [
+                        {
+                           "href" : "{remote}",
+                           "rel" : "child"
+                        }
+                     ],
+                     "type" : "array"
                   }
                },
-               "PUT" : {
-                  "description" : "Update mail configuration properties.",
-                  "method" : "PUT",
-                  "name" : "update_mail_section",
+               "POST" : {
+                  "allowtoken" : 1,
+                  "description" : "Add Proxmox Backup Server remote instance.",
+                  "method" : "POST",
+                  "name" : "create",
                   "parameters" : {
                      "additionalProperties" : 0,
                      "properties" : {
-                        "banner" : {
-                           "default" : "ESMTP Proxmox",
-                           "description" : "ESMTP banner.",
-                           "maxLength" : 1024,
-                           "optional" : 1,
+                        "datastore" : {
+                           "description" : "Proxmox Backup Server datastore name.",
+                           "optional" : 0,
                            "type" : "string",
                            "typetext" : "<string>"
                         },
-                        "before_queue_filtering" : {
-                           "default" : 0,
-                           "description" : "Enable before queue filtering by pmg-smtp-filter",
+                        "disable" : {
+                           "description" : "Flag to disable (deactivate) the entry.",
                            "optional" : 1,
                            "type" : "boolean",
                            "typetext" : "<boolean>"
                         },
-                        "conn_count_limit" : {
-                           "default" : 50,
-                           "description" : "How many simultaneous connections any client is allowed to make to this service. To disable this feature, specify a limit of 0.",
-                           "minimum" : 0,
+                        "fingerprint" : {
+                           "description" : "Certificate SHA 256 fingerprint.",
                            "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (0 - N)"
+                           "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
+                           "type" : "string"
                         },
-                        "conn_rate_limit" : {
-                           "default" : 0,
-                           "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.",
-                           "minimum" : 0,
+                        "include-statistics" : {
+                           "description" : "Include statistics in scheduled backups",
                            "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (0 - N)"
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
                         },
-                        "delete" : {
-                           "description" : "A list of settings you want to delete.",
-                           "format" : "pve-configid-list",
-                           "maxLength" : 4096,
+                        "keep-daily" : {
+                           "description" : "Keep backups for the last <N> different days. If there is more than one backup for a single day, only the latest one is kept.",
+                           "format_description" : "N",
+                           "minimum" : "0",
                            "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
+                           "type" : "integer",
+                           "typetext" : "<N>"
                         },
-                        "digest" : {
-                           "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
-                           "maxLength" : 40,
+                        "keep-hourly" : {
+                           "description" : "Keep backups for the last <N> different hours. If there is more than one backup for a single hour, only the latest one is kept.",
+                           "format_description" : "N",
+                           "minimum" : "0",
                            "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
+                           "type" : "integer",
+                           "typetext" : "<N>"
                         },
-                        "dnsbl_sites" : {
-                           "description" : "Optional list of DNS white/blacklist domains (see postscreen_dnsbl_sites parameter).",
-                           "format" : "dnsbl-entry-list",
+                        "keep-last" : {
+                           "description" : "Keep the last <N> backups.",
+                           "format_description" : "N",
+                           "minimum" : "0",
                            "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
+                           "type" : "integer",
+                           "typetext" : "<N>"
                         },
-                        "dnsbl_threshold" : {
-                           "default" : 1,
-                           "description" : "The inclusive lower bound for blocking a remote SMTP client, based on its combined DNSBL score (see postscreen_dnsbl_threshold parameter).",
-                           "minimum" : 0,
+                        "keep-monthly" : {
+                           "description" : "Keep backups for the last <N> different months. If there is more than one backup for a single month, only the latest one is kept.",
+                           "format_description" : "N",
+                           "minimum" : "0",
                            "optional" : 1,
                            "type" : "integer",
-                           "typetext" : "<integer> (0 - N)"
+                           "typetext" : "<N>"
                         },
-                        "dwarning" : {
-                           "default" : 4,
-                           "description" : "SMTP delay warning time (in hours).",
-                           "minimum" : 0,
+                        "keep-weekly" : {
+                           "description" : "Keep backups for the last <N> different weeks. If there ismore than one backup for a single week, only the latest one is kept.",
+                           "format_description" : "N",
+                           "minimum" : "0",
                            "optional" : 1,
                            "type" : "integer",
-                           "typetext" : "<integer> (0 - N)"
+                           "typetext" : "<N>"
                         },
-                        "ext_port" : {
-                           "default" : 25,
-                           "description" : "SMTP port number for incoming mail (untrusted). This must be a different number than 'int_port'.",
-                           "maximum" : 65535,
-                           "minimum" : 1,
+                        "keep-yearly" : {
+                           "description" : "Keep backups for the last <N> different years. If there is more than one backup for a single year, only the latest one is kept.",
+                           "format_description" : "N",
+                           "minimum" : "0",
                            "optional" : 1,
                            "type" : "integer",
-                           "typetext" : "<integer> (1 - 65535)"
+                           "typetext" : "<N>"
                         },
-                        "greylist" : {
-                           "default" : 1,
-                           "description" : "Use Greylisting.",
+                        "notify" : {
+                           "description" : "Specify when to notify via e-mail",
+                           "enum" : [
+                              "always",
+                              "error",
+                              "never"
+                           ],
                            "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
+                           "type" : "string"
                         },
-                        "helotests" : {
-                           "default" : 0,
-                           "description" : "Use SMTP HELO tests.",
+                        "password" : {
+                           "description" : "Password or API token secret for the user on the Proxmox Backup Server.",
                            "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
+                           "type" : "string",
+                           "typetext" : "<string>"
                         },
-                        "hide_received" : {
-                           "default" : 0,
-                           "description" : "Hide received header in outgoing mails.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
+                        "remote" : {
+                           "description" : "Proxmox Backup Server ID.",
+                           "format" : "pve-configid",
+                           "type" : "string",
+                           "typetext" : "<string>"
                         },
-                        "int_port" : {
-                           "default" : 26,
-                           "description" : "SMTP port number for outgoing mail (trusted).",
-                           "maximum" : 65535,
-                           "minimum" : 1,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (1 - 65535)"
+                        "server" : {
+                           "description" : "Proxmox Backup Server address.",
+                           "format" : "address",
+                           "maxLength" : 256,
+                           "optional" : 0,
+                           "type" : "string",
+                           "typetext" : "<string>"
                         },
-                        "max_filters" : {
-                           "default" : 35,
-                           "description" : "Maximum number of pmg-smtp-filter processes.",
-                           "maximum" : 40,
-                           "minimum" : 3,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (3 - 40)"
-                        },
-                        "max_policy" : {
-                           "default" : 5,
-                           "description" : "Maximum number of pmgpolicy processes.",
-                           "maximum" : 10,
-                           "minimum" : 2,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (2 - 10)"
-                        },
-                        "max_smtpd_in" : {
-                           "default" : 100,
-                           "description" : "Maximum number of SMTP daemon processes (in).",
-                           "maximum" : 100,
-                           "minimum" : 3,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (3 - 100)"
-                        },
-                        "max_smtpd_out" : {
-                           "default" : 100,
-                           "description" : "Maximum number of SMTP daemon processes (out).",
-                           "maximum" : 100,
-                           "minimum" : 3,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (3 - 100)"
-                        },
-                        "maxsize" : {
-                           "default" : 10485760,
-                           "description" : "Maximum email size. Larger mails are rejected.",
-                           "minimum" : 1024,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (1024 - N)"
-                        },
-                        "message_rate_limit" : {
-                           "default" : 0,
-                           "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.",
-                           "minimum" : 0,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (0 - N)"
-                        },
-                        "ndr_on_block" : {
-                           "default" : 0,
-                           "description" : "Send out NDR when mail gets blocked",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "rejectunknown" : {
-                           "default" : 0,
-                           "description" : "Reject unknown clients.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "rejectunknownsender" : {
-                           "default" : 0,
-                           "description" : "Reject unknown senders.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "relay" : {
-                           "description" : "The default mail delivery transport (incoming mails).",
-                           "format" : "address",
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
-                        },
-                        "relaynomx" : {
-                           "default" : 0,
-                           "description" : "Disable MX lookups for default relay.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "relayport" : {
-                           "default" : 25,
-                           "description" : "SMTP port number for relay host.",
-                           "maximum" : 65535,
-                           "minimum" : 1,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (1 - 65535)"
-                        },
-                        "smarthost" : {
-                           "description" : "When set, all outgoing mails are deliverd to the specified smarthost.",
-                           "format" : "address",
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
-                        },
-                        "smarthostport" : {
-                           "default" : 25,
-                           "description" : "SMTP port number for smarthost.",
-                           "maximum" : 65535,
-                           "minimum" : 1,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (1 - 65535)"
-                        },
-                        "spf" : {
-                           "default" : 1,
-                           "description" : "Use Sender Policy Framework.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "tls" : {
-                           "default" : 0,
-                           "description" : "Enable TLS.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "tlsheader" : {
-                           "default" : 0,
-                           "description" : "Add TLS received header.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "tlslog" : {
-                           "default" : 0,
-                           "description" : "Enable TLS Logging.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "verifyreceivers" : {
-                           "description" : "Enable receiver verification. The value spefifies the numerical reply code when the Postfix SMTP server rejects a recipient address.",
-                           "enum" : [
-                              "450",
-                              "550"
-                           ],
+                        "username" : {
+                           "description" : "Username or API token ID on the Proxmox Backup Server",
+                           "maxLength" : 512,
+                           "minLength" : 3,
                            "optional" : 1,
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                            "type" : "string"
                         }
                      },
@@ -8669,120 +8977,1611 @@ var pmgapi = [
                   }
                }
             },
-            "leaf" : 1,
-            "path" : "/config/mail",
-            "text" : "mail"
+            "leaf" : 0,
+            "path" : "/config/pbs",
+            "text" : "pbs"
          },
          {
-            "info" : {
-               "GET" : {
-                  "description" : "Read spam configuration properties.",
-                  "method" : "GET",
-                  "name" : "read_spam_section",
-                  "parameters" : {
-                     "additionalProperties" : 0
-                  },
-                  "permissions" : {
-                     "check" : [
-                        "admin",
-                        "audit"
-                     ]
-                  },
-                  "proxyto" : "master",
-                  "returns" : {
-                     "type" : "object"
-                  }
-               },
-               "PUT" : {
-                  "description" : "Update spam configuration properties.",
-                  "method" : "PUT",
-                  "name" : "update_spam_section",
-                  "parameters" : {
-                     "additionalProperties" : 0,
-                     "properties" : {
-                        "bounce_score" : {
-                           "default" : 0,
-                           "description" : "Additional score for bounce mails.",
-                           "maximum" : 1000,
-                           "minimum" : 0,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (0 - 1000)"
-                        },
-                        "clamav_heuristic_score" : {
-                           "default" : 3,
-                           "description" : "Score for ClamAV heuristics (Encrypted Archives/Documents, Google Safe Browsing database, PhishingScanURLs, ...).",
-                           "maximum" : 1000,
-                           "minimum" : 0,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (0 - 1000)"
-                        },
-                        "delete" : {
-                           "description" : "A list of settings you want to delete.",
-                           "format" : "pve-configid-list",
-                           "maxLength" : 4096,
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
-                        },
-                        "digest" : {
-                           "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
-                           "maxLength" : 40,
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
-                        },
-                        "languages" : {
-                           "default" : "all",
-                           "description" : "This option is used to specify which languages are considered OK for incoming mail.",
-                           "optional" : 1,
-                           "pattern" : "(all|([a-z][a-z])+( ([a-z][a-z])+)*)",
-                           "type" : "string"
-                        },
-                        "maxspamsize" : {
-                           "default" : 262144,
-                           "description" : "Maximum size of spam messages in bytes.",
-                           "minimum" : 64,
-                           "optional" : 1,
-                           "type" : "integer",
-                           "typetext" : "<integer> (64 - N)"
-                        },
-                        "rbl_checks" : {
-                           "default" : 1,
-                           "description" : "Enable real time blacklists (RBL) checks.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "use_awl" : {
-                           "default" : 1,
-                           "description" : "Use the Auto-Whitelist plugin.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "use_bayes" : {
-                           "default" : 1,
-                           "description" : "Whether to use the naive-Bayesian-style classifier.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "use_razor" : {
-                           "default" : 1,
-                           "description" : "Whether to use Razor2, if it is available.",
-                           "optional" : 1,
-                           "type" : "boolean",
-                           "typetext" : "<boolean>"
-                        },
-                        "wl_bounce_relays" : {
-                           "description" : "Whitelist legitimate bounce relays.",
-                           "optional" : 1,
-                           "type" : "string",
-                           "typetext" : "<string>"
-                        }
-                     },
+            "children" : [
+               {
+                  "children" : [
+                     {
+                        "info" : {
+                           "DELETE" : {
+                              "allowtoken" : 1,
+                              "description" : "Delete ACME plugin configuration.",
+                              "method" : "DELETE",
+                              "name" : "delete_plugin",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "id" : {
+                                       "description" : "Unique identifier for ACME plugin instance.",
+                                       "format" : "pve-configid",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    }
+                                 }
+                              },
+                              "permissions" : {
+                                 "check" : [
+                                    "admin"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "returns" : {
+                                 "type" : "null"
+                              }
+                           },
+                           "GET" : {
+                              "allowtoken" : 1,
+                              "description" : "Get ACME plugin configuration.",
+                              "method" : "GET",
+                              "name" : "get_plugin_config",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "id" : {
+                                       "description" : "Unique identifier for ACME plugin instance.",
+                                       "format" : "pve-configid",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    }
+                                 }
+                              },
+                              "permissions" : {
+                                 "check" : [
+                                    "admin"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "returns" : {
+                                 "type" : "object"
+                              }
+                           },
+                           "PUT" : {
+                              "allowtoken" : 1,
+                              "description" : "Update ACME plugin configuration.",
+                              "method" : "PUT",
+                              "name" : "update_plugin",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "api" : {
+                                       "description" : "API plugin name",
+                                       "enum" : [
+                                          "1984hosting",
+                                          "acmedns",
+                                          "acmeproxy",
+                                          "active24",
+                                          "ad",
+                                          "ali",
+                                          "anx",
+                                          "arvan",
+                                          "aurora",
+                                          "autodns",
+                                          "aws",
+                                          "azure",
+                                          "cf",
+                                          "clouddns",
+                                          "cloudns",
+                                          "cn",
+                                          "conoha",
+                                          "constellix",
+                                          "cx",
+                                          "cyon",
+                                          "da",
+                                          "ddnss",
+                                          "desec",
+                                          "df",
+                                          "dgon",
+                                          "dnsimple",
+                                          "do",
+                                          "doapi",
+                                          "domeneshop",
+                                          "dp",
+                                          "dpi",
+                                          "dreamhost",
+                                          "duckdns",
+                                          "durabledns",
+                                          "dyn",
+                                          "dynu",
+                                          "dynv6",
+                                          "easydns",
+                                          "edgedns",
+                                          "euserv",
+                                          "exoscale",
+                                          "freedns",
+                                          "gandi_livedns",
+                                          "gcloud",
+                                          "gd",
+                                          "gdnsdk",
+                                          "he",
+                                          "hetzner",
+                                          "hexonet",
+                                          "hostingde",
+                                          "huaweicloud",
+                                          "infoblox",
+                                          "infomaniak",
+                                          "internetbs",
+                                          "inwx",
+                                          "ionos",
+                                          "ispconfig",
+                                          "jd",
+                                          "joker",
+                                          "kappernet",
+                                          "kas",
+                                          "kinghost",
+                                          "knot",
+                                          "leaseweb",
+                                          "lexicon",
+                                          "linode",
+                                          "linode_v4",
+                                          "loopia",
+                                          "lua",
+                                          "maradns",
+                                          "me",
+                                          "miab",
+                                          "misaka",
+                                          "myapi",
+                                          "mydevil",
+                                          "mydnsjp",
+                                          "namecheap",
+                                          "namecom",
+                                          "namesilo",
+                                          "nederhost",
+                                          "neodigit",
+                                          "netcup",
+                                          "netlify",
+                                          "nic",
+                                          "njalla",
+                                          "nm",
+                                          "nsd",
+                                          "nsone",
+                                          "nsupdate",
+                                          "nw",
+                                          "one",
+                                          "online",
+                                          "openprovider",
+                                          "openstack",
+                                          "opnsense",
+                                          "ovh",
+                                          "pdns",
+                                          "pleskxml",
+                                          "pointhq",
+                                          "porkbun",
+                                          "rackcorp",
+                                          "rackspace",
+                                          "rcode0",
+                                          "regru",
+                                          "scaleway",
+                                          "schlundtech",
+                                          "selectel",
+                                          "servercow",
+                                          "simply",
+                                          "tele3",
+                                          "transip",
+                                          "ultra",
+                                          "unoeuro",
+                                          "variomedia",
+                                          "vscale",
+                                          "vultr",
+                                          "websupport",
+                                          "world4you",
+                                          "yandex",
+                                          "zilore",
+                                          "zone",
+                                          "zonomi"
+                                       ],
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    },
+                                    "data" : {
+                                       "description" : "DNS plugin data. (base64 encoded)",
+                                       "optional" : 1,
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "delete" : {
+                                       "description" : "A list of settings you want to delete.",
+                                       "format" : "pve-configid-list",
+                                       "maxLength" : 4096,
+                                       "optional" : 1,
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "digest" : {
+                                       "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
+                                       "maxLength" : 40,
+                                       "optional" : 1,
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "disable" : {
+                                       "description" : "Flag to disable the config.",
+                                       "optional" : 1,
+                                       "type" : "boolean",
+                                       "typetext" : "<boolean>"
+                                    },
+                                    "id" : {
+                                       "description" : "ACME Plugin ID name",
+                                       "format" : "pve-configid",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "nodes" : {
+                                       "description" : "List of cluster node names.",
+                                       "format" : "pve-node-list",
+                                       "optional" : 1,
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "validation-delay" : {
+                                       "default" : 30,
+                                       "description" : "Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.",
+                                       "maximum" : 172800,
+                                       "minimum" : 0,
+                                       "optional" : 1,
+                                       "type" : "integer",
+                                       "typetext" : "<integer> (0 - 172800)"
+                                    }
+                                 },
+                                 "type" : "object"
+                              },
+                              "permissions" : {
+                                 "check" : [
+                                    "admin"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "returns" : {
+                                 "type" : "null"
+                              }
+                           }
+                        },
+                        "leaf" : 1,
+                        "path" : "/config/acme/plugins/{id}",
+                        "text" : "{id}"
+                     }
+                  ],
+                  "info" : {
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "ACME plugin index.",
+                        "method" : "GET",
+                        "name" : "index",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "type" : {
+                                 "description" : "Only list ACME plugins of a specific type",
+                                 "enum" : [
+                                    "dns",
+                                    "standalone"
+                                 ],
+                                 "optional" : 1,
+                                 "type" : "string"
+                              }
+                           }
+                        },
+                        "permissions" : {
+                           "check" : [
+                              "admin"
+                           ]
+                        },
+                        "protected" : 1,
+                        "returns" : {
+                           "items" : {
+                              "properties" : {
+                                 "plugin" : {
+                                    "description" : "Unique identifier for ACME plugin instance.",
+                                    "format" : "pve-configid",
+                                    "type" : "string"
+                                 }
+                              },
+                              "type" : "object"
+                           },
+                           "links" : [
+                              {
+                                 "href" : "{plugin}",
+                                 "rel" : "child"
+                              }
+                           ],
+                           "type" : "array"
+                        }
+                     },
+                     "POST" : {
+                        "allowtoken" : 1,
+                        "description" : "Add ACME plugin configuration.",
+                        "method" : "POST",
+                        "name" : "add_plugin",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "api" : {
+                                 "description" : "API plugin name",
+                                 "enum" : [
+                                    "1984hosting",
+                                    "acmedns",
+                                    "acmeproxy",
+                                    "active24",
+                                    "ad",
+                                    "ali",
+                                    "anx",
+                                    "arvan",
+                                    "aurora",
+                                    "autodns",
+                                    "aws",
+                                    "azure",
+                                    "cf",
+                                    "clouddns",
+                                    "cloudns",
+                                    "cn",
+                                    "conoha",
+                                    "constellix",
+                                    "cx",
+                                    "cyon",
+                                    "da",
+                                    "ddnss",
+                                    "desec",
+                                    "df",
+                                    "dgon",
+                                    "dnsimple",
+                                    "do",
+                                    "doapi",
+                                    "domeneshop",
+                                    "dp",
+                                    "dpi",
+                                    "dreamhost",
+                                    "duckdns",
+                                    "durabledns",
+                                    "dyn",
+                                    "dynu",
+                                    "dynv6",
+                                    "easydns",
+                                    "edgedns",
+                                    "euserv",
+                                    "exoscale",
+                                    "freedns",
+                                    "gandi_livedns",
+                                    "gcloud",
+                                    "gd",
+                                    "gdnsdk",
+                                    "he",
+                                    "hetzner",
+                                    "hexonet",
+                                    "hostingde",
+                                    "huaweicloud",
+                                    "infoblox",
+                                    "infomaniak",
+                                    "internetbs",
+                                    "inwx",
+                                    "ionos",
+                                    "ispconfig",
+                                    "jd",
+                                    "joker",
+                                    "kappernet",
+                                    "kas",
+                                    "kinghost",
+                                    "knot",
+                                    "leaseweb",
+                                    "lexicon",
+                                    "linode",
+                                    "linode_v4",
+                                    "loopia",
+                                    "lua",
+                                    "maradns",
+                                    "me",
+                                    "miab",
+                                    "misaka",
+                                    "myapi",
+                                    "mydevil",
+                                    "mydnsjp",
+                                    "namecheap",
+                                    "namecom",
+                                    "namesilo",
+                                    "nederhost",
+                                    "neodigit",
+                                    "netcup",
+                                    "netlify",
+                                    "nic",
+                                    "njalla",
+                                    "nm",
+                                    "nsd",
+                                    "nsone",
+                                    "nsupdate",
+                                    "nw",
+                                    "one",
+                                    "online",
+                                    "openprovider",
+                                    "openstack",
+                                    "opnsense",
+                                    "ovh",
+                                    "pdns",
+                                    "pleskxml",
+                                    "pointhq",
+                                    "porkbun",
+                                    "rackcorp",
+                                    "rackspace",
+                                    "rcode0",
+                                    "regru",
+                                    "scaleway",
+                                    "schlundtech",
+                                    "selectel",
+                                    "servercow",
+                                    "simply",
+                                    "tele3",
+                                    "transip",
+                                    "ultra",
+                                    "unoeuro",
+                                    "variomedia",
+                                    "vscale",
+                                    "vultr",
+                                    "websupport",
+                                    "world4you",
+                                    "yandex",
+                                    "zilore",
+                                    "zone",
+                                    "zonomi"
+                                 ],
+                                 "optional" : 1,
+                                 "type" : "string"
+                              },
+                              "data" : {
+                                 "description" : "DNS plugin data. (base64 encoded)",
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "disable" : {
+                                 "description" : "Flag to disable the config.",
+                                 "optional" : 1,
+                                 "type" : "boolean",
+                                 "typetext" : "<boolean>"
+                              },
+                              "id" : {
+                                 "description" : "ACME Plugin ID name",
+                                 "format" : "pve-configid",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "nodes" : {
+                                 "description" : "List of cluster node names.",
+                                 "format" : "pve-node-list",
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "type" : {
+                                 "description" : "ACME challenge type.",
+                                 "enum" : [
+                                    "dns",
+                                    "standalone"
+                                 ],
+                                 "type" : "string"
+                              },
+                              "validation-delay" : {
+                                 "default" : 30,
+                                 "description" : "Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.",
+                                 "maximum" : 172800,
+                                 "minimum" : 0,
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<integer> (0 - 172800)"
+                              }
+                           },
+                           "type" : "object"
+                        },
+                        "permissions" : {
+                           "check" : [
+                              "admin"
+                           ]
+                        },
+                        "protected" : 1,
+                        "returns" : {
+                           "type" : "null"
+                        }
+                     }
+                  },
+                  "leaf" : 0,
+                  "path" : "/config/acme/plugins",
+                  "text" : "plugins"
+               },
+               {
+                  "children" : [
+                     {
+                        "info" : {
+                           "DELETE" : {
+                              "allowtoken" : 1,
+                              "description" : "Deactivate existing ACME account at CA.",
+                              "method" : "DELETE",
+                              "name" : "deactivate_account",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "force" : {
+                                       "default" : 0,
+                                       "description" : "Delete account data even if the server refuses to deactivate the account.",
+                                       "optional" : 1,
+                                       "type" : "boolean",
+                                       "typetext" : "<boolean>"
+                                    },
+                                    "name" : {
+                                       "default" : "default",
+                                       "description" : "ACME account config file name.",
+                                       "format" : "pve-configid",
+                                       "format_description" : "name",
+                                       "optional" : 1,
+                                       "type" : "string",
+                                       "typetext" : "<name>"
+                                    }
+                                 }
+                              },
+                              "permissions" : {
+                                 "check" : [
+                                    "admin"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "proxyto" : "master",
+                              "returns" : {
+                                 "type" : "string"
+                              }
+                           },
+                           "GET" : {
+                              "allowtoken" : 1,
+                              "description" : "Return existing ACME account information.",
+                              "method" : "GET",
+                              "name" : "get_account",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "name" : {
+                                       "default" : "default",
+                                       "description" : "ACME account config file name.",
+                                       "format" : "pve-configid",
+                                       "format_description" : "name",
+                                       "optional" : 1,
+                                       "type" : "string",
+                                       "typetext" : "<name>"
+                                    }
+                                 }
+                              },
+                              "protected" : 1,
+                              "proxyto" : "master",
+                              "returns" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "account" : {
+                                       "optional" : 1,
+                                       "renderer" : "yaml",
+                                       "type" : "object"
+                                    },
+                                    "directory" : {
+                                       "description" : "URL of ACME CA directory endpoint.",
+                                       "optional" : 1,
+                                       "pattern" : "^https?://.*",
+                                       "type" : "string"
+                                    },
+                                    "location" : {
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    },
+                                    "tos" : {
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    }
+                                 },
+                                 "type" : "object"
+                              }
+                           },
+                           "PUT" : {
+                              "allowtoken" : 1,
+                              "description" : "Update existing ACME account information with CA. Note: not specifying any new account information triggers a refresh.",
+                              "method" : "PUT",
+                              "name" : "update_account",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "contact" : {
+                                       "description" : "Contact email addresses.",
+                                       "format" : "email-list",
+                                       "optional" : 1,
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "name" : {
+                                       "default" : "default",
+                                       "description" : "ACME account config file name.",
+                                       "format" : "pve-configid",
+                                       "format_description" : "name",
+                                       "optional" : 1,
+                                       "type" : "string",
+                                       "typetext" : "<name>"
+                                    }
+                                 }
+                              },
+                              "permissions" : {
+                                 "check" : [
+                                    "admin"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "proxyto" : "master",
+                              "returns" : {
+                                 "type" : "string"
+                              }
+                           }
+                        },
+                        "leaf" : 1,
+                        "path" : "/config/acme/account/{name}",
+                        "text" : "{name}"
+                     }
+                  ],
+                  "info" : {
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "ACME account index.",
+                        "method" : "GET",
+                        "name" : "account_index",
+                        "parameters" : {
+                           "additionalProperties" : 0
+                        },
+                        "permissions" : {
+                           "check" : [
+                              "admin",
+                              "audit"
+                           ]
+                        },
+                        "protected" : 1,
+                        "returns" : {
+                           "items" : {
+                              "properties" : {},
+                              "type" : "object"
+                           },
+                           "links" : [
+                              {
+                                 "href" : "{name}",
+                                 "rel" : "child"
+                              }
+                           ],
+                           "type" : "array"
+                        }
+                     },
+                     "POST" : {
+                        "allowtoken" : 1,
+                        "description" : "Register a new ACME account with CA.",
+                        "method" : "POST",
+                        "name" : "register_account",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "contact" : {
+                                 "description" : "Contact email addresses.",
+                                 "format" : "email-list",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "directory" : {
+                                 "default" : "https://acme-v02.api.letsencrypt.org/directory",
+                                 "description" : "URL of ACME CA directory endpoint.",
+                                 "optional" : 1,
+                                 "pattern" : "^https?://.*",
+                                 "type" : "string"
+                              },
+                              "name" : {
+                                 "default" : "default",
+                                 "description" : "ACME account config file name.",
+                                 "format" : "pve-configid",
+                                 "format_description" : "name",
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<name>"
+                              },
+                              "tos_url" : {
+                                 "description" : "URL of CA TermsOfService - setting this indicates agreement.",
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
+                        },
+                        "permissions" : {
+                           "check" : [
+                              "admin"
+                           ]
+                        },
+                        "protected" : 1,
+                        "proxyto" : "master",
+                        "returns" : {
+                           "type" : "string"
+                        }
+                     }
+                  },
+                  "leaf" : 0,
+                  "path" : "/config/acme/account",
+                  "text" : "account"
+               },
+               {
+                  "info" : {
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "Retrieve ACME TermsOfService URL from CA.",
+                        "method" : "GET",
+                        "name" : "get_tos",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "directory" : {
+                                 "default" : "https://acme-v02.api.letsencrypt.org/directory",
+                                 "description" : "URL of ACME CA directory endpoint.",
+                                 "optional" : 1,
+                                 "pattern" : "^https?://.*",
+                                 "type" : "string"
+                              }
+                           }
+                        },
+                        "permissions" : {
+                           "user" : "all"
+                        },
+                        "returns" : {
+                           "description" : "ACME TermsOfService URL.",
+                           "optional" : 1,
+                           "type" : "string"
+                        }
+                     }
+                  },
+                  "leaf" : 1,
+                  "path" : "/config/acme/tos",
+                  "text" : "tos"
+               },
+               {
+                  "info" : {
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "Get named known ACME directory endpoints.",
+                        "method" : "GET",
+                        "name" : "get_directories",
+                        "parameters" : {
+                           "additionalProperties" : 0
+                        },
+                        "permissions" : {
+                           "user" : "all"
+                        },
+                        "returns" : {
+                           "items" : {
+                              "additionalProperties" : 0,
+                              "properties" : {
+                                 "name" : {
+                                    "type" : "string"
+                                 },
+                                 "url" : {
+                                    "description" : "URL of ACME CA directory endpoint.",
+                                    "pattern" : "^https?://.*",
+                                    "type" : "string"
+                                 }
+                              },
+                              "type" : "object"
+                           },
+                           "type" : "array"
+                        }
+                     }
+                  },
+                  "leaf" : 1,
+                  "path" : "/config/acme/directories",
+                  "text" : "directories"
+               },
+               {
+                  "info" : {
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "Get schema of ACME challenge types.",
+                        "method" : "GET",
+                        "name" : "challenge-schema",
+                        "parameters" : {
+                           "additionalProperties" : 0
+                        },
+                        "permissions" : {
+                           "user" : "all"
+                        },
+                        "returns" : {
+                           "items" : {
+                              "additionalProperties" : 0,
+                              "properties" : {
+                                 "id" : {
+                                    "type" : "string"
+                                 },
+                                 "name" : {
+                                    "description" : "Human readable name, falls back to id",
+                                    "type" : "string"
+                                 },
+                                 "schema" : {
+                                    "type" : "object"
+                                 },
+                                 "type" : {
+                                    "type" : "string"
+                                 }
+                              },
+                              "type" : "object"
+                           },
+                           "type" : "array"
+                        }
+                     }
+                  },
+                  "leaf" : 1,
+                  "path" : "/config/acme/challenge-schema",
+                  "text" : "challenge-schema"
+               }
+            ],
+            "info" : {
+               "GET" : {
+                  "allowtoken" : 1,
+                  "description" : "ACME index.",
+                  "method" : "GET",
+                  "name" : "index",
+                  "parameters" : {
+                     "additionalProperties" : 0
+                  },
+                  "permissions" : {
+                     "user" : "all"
+                  },
+                  "returns" : {
+                     "items" : {
+                        "properties" : {},
+                        "type" : "object"
+                     },
+                     "links" : [
+                        {
+                           "href" : "{name}",
+                           "rel" : "child"
+                        }
+                     ],
+                     "type" : "array"
+                  }
+               }
+            },
+            "leaf" : 0,
+            "path" : "/config/acme",
+            "text" : "acme"
+         },
+         {
+            "info" : {
+               "GET" : {
+                  "allowtoken" : 1,
+                  "description" : "Read admin configuration properties.",
+                  "method" : "GET",
+                  "name" : "read_admin_section",
+                  "parameters" : {
+                     "additionalProperties" : 0
+                  },
+                  "permissions" : {
+                     "check" : [
+                        "admin",
+                        "audit"
+                     ]
+                  },
+                  "proxyto" : "master",
+                  "returns" : {
+                     "type" : "object"
+                  }
+               },
+               "PUT" : {
+                  "allowtoken" : 1,
+                  "description" : "Update admin configuration properties.",
+                  "method" : "PUT",
+                  "name" : "update_admin_section",
+                  "parameters" : {
+                     "additionalProperties" : 0,
+                     "properties" : {
+                        "advfilter" : {
+                           "default" : 1,
+                           "description" : "Use advanced filters for statistic.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "avast" : {
+                           "default" : 0,
+                           "description" : "Use Avast Virus Scanner (/usr/bin/scan). You need to buy and install 'Avast Core Security' before you can enable this feature.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "clamav" : {
+                           "default" : 1,
+                           "description" : "Use ClamAV Virus Scanner. This is the default virus scanner and is enabled by default.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "custom_check" : {
+                           "default" : 0,
+                           "description" : "Use Custom Check Script. The script has to take the defined arguments and can return Virus findings or a Spamscore.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "custom_check_path" : {
+                           "default" : "/usr/local/bin/pmg-custom-check",
+                           "description" : "Absolute Path to the Custom Check Script",
+                           "optional" : 1,
+                           "pattern" : "^/([^/\\0]+\\/)+[^/\\0]+$",
+                           "type" : "string"
+                        },
+                        "dailyreport" : {
+                           "default" : 1,
+                           "description" : "Send daily reports.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "delete" : {
+                           "description" : "A list of settings you want to delete.",
+                           "format" : "pve-configid-list",
+                           "maxLength" : 4096,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "demo" : {
+                           "default" : 0,
+                           "description" : "Demo mode - do not start SMTP filter.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "digest" : {
+                           "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
+                           "maxLength" : 40,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "dkim_selector" : {
+                           "description" : "Default DKIM selector",
+                           "format" : "dns-name",
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "dkim_sign" : {
+                           "default" : 0,
+                           "description" : "DKIM sign outbound mails with the configured Selector.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "dkim_sign_all_mail" : {
+                           "default" : 0,
+                           "description" : "DKIM sign all outgoing mails irrespective of the Envelope From domain.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "email" : {
+                           "default" : "admin@domain.tld",
+                           "description" : "Administrator E-Mail address.",
+                           "format" : "email",
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "http_proxy" : {
+                           "description" : "Specify external http proxy which is used for downloads (example: 'http://username:password@host:port/')",
+                           "optional" : 1,
+                           "pattern" : "http://.*",
+                           "type" : "string"
+                        },
+                        "statlifetime" : {
+                           "default" : 7,
+                           "description" : "User Statistics Lifetime (days)",
+                           "minimum" : 1,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1 - N)"
+                        }
+                     },
+                     "type" : "object"
+                  },
+                  "permissions" : {
+                     "check" : [
+                        "admin"
+                     ]
+                  },
+                  "protected" : 1,
+                  "proxyto" : "master",
+                  "returns" : {
+                     "type" : "null"
+                  }
+               }
+            },
+            "leaf" : 1,
+            "path" : "/config/admin",
+            "text" : "admin"
+         },
+         {
+            "info" : {
+               "GET" : {
+                  "allowtoken" : 1,
+                  "description" : "Read clamav configuration properties.",
+                  "method" : "GET",
+                  "name" : "read_clamav_section",
+                  "parameters" : {
+                     "additionalProperties" : 0
+                  },
+                  "permissions" : {
+                     "check" : [
+                        "admin",
+                        "audit"
+                     ]
+                  },
+                  "proxyto" : "master",
+                  "returns" : {
+                     "type" : "object"
+                  }
+               },
+               "PUT" : {
+                  "allowtoken" : 1,
+                  "description" : "Update clamav configuration properties.",
+                  "method" : "PUT",
+                  "name" : "update_clamav_section",
+                  "parameters" : {
+                     "additionalProperties" : 0,
+                     "properties" : {
+                        "archiveblockencrypted" : {
+                           "default" : 0,
+                           "description" : "Whether to mark encrypted archives and documents as heuristic virus match. A match does not necessarily result in an immediate block, it just raises the Spam Score by 'clamav_heuristic_score'.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "archivemaxfiles" : {
+                           "default" : 1000,
+                           "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.",
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - N)"
+                        },
+                        "archivemaxrec" : {
+                           "default" : 5,
+                           "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.",
+                           "minimum" : 1,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1 - N)"
+                        },
+                        "archivemaxsize" : {
+                           "default" : 25000000,
+                           "description" : "Files larger than this limit (in bytes) won't be scanned.",
+                           "minimum" : 1000000,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1000000 - N)"
+                        },
+                        "dbmirror" : {
+                           "default" : "database.clamav.net",
+                           "description" : "ClamAV database mirror server.",
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "delete" : {
+                           "description" : "A list of settings you want to delete.",
+                           "format" : "pve-configid-list",
+                           "maxLength" : 4096,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "digest" : {
+                           "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
+                           "maxLength" : 40,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "maxcccount" : {
+                           "default" : 0,
+                           "description" : "This option sets the lowest number of Credit Card or Social Security numbers found in a file to generate a detect.",
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - N)"
+                        },
+                        "maxscansize" : {
+                           "default" : 100000000,
+                           "description" : "Sets the maximum amount of data (in bytes) to be scanned for each input file.",
+                           "minimum" : 1000000,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1000000 - N)"
+                        },
+                        "safebrowsing" : {
+                           "default" : 0,
+                           "description" : "Enables support for Google Safe Browsing. (deprecated option, will be ignored)",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "scriptedupdates" : {
+                           "default" : 0,
+                           "description" : "Enables ScriptedUpdates (incremental download of signatures)",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        }
+                     },
+                     "type" : "object"
+                  },
+                  "permissions" : {
+                     "check" : [
+                        "admin"
+                     ]
+                  },
+                  "protected" : 1,
+                  "proxyto" : "master",
+                  "returns" : {
+                     "type" : "null"
+                  }
+               }
+            },
+            "leaf" : 1,
+            "path" : "/config/clamav",
+            "text" : "clamav"
+         },
+         {
+            "info" : {
+               "GET" : {
+                  "allowtoken" : 1,
+                  "description" : "Read mail configuration properties.",
+                  "method" : "GET",
+                  "name" : "read_mail_section",
+                  "parameters" : {
+                     "additionalProperties" : 0
+                  },
+                  "permissions" : {
+                     "check" : [
+                        "admin",
+                        "audit"
+                     ]
+                  },
+                  "proxyto" : "master",
+                  "returns" : {
+                     "type" : "object"
+                  }
+               },
+               "PUT" : {
+                  "allowtoken" : 1,
+                  "description" : "Update mail configuration properties.",
+                  "method" : "PUT",
+                  "name" : "update_mail_section",
+                  "parameters" : {
+                     "additionalProperties" : 0,
+                     "properties" : {
+                        "banner" : {
+                           "default" : "ESMTP Proxmox",
+                           "description" : "ESMTP banner.",
+                           "maxLength" : 1024,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "before_queue_filtering" : {
+                           "default" : 0,
+                           "description" : "Enable before queue filtering by pmg-smtp-filter",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "conn_count_limit" : {
+                           "default" : 50,
+                           "description" : "How many simultaneous connections any client is allowed to make to this service. To disable this feature, specify a limit of 0.",
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - N)"
+                        },
+                        "conn_rate_limit" : {
+                           "default" : 0,
+                           "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.",
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - N)"
+                        },
+                        "delete" : {
+                           "description" : "A list of settings you want to delete.",
+                           "format" : "pve-configid-list",
+                           "maxLength" : 4096,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "digest" : {
+                           "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
+                           "maxLength" : 40,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "dnsbl_sites" : {
+                           "description" : "Optional list of DNS white/blacklist domains (see postscreen_dnsbl_sites parameter).",
+                           "format" : "dnsbl-entry-list",
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "dnsbl_threshold" : {
+                           "default" : 1,
+                           "description" : "The inclusive lower bound for blocking a remote SMTP client, based on its combined DNSBL score (see postscreen_dnsbl_threshold parameter).",
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - N)"
+                        },
+                        "dwarning" : {
+                           "default" : 4,
+                           "description" : "SMTP delay warning time (in hours).",
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - N)"
+                        },
+                        "ext_port" : {
+                           "default" : 25,
+                           "description" : "SMTP port number for incoming mail (untrusted). This must be a different number than 'int_port'.",
+                           "maximum" : 65535,
+                           "minimum" : 1,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1 - 65535)"
+                        },
+                        "greylist" : {
+                           "default" : 1,
+                           "description" : "Use Greylisting for IPv4.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "greylist6" : {
+                           "default" : 0,
+                           "description" : "Use Greylisting for IPv6.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "greylistmask4" : {
+                           "default" : 24,
+                           "description" : "Netmask to apply for greylisting IPv4 hosts",
+                           "maximum" : 32,
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - 32)"
+                        },
+                        "greylistmask6" : {
+                           "default" : 64,
+                           "description" : "Netmask to apply for greylisting IPv6 hosts",
+                           "maximum" : 128,
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - 128)"
+                        },
+                        "helotests" : {
+                           "default" : 0,
+                           "description" : "Use SMTP HELO tests.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "hide_received" : {
+                           "default" : 0,
+                           "description" : "Hide received header in outgoing mails.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "int_port" : {
+                           "default" : 26,
+                           "description" : "SMTP port number for outgoing mail (trusted).",
+                           "maximum" : 65535,
+                           "minimum" : 1,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1 - 65535)"
+                        },
+                        "max_filters" : {
+                           "default" : 38,
+                           "description" : "Maximum number of pmg-smtp-filter processes.",
+                           "maximum" : 40,
+                           "minimum" : 3,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (3 - 40)"
+                        },
+                        "max_policy" : {
+                           "default" : 5,
+                           "description" : "Maximum number of pmgpolicy processes.",
+                           "maximum" : 10,
+                           "minimum" : 2,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (2 - 10)"
+                        },
+                        "max_smtpd_in" : {
+                           "default" : 100,
+                           "description" : "Maximum number of SMTP daemon processes (in).",
+                           "maximum" : 100,
+                           "minimum" : 3,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (3 - 100)"
+                        },
+                        "max_smtpd_out" : {
+                           "default" : 100,
+                           "description" : "Maximum number of SMTP daemon processes (out).",
+                           "maximum" : 100,
+                           "minimum" : 3,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (3 - 100)"
+                        },
+                        "maxsize" : {
+                           "default" : 10485760,
+                           "description" : "Maximum email size. Larger mails are rejected.",
+                           "minimum" : 1024,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1024 - N)"
+                        },
+                        "message_rate_limit" : {
+                           "default" : 0,
+                           "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.",
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - N)"
+                        },
+                        "ndr_on_block" : {
+                           "default" : 0,
+                           "description" : "Send out NDR when mail gets blocked",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "rejectunknown" : {
+                           "default" : 0,
+                           "description" : "Reject unknown clients.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "rejectunknownsender" : {
+                           "default" : 0,
+                           "description" : "Reject unknown senders.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "relay" : {
+                           "description" : "The default mail delivery transport (incoming mails).",
+                           "format" : "address",
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "relaynomx" : {
+                           "default" : 0,
+                           "description" : "Disable MX lookups for default relay (SMTP only, ignored for LMTP).",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "relayport" : {
+                           "default" : 25,
+                           "description" : "SMTP/LMTP port number for relay host.",
+                           "maximum" : 65535,
+                           "minimum" : 1,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1 - 65535)"
+                        },
+                        "relayprotocol" : {
+                           "default" : "smtp",
+                           "description" : "Transport protocol for relay host.",
+                           "enum" : [
+                              "smtp",
+                              "lmtp"
+                           ],
+                           "optional" : 1,
+                           "type" : "string"
+                        },
+                        "smarthost" : {
+                           "description" : "When set, all outgoing mails are deliverd to the specified smarthost.",
+                           "format" : "address",
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "smarthostport" : {
+                           "default" : 25,
+                           "description" : "SMTP port number for smarthost.",
+                           "maximum" : 65535,
+                           "minimum" : 1,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1 - 65535)"
+                        },
+                        "spf" : {
+                           "default" : 1,
+                           "description" : "Use Sender Policy Framework.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "tls" : {
+                           "default" : 0,
+                           "description" : "Enable TLS.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "tlsheader" : {
+                           "default" : 0,
+                           "description" : "Add TLS received header.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "tlslog" : {
+                           "default" : 0,
+                           "description" : "Enable TLS Logging.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "verifyreceivers" : {
+                           "description" : "Enable receiver verification. The value spefifies the numerical reply code when the Postfix SMTP server rejects a recipient address.",
+                           "enum" : [
+                              "450",
+                              "550"
+                           ],
+                           "optional" : 1,
+                           "type" : "string"
+                        }
+                     },
+                     "type" : "object"
+                  },
+                  "permissions" : {
+                     "check" : [
+                        "admin"
+                     ]
+                  },
+                  "protected" : 1,
+                  "proxyto" : "master",
+                  "returns" : {
+                     "type" : "null"
+                  }
+               }
+            },
+            "leaf" : 1,
+            "path" : "/config/mail",
+            "text" : "mail"
+         },
+         {
+            "info" : {
+               "GET" : {
+                  "allowtoken" : 1,
+                  "description" : "Read spam configuration properties.",
+                  "method" : "GET",
+                  "name" : "read_spam_section",
+                  "parameters" : {
+                     "additionalProperties" : 0
+                  },
+                  "permissions" : {
+                     "check" : [
+                        "admin",
+                        "audit"
+                     ]
+                  },
+                  "proxyto" : "master",
+                  "returns" : {
+                     "type" : "object"
+                  }
+               },
+               "PUT" : {
+                  "allowtoken" : 1,
+                  "description" : "Update spam configuration properties.",
+                  "method" : "PUT",
+                  "name" : "update_spam_section",
+                  "parameters" : {
+                     "additionalProperties" : 0,
+                     "properties" : {
+                        "bounce_score" : {
+                           "default" : 0,
+                           "description" : "Additional score for bounce mails.",
+                           "maximum" : 1000,
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - 1000)"
+                        },
+                        "clamav_heuristic_score" : {
+                           "default" : 3,
+                           "description" : "Score for ClamAV heuristics (Encrypted Archives/Documents, PhishingScanURLs, ...).",
+                           "maximum" : 1000,
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - 1000)"
+                        },
+                        "delete" : {
+                           "description" : "A list of settings you want to delete.",
+                           "format" : "pve-configid-list",
+                           "maxLength" : 4096,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "digest" : {
+                           "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
+                           "maxLength" : 40,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "languages" : {
+                           "default" : "all",
+                           "description" : "This option is used to specify which languages are considered OK for incoming mail.",
+                           "optional" : 1,
+                           "pattern" : "(all|([a-z][a-z])+( ([a-z][a-z])+)*)",
+                           "type" : "string"
+                        },
+                        "maxspamsize" : {
+                           "default" : 262144,
+                           "description" : "Maximum size of spam messages in bytes.",
+                           "minimum" : 64,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (64 - N)"
+                        },
+                        "rbl_checks" : {
+                           "default" : 1,
+                           "description" : "Enable real time blacklists (RBL) checks.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "use_awl" : {
+                           "default" : 1,
+                           "description" : "Use the Auto-Whitelist plugin.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "use_bayes" : {
+                           "default" : 1,
+                           "description" : "Whether to use the naive-Bayesian-style classifier.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "use_razor" : {
+                           "default" : 1,
+                           "description" : "Whether to use Razor2, if it is available.",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
+                        "wl_bounce_relays" : {
+                           "description" : "Whitelist legitimate bounce relays.",
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        }
+                     },
                      "type" : "object"
                   },
                   "permissions" : {
@@ -8804,6 +10603,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Read spamquar configuration properties.",
                   "method" : "GET",
                   "name" : "read_spamquar_section",
@@ -8822,6 +10622,7 @@ var pmgapi = [
                   }
                },
                "PUT" : {
+                  "allowtoken" : 1,
                   "description" : "Update spamquar configuration properties.",
                   "method" : "PUT",
                   "name" : "update_spamquar_section",
@@ -8901,6 +10702,13 @@ var pmgapi = [
                            "optional" : 1,
                            "type" : "string"
                         },
+                        "quarantinelink" : {
+                           "default" : 0,
+                           "description" : "Enables user self-service for Quarantine Links. Caution: this is accessible without authentication",
+                           "optional" : 1,
+                           "type" : "boolean",
+                           "typetext" : "<boolean>"
+                        },
                         "reportstyle" : {
                            "default" : "verbose",
                            "description" : "Spam report style.",
@@ -8942,6 +10750,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Read virusquar configuration properties.",
                   "method" : "GET",
                   "name" : "read_virusquar_section",
@@ -8960,6 +10769,7 @@ var pmgapi = [
                   }
                },
                "PUT" : {
+                  "allowtoken" : 1,
                   "description" : "Update virusquar configuration properties.",
                   "method" : "PUT",
                   "name" : "update_virusquar_section",
@@ -9025,7 +10835,8 @@ var pmgapi = [
          {
             "info" : {
                "POST" : {
-                  "description" : "Test Regex",
+                  "allowtoken" : 1,
+                  "description" : "Test Regex ignoring case",
                   "method" : "POST",
                   "name" : "regextest",
                   "parameters" : {
@@ -9065,6 +10876,7 @@ var pmgapi = [
       ],
       "info" : {
          "GET" : {
+            "allowtoken" : 1,
             "description" : "Directory index.",
             "method" : "GET",
             "name" : "index",
@@ -9103,6 +10915,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Print Postfix queue domain and age distribution.",
                               "method" : "GET",
                               "name" : "qshape",
@@ -9157,6 +10970,7 @@ var pmgapi = [
                                  {
                                     "info" : {
                                        "DELETE" : {
+                                          "allowtoken" : 1,
                                           "description" : "Delete one message with the named queue ID.",
                                           "method" : "DELETE",
                                           "name" : "delete_queued_mail",
@@ -9200,6 +11014,7 @@ var pmgapi = [
                                           }
                                        },
                                        "GET" : {
+                                          "allowtoken" : 1,
                                           "description" : "Get the contents of a queued mail.",
                                           "method" : "GET",
                                           "name" : "read_queued_mail",
@@ -9257,6 +11072,7 @@ var pmgapi = [
                                           }
                                        },
                                        "POST" : {
+                                          "allowtoken" : 1,
                                           "description" : "Schedule immediate delivery of deferred mail with the specified queue ID.",
                                           "method" : "POST",
                                           "name" : "flush_queued_mail",
@@ -9307,6 +11123,7 @@ var pmgapi = [
                               ],
                               "info" : {
                                  "DELETE" : {
+                                    "allowtoken" : 1,
                                     "description" : "Delete all mails in the queue.",
                                     "method" : "DELETE",
                                     "name" : "delete_queue",
@@ -9343,6 +11160,7 @@ var pmgapi = [
                                     }
                                  },
                                  "GET" : {
+                                    "allowtoken" : 1,
                                     "description" : "List the mail queue for a specific domain.",
                                     "method" : "GET",
                                     "name" : "mailq",
@@ -9378,6 +11196,28 @@ var pmgapi = [
                                              ],
                                              "type" : "string"
                                           },
+                                          "sortdir" : {
+                                             "description" : "Sort direction.",
+                                             "enum" : [
+                                                "ASC",
+                                                "DESC"
+                                             ],
+                                             "optional" : 1,
+                                             "requires" : "sortfield",
+                                             "type" : "string"
+                                          },
+                                          "sortfield" : {
+                                             "description" : "Sort field.",
+                                             "enum" : [
+                                                "arrival_time",
+                                                "message_size",
+                                                "sender",
+                                                "receiver",
+                                                "reason"
+                                             ],
+                                             "optional" : 1,
+                                             "type" : "string"
+                                          },
                                           "start" : {
                                              "minimum" : 0,
                                              "optional" : 1,
@@ -9416,6 +11256,7 @@ var pmgapi = [
                         ],
                         "info" : {
                            "DELETE" : {
+                              "allowtoken" : 1,
                               "description" : "Delete all mails in all posfix queues.",
                               "method" : "DELETE",
                               "name" : "delete_all_queues",
@@ -9442,6 +11283,7 @@ var pmgapi = [
                               }
                            },
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Directory index.",
                               "method" : "GET",
                               "name" : "queue_index",
@@ -9481,6 +11323,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "POST" : {
+                              "allowtoken" : 1,
                               "description" : "Flush the queue: attempt to deliver all queued mail.",
                               "method" : "POST",
                               "name" : "flush_queues",
@@ -9514,6 +11357,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "POST" : {
+                              "allowtoken" : 1,
                               "description" : "Discards the address verification cache.",
                               "method" : "POST",
                               "name" : "discard_verify_cache",
@@ -9547,6 +11391,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Directory index.",
                         "method" : "GET",
                         "name" : "index",
@@ -9588,6 +11433,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "ClamAV virus database status.",
                               "method" : "GET",
                               "name" : "database_status",
@@ -9632,6 +11478,7 @@ var pmgapi = [
                               }
                            },
                            "POST" : {
+                              "allowtoken" : 1,
                               "description" : "Update ClamAV virus databases.",
                               "method" : "POST",
                               "name" : "update_database",
@@ -9665,6 +11512,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Directory index.",
                         "method" : "GET",
                         "name" : "index",
@@ -9709,6 +11557,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "SpamAssassin rules status.",
                               "method" : "GET",
                               "name" : "rules_status",
@@ -9758,6 +11607,7 @@ var pmgapi = [
                               }
                            },
                            "POST" : {
+                              "allowtoken" : 1,
                               "description" : "Update SpamAssassin rules.",
                               "method" : "POST",
                               "name" : "update_rules",
@@ -9791,6 +11641,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Directory index.",
                         "method" : "GET",
                         "name" : "index",
@@ -9835,6 +11686,7 @@ var pmgapi = [
                      {
                         "info" : {
                            "DELETE" : {
+                              "allowtoken" : 1,
                               "description" : "Delete network device configuration",
                               "method" : "DELETE",
                               "name" : "delete_network",
@@ -9864,6 +11716,7 @@ var pmgapi = [
                               }
                            },
                            "GET" : {
+                              "allowtoken" : 1,
                               "description" : "Read network device configuration",
                               "method" : "GET",
                               "name" : "network_config",
@@ -9906,6 +11759,7 @@ var pmgapi = [
                               }
                            },
                            "PUT" : {
+                              "allowtoken" : 1,
                               "description" : "Update network device configuration",
                               "method" : "PUT",
                               "name" : "update_network",
@@ -9934,6 +11788,13 @@ var pmgapi = [
                                        "type" : "boolean",
                                        "typetext" : "<boolean>"
                                     },
+                                    "bond-primary" : {
+                                       "description" : "Specify the primary interface for active-backup bond.",
+                                       "format" : "pve-iface",
+                                       "optional" : 1,
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
                                     "bond_mode" : {
                                        "description" : "Bonding mode.",
                                        "enum" : [
@@ -9962,7 +11823,7 @@ var pmgapi = [
                                        "type" : "string"
                                     },
                                     "bridge_ports" : {
-                                       "description" : "Specify the iterfaces you want to add to your bridge.",
+                                       "description" : "Specify the interfaces you want to add to your bridge.",
                                        "format" : "pve-iface-list",
                                        "optional" : 1,
                                        "type" : "string",
@@ -10029,6 +11890,14 @@ var pmgapi = [
                                        "type" : "string",
                                        "typetext" : "<string>"
                                     },
+                                    "mtu" : {
+                                       "description" : "MTU.",
+                                       "maximum" : 65520,
+                                       "minimum" : 1280,
+                                       "optional" : 1,
+                                       "type" : "integer",
+                                       "typetext" : "<integer> (1280 - 65520)"
+                                    },
                                     "netmask" : {
                                        "description" : "Network mask.",
                                        "format" : "ipv4mask",
@@ -10074,7 +11943,7 @@ var pmgapi = [
                                        "typetext" : "<string>"
                                     },
                                     "ovs_ports" : {
-                                       "description" : "Specify the iterfaces you want to add to your bridge.",
+                                       "description" : "Specify the interfaces you want to add to your bridge.",
                                        "format" : "pve-iface-list",
                                        "optional" : 1,
                                        "type" : "string",
@@ -10110,6 +11979,21 @@ var pmgapi = [
                                           "unknown"
                                        ],
                                        "type" : "string"
+                                    },
+                                    "vlan-id" : {
+                                       "description" : "vlan-id for a custom named vlan interface (ifupdown2 only).",
+                                       "maximum" : 4094,
+                                       "minimum" : 1,
+                                       "optional" : 1,
+                                       "type" : "integer",
+                                       "typetext" : "<integer> (1 - 4094)"
+                                    },
+                                    "vlan-raw-device" : {
+                                       "description" : "Specify the raw interface for the vlan interface.",
+                                       "format" : "pve-iface",
+                                       "optional" : 1,
+                                       "type" : "string",
+                                       "typetext" : "<string>"
                                     }
                                  }
                               },
@@ -10127,6 +12011,7 @@ var pmgapi = [
                   ],
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Revert network configuration changes.",
                         "method" : "DELETE",
                         "name" : "revert_network_changes",
@@ -10148,6 +12033,7 @@ var pmgapi = [
                         }
                      },
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "List available networks",
                         "method" : "GET",
                         "name" : "index",
@@ -10201,6 +12087,7 @@ var pmgapi = [
                         }
                      },
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Create network device configuration",
                         "method" : "POST",
                         "name" : "create_network",
@@ -10229,6 +12116,13 @@ var pmgapi = [
                                  "type" : "boolean",
                                  "typetext" : "<boolean>"
                               },
+                              "bond-primary" : {
+                                 "description" : "Specify the primary interface for active-backup bond.",
+                                 "format" : "pve-iface",
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
                               "bond_mode" : {
                                  "description" : "Bonding mode.",
                                  "enum" : [
@@ -10257,7 +12151,7 @@ var pmgapi = [
                                  "type" : "string"
                               },
                               "bridge_ports" : {
-                                 "description" : "Specify the iterfaces you want to add to your bridge.",
+                                 "description" : "Specify the interfaces you want to add to your bridge.",
                                  "format" : "pve-iface-list",
                                  "optional" : 1,
                                  "type" : "string",
@@ -10317,6 +12211,14 @@ var pmgapi = [
                                  "type" : "string",
                                  "typetext" : "<string>"
                               },
+                              "mtu" : {
+                                 "description" : "MTU.",
+                                 "maximum" : 65520,
+                                 "minimum" : 1280,
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<integer> (1280 - 65520)"
+                              },
                               "netmask" : {
                                  "description" : "Network mask.",
                                  "format" : "ipv4mask",
@@ -10362,7 +12264,7 @@ var pmgapi = [
                                  "typetext" : "<string>"
                               },
                               "ovs_ports" : {
-                                 "description" : "Specify the iterfaces you want to add to your bridge.",
+                                 "description" : "Specify the interfaces you want to add to your bridge.",
                                  "format" : "pve-iface-list",
                                  "optional" : 1,
                                  "type" : "string",
@@ -10398,19 +12300,301 @@ var pmgapi = [
                                     "unknown"
                                  ],
                                  "type" : "string"
+                              },
+                              "vlan-id" : {
+                                 "description" : "vlan-id for a custom named vlan interface (ifupdown2 only).",
+                                 "maximum" : 4094,
+                                 "minimum" : 1,
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<integer> (1 - 4094)"
+                              },
+                              "vlan-raw-device" : {
+                                 "description" : "Specify the raw interface for the vlan interface.",
+                                 "format" : "pve-iface",
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
+                        },
+                        "protected" : 1,
+                        "proxyto" : "node",
+                        "returns" : {
+                           "type" : "null"
+                        }
+                     }
+                  },
+                  "leaf" : 0,
+                  "path" : "/nodes/{node}/network",
+                  "text" : "network"
+               },
+               {
+                  "children" : [
+                     {
+                        "children" : [
+                           {
+                              "info" : {
+                                 "GET" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Read task log.",
+                                    "method" : "GET",
+                                    "name" : "read_task_log",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "limit" : {
+                                             "minimum" : 0,
+                                             "optional" : 1,
+                                             "type" : "integer",
+                                             "typetext" : "<integer> (0 - N)"
+                                          },
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "start" : {
+                                             "minimum" : 0,
+                                             "optional" : 1,
+                                             "type" : "integer",
+                                             "typetext" : "<integer> (0 - N)"
+                                          },
+                                          "upid" : {
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin",
+                                          "audit"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "items" : {
+                                          "properties" : {
+                                             "n" : {
+                                                "description" : "Line number",
+                                                "type" : "integer"
+                                             },
+                                             "t" : {
+                                                "description" : "Line text",
+                                                "type" : "string"
+                                             }
+                                          },
+                                          "type" : "object"
+                                       },
+                                       "type" : "array"
+                                    }
+                                 }
+                              },
+                              "leaf" : 1,
+                              "path" : "/nodes/{node}/tasks/{upid}/log",
+                              "text" : "log"
+                           },
+                           {
+                              "info" : {
+                                 "GET" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Read task status.",
+                                    "method" : "GET",
+                                    "name" : "read_task_status",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "upid" : {
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin",
+                                          "audit"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "properties" : {
+                                          "pid" : {
+                                             "type" : "integer"
+                                          },
+                                          "status" : {
+                                             "enum" : [
+                                                "running",
+                                                "stopped"
+                                             ],
+                                             "type" : "string"
+                                          }
+                                       },
+                                       "type" : "object"
+                                    }
+                                 }
+                              },
+                              "leaf" : 1,
+                              "path" : "/nodes/{node}/tasks/{upid}/status",
+                              "text" : "status"
+                           }
+                        ],
+                        "info" : {
+                           "DELETE" : {
+                              "allowtoken" : 1,
+                              "description" : "Stop a task.",
+                              "method" : "DELETE",
+                              "name" : "stop_task",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "node" : {
+                                       "description" : "The cluster node name.",
+                                       "format" : "pve-node",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "upid" : {
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    }
+                                 }
+                              },
+                              "permissions" : {
+                                 "check" : [
+                                    "admin"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "proxyto" : "node",
+                              "returns" : {
+                                 "type" : "null"
+                              }
+                           },
+                           "GET" : {
+                              "allowtoken" : 1,
+                              "description" : "",
+                              "method" : "GET",
+                              "name" : "upid_index",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "node" : {
+                                       "description" : "The cluster node name.",
+                                       "format" : "pve-node",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "upid" : {
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    }
+                                 }
+                              },
+                              "permissions" : {
+                                 "check" : [
+                                    "admin",
+                                    "audit"
+                                 ]
+                              },
+                              "returns" : {
+                                 "items" : {
+                                    "properties" : {},
+                                    "type" : "object"
+                                 },
+                                 "links" : [
+                                    {
+                                       "href" : "{name}",
+                                       "rel" : "child"
+                                    }
+                                 ],
+                                 "type" : "array"
+                              }
+                           }
+                        },
+                        "leaf" : 0,
+                        "path" : "/nodes/{node}/tasks/{upid}",
+                        "text" : "{upid}"
+                     }
+                  ],
+                  "info" : {
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "Read task list for one node (finished tasks).",
+                        "method" : "GET",
+                        "name" : "node_tasks",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "errors" : {
+                                 "optional" : 1,
+                                 "type" : "boolean",
+                                 "typetext" : "<boolean>"
+                              },
+                              "limit" : {
+                                 "minimum" : 0,
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<integer> (0 - N)"
+                              },
+                              "node" : {
+                                 "description" : "The cluster node name.",
+                                 "format" : "pve-node",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "start" : {
+                                 "minimum" : 0,
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<integer> (0 - N)"
+                              },
+                              "userfilter" : {
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
                               }
                            }
                         },
-                        "protected" : 1,
+                        "permissions" : {
+                           "check" : [
+                              "admin",
+                              "audit"
+                           ]
+                        },
                         "proxyto" : "node",
                         "returns" : {
-                           "type" : "null"
+                           "items" : {
+                              "properties" : {
+                                 "upid" : {
+                                    "type" : "string"
+                                 }
+                              },
+                              "type" : "object"
+                           },
+                           "links" : [
+                              {
+                                 "href" : "{upid}",
+                                 "rel" : "child"
+                              }
+                           ],
+                           "type" : "array"
                         }
                      }
                   },
                   "leaf" : 0,
-                  "path" : "/nodes/{node}/network",
-                  "text" : "network"
+                  "path" : "/nodes/{node}/tasks",
+                  "text" : "tasks"
                },
                {
                   "children" : [
@@ -10418,133 +12602,637 @@ var pmgapi = [
                         "children" : [
                            {
                               "info" : {
-                                 "GET" : {
-                                    "description" : "Read task log.",
-                                    "method" : "GET",
-                                    "name" : "read_task_log",
+                                 "GET" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Read service properties",
+                                    "method" : "GET",
+                                    "name" : "service_state",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "service" : {
+                                             "description" : "Service ID",
+                                             "enum" : [
+                                                "clamav-daemon",
+                                                "clamav-freshclam",
+                                                "fetchmail",
+                                                "pmgproxy",
+                                                "pmgdaemon",
+                                                "pmgpolicy",
+                                                "pmg-smtp-filter",
+                                                "pmgtunnel",
+                                                "pmgmirror",
+                                                "ssh",
+                                                "rsyslog",
+                                                "postfix",
+                                                "postgres",
+                                                "systemd-timesyncd",
+                                                "pmg-hourly",
+                                                "pmg-daily",
+                                                "pmgreport",
+                                                "pmgspamreport"
+                                             ],
+                                             "type" : "string"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin",
+                                          "audit"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "type" : "object"
+                                    }
+                                 }
+                              },
+                              "leaf" : 1,
+                              "path" : "/nodes/{node}/services/{service}/state",
+                              "text" : "state"
+                           },
+                           {
+                              "info" : {
+                                 "POST" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Start service.",
+                                    "method" : "POST",
+                                    "name" : "service_start",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "service" : {
+                                             "description" : "Service ID",
+                                             "enum" : [
+                                                "clamav-daemon",
+                                                "clamav-freshclam",
+                                                "fetchmail",
+                                                "pmgproxy",
+                                                "pmgdaemon",
+                                                "pmgpolicy",
+                                                "pmg-smtp-filter",
+                                                "pmgtunnel",
+                                                "pmgmirror",
+                                                "ssh",
+                                                "rsyslog",
+                                                "postfix",
+                                                "postgres",
+                                                "systemd-timesyncd",
+                                                "pmg-hourly",
+                                                "pmg-daily",
+                                                "pmgreport",
+                                                "pmgspamreport"
+                                             ],
+                                             "type" : "string"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "type" : "string"
+                                    }
+                                 }
+                              },
+                              "leaf" : 1,
+                              "path" : "/nodes/{node}/services/{service}/start",
+                              "text" : "start"
+                           },
+                           {
+                              "info" : {
+                                 "POST" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Stop service.",
+                                    "method" : "POST",
+                                    "name" : "service_stop",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "service" : {
+                                             "description" : "Service ID",
+                                             "enum" : [
+                                                "clamav-daemon",
+                                                "clamav-freshclam",
+                                                "fetchmail",
+                                                "pmgproxy",
+                                                "pmgdaemon",
+                                                "pmgpolicy",
+                                                "pmg-smtp-filter",
+                                                "pmgtunnel",
+                                                "pmgmirror",
+                                                "ssh",
+                                                "rsyslog",
+                                                "postfix",
+                                                "postgres",
+                                                "systemd-timesyncd",
+                                                "pmg-hourly",
+                                                "pmg-daily",
+                                                "pmgreport",
+                                                "pmgspamreport"
+                                             ],
+                                             "type" : "string"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "type" : "string"
+                                    }
+                                 }
+                              },
+                              "leaf" : 1,
+                              "path" : "/nodes/{node}/services/{service}/stop",
+                              "text" : "stop"
+                           },
+                           {
+                              "info" : {
+                                 "POST" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Restart service.",
+                                    "method" : "POST",
+                                    "name" : "service_restart",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "service" : {
+                                             "description" : "Service ID",
+                                             "enum" : [
+                                                "clamav-daemon",
+                                                "clamav-freshclam",
+                                                "fetchmail",
+                                                "pmgproxy",
+                                                "pmgdaemon",
+                                                "pmgpolicy",
+                                                "pmg-smtp-filter",
+                                                "pmgtunnel",
+                                                "pmgmirror",
+                                                "ssh",
+                                                "rsyslog",
+                                                "postfix",
+                                                "postgres",
+                                                "systemd-timesyncd",
+                                                "pmg-hourly",
+                                                "pmg-daily",
+                                                "pmgreport",
+                                                "pmgspamreport"
+                                             ],
+                                             "type" : "string"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "type" : "string"
+                                    }
+                                 }
+                              },
+                              "leaf" : 1,
+                              "path" : "/nodes/{node}/services/{service}/restart",
+                              "text" : "restart"
+                           },
+                           {
+                              "info" : {
+                                 "POST" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Reload service.",
+                                    "method" : "POST",
+                                    "name" : "service_reload",
                                     "parameters" : {
                                        "additionalProperties" : 0,
                                        "properties" : {
-                                          "limit" : {
-                                             "minimum" : 0,
-                                             "optional" : 1,
-                                             "type" : "integer",
-                                             "typetext" : "<integer> (0 - N)"
-                                          },
                                           "node" : {
                                              "description" : "The cluster node name.",
                                              "format" : "pve-node",
                                              "type" : "string",
                                              "typetext" : "<string>"
                                           },
-                                          "start" : {
-                                             "minimum" : 0,
-                                             "optional" : 1,
-                                             "type" : "integer",
-                                             "typetext" : "<integer> (0 - N)"
-                                          },
-                                          "upid" : {
-                                             "type" : "string",
-                                             "typetext" : "<string>"
+                                          "service" : {
+                                             "description" : "Service ID",
+                                             "enum" : [
+                                                "clamav-daemon",
+                                                "clamav-freshclam",
+                                                "fetchmail",
+                                                "pmgproxy",
+                                                "pmgdaemon",
+                                                "pmgpolicy",
+                                                "pmg-smtp-filter",
+                                                "pmgtunnel",
+                                                "pmgmirror",
+                                                "ssh",
+                                                "rsyslog",
+                                                "postfix",
+                                                "postgres",
+                                                "systemd-timesyncd",
+                                                "pmg-hourly",
+                                                "pmg-daily",
+                                                "pmgreport",
+                                                "pmgspamreport"
+                                             ],
+                                             "type" : "string"
                                           }
                                        }
                                     },
                                     "permissions" : {
                                        "check" : [
-                                          "admin",
-                                          "audit"
+                                          "admin"
                                        ]
                                     },
                                     "protected" : 1,
                                     "proxyto" : "node",
                                     "returns" : {
-                                       "items" : {
-                                          "properties" : {
-                                             "n" : {
-                                                "description" : "Line number",
-                                                "type" : "integer"
-                                             },
-                                             "t" : {
-                                                "description" : "Line text",
-                                                "type" : "string"
-                                             }
-                                          },
-                                          "type" : "object"
-                                       },
-                                       "type" : "array"
+                                       "type" : "string"
+                                    }
+                                 }
+                              },
+                              "leaf" : 1,
+                              "path" : "/nodes/{node}/services/{service}/reload",
+                              "text" : "reload"
+                           }
+                        ],
+                        "info" : {
+                           "GET" : {
+                              "allowtoken" : 1,
+                              "description" : "Directory index",
+                              "method" : "GET",
+                              "name" : "srvcmdidx",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "node" : {
+                                       "description" : "The cluster node name.",
+                                       "format" : "pve-node",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "service" : {
+                                       "description" : "Service ID",
+                                       "enum" : [
+                                          "clamav-daemon",
+                                          "clamav-freshclam",
+                                          "fetchmail",
+                                          "pmgproxy",
+                                          "pmgdaemon",
+                                          "pmgpolicy",
+                                          "pmg-smtp-filter",
+                                          "pmgtunnel",
+                                          "pmgmirror",
+                                          "ssh",
+                                          "rsyslog",
+                                          "postfix",
+                                          "postgres",
+                                          "systemd-timesyncd",
+                                          "pmg-hourly",
+                                          "pmg-daily",
+                                          "pmgreport",
+                                          "pmgspamreport"
+                                       ],
+                                       "type" : "string"
+                                    }
+                                 }
+                              },
+                              "permissions" : {
+                                 "check" : [
+                                    "admin",
+                                    "audit"
+                                 ]
+                              },
+                              "returns" : {
+                                 "items" : {
+                                    "properties" : {
+                                       "subdir" : {
+                                          "type" : "string"
+                                       }
+                                    },
+                                    "type" : "object"
+                                 },
+                                 "links" : [
+                                    {
+                                       "href" : "{subdir}",
+                                       "rel" : "child"
+                                    }
+                                 ],
+                                 "type" : "array"
+                              }
+                           }
+                        },
+                        "leaf" : 0,
+                        "path" : "/nodes/{node}/services/{service}",
+                        "text" : "{service}"
+                     }
+                  ],
+                  "info" : {
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "Service list.",
+                        "method" : "GET",
+                        "name" : "index",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "node" : {
+                                 "description" : "The cluster node name.",
+                                 "format" : "pve-node",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
+                        },
+                        "permissions" : {
+                           "check" : [
+                              "admin",
+                              "audit"
+                           ]
+                        },
+                        "protected" : 1,
+                        "proxyto" : "node",
+                        "returns" : {
+                           "items" : {
+                              "properties" : {},
+                              "type" : "object"
+                           },
+                           "links" : [
+                              {
+                                 "href" : "{service}",
+                                 "rel" : "child"
+                              }
+                           ],
+                           "type" : "array"
+                        }
+                     }
+                  },
+                  "leaf" : 0,
+                  "path" : "/nodes/{node}/services",
+                  "text" : "services"
+               },
+               {
+                  "info" : {
+                     "DELETE" : {
+                        "allowtoken" : 1,
+                        "description" : "Delete subscription key.",
+                        "method" : "DELETE",
+                        "name" : "delete",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "node" : {
+                                 "description" : "The cluster node name.",
+                                 "format" : "pve-node",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
+                        },
+                        "protected" : 1,
+                        "proxyto" : "node",
+                        "returns" : {
+                           "type" : "null"
+                        }
+                     },
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "Read subscription info.",
+                        "method" : "GET",
+                        "name" : "get",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "node" : {
+                                 "description" : "The cluster node name.",
+                                 "format" : "pve-node",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
+                        },
+                        "permissions" : {
+                           "check" : [
+                              "admin",
+                              "qmanager",
+                              "audit",
+                              "quser"
+                           ]
+                        },
+                        "proxyto" : "node",
+                        "returns" : {
+                           "type" : "object"
+                        }
+                     },
+                     "POST" : {
+                        "allowtoken" : 1,
+                        "description" : "Update subscription info.",
+                        "method" : "POST",
+                        "name" : "update",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "force" : {
+                                 "default" : 0,
+                                 "description" : "Always connect to server, even if we have up to date info inside local cache.",
+                                 "optional" : 1,
+                                 "type" : "boolean",
+                                 "typetext" : "<boolean>"
+                              },
+                              "node" : {
+                                 "description" : "The cluster node name.",
+                                 "format" : "pve-node",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
+                        },
+                        "permissions" : {
+                           "check" : [
+                              "admin"
+                           ]
+                        },
+                        "protected" : 1,
+                        "proxyto" : "node",
+                        "returns" : {
+                           "type" : "null"
+                        }
+                     },
+                     "PUT" : {
+                        "allowtoken" : 1,
+                        "description" : "Set subscription key.",
+                        "method" : "PUT",
+                        "name" : "set",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "key" : {
+                                 "description" : "Proxmox Mail Gateway subscription key",
+                                 "maxLength" : 32,
+                                 "pattern" : "pmg([cbsp])-[0-9a-f]{10}",
+                                 "type" : "string"
+                              },
+                              "node" : {
+                                 "description" : "The cluster node name.",
+                                 "format" : "pve-node",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
+                        },
+                        "protected" : 1,
+                        "proxyto" : "node",
+                        "returns" : {
+                           "type" : "null"
+                        }
+                     }
+                  },
+                  "leaf" : 1,
+                  "path" : "/nodes/{node}/subscription",
+                  "text" : "subscription"
+               },
+               {
+                  "children" : [
+                     {
+                        "info" : {
+                           "GET" : {
+                              "allowtoken" : 1,
+                              "description" : "List available updates.",
+                              "method" : "GET",
+                              "name" : "list_updates",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "node" : {
+                                       "description" : "The cluster node name.",
+                                       "format" : "pve-node",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
                                     }
                                  }
                               },
-                              "leaf" : 1,
-                              "path" : "/nodes/{node}/tasks/{upid}/log",
-                              "text" : "log"
+                              "permissions" : {
+                                 "check" : [
+                                    "admin",
+                                    "audit"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "proxyto" : "node",
+                              "returns" : {
+                                 "items" : {
+                                    "properties" : {},
+                                    "type" : "object"
+                                 },
+                                 "type" : "array"
+                              }
                            },
-                           {
-                              "info" : {
-                                 "GET" : {
-                                    "description" : "Read task status.",
-                                    "method" : "GET",
-                                    "name" : "read_task_status",
-                                    "parameters" : {
-                                       "additionalProperties" : 0,
-                                       "properties" : {
-                                          "node" : {
-                                             "description" : "The cluster node name.",
-                                             "format" : "pve-node",
-                                             "type" : "string",
-                                             "typetext" : "<string>"
-                                          },
-                                          "upid" : {
-                                             "type" : "string",
-                                             "typetext" : "<string>"
-                                          }
-                                       }
+                           "POST" : {
+                              "allowtoken" : 1,
+                              "description" : "This is used to resynchronize the package index files from their sources (apt-get update).",
+                              "method" : "POST",
+                              "name" : "update_database",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "node" : {
+                                       "description" : "The cluster node name.",
+                                       "format" : "pve-node",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
                                     },
-                                    "permissions" : {
-                                       "check" : [
-                                          "admin",
-                                          "audit"
-                                       ]
+                                    "notify" : {
+                                       "default" : 0,
+                                       "description" : "Send notification mail about new packages (to email address specified for user 'root@pam').",
+                                       "optional" : 1,
+                                       "type" : "boolean",
+                                       "typetext" : "<boolean>"
                                     },
-                                    "protected" : 1,
-                                    "proxyto" : "node",
-                                    "returns" : {
-                                       "properties" : {
-                                          "pid" : {
-                                             "type" : "integer"
-                                          },
-                                          "status" : {
-                                             "enum" : [
-                                                "running",
-                                                "stopped"
-                                             ],
-                                             "type" : "string"
-                                          }
-                                       },
-                                       "type" : "object"
+                                    "quiet" : {
+                                       "default" : 0,
+                                       "description" : "Only produces output suitable for logging, omitting progress indicators.",
+                                       "optional" : 1,
+                                       "type" : "boolean",
+                                       "typetext" : "<boolean>"
                                     }
                                  }
                               },
-                              "leaf" : 1,
-                              "path" : "/nodes/{node}/tasks/{upid}/status",
-                              "text" : "status"
+                              "permissions" : {
+                                 "check" : [
+                                    "admin"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "proxyto" : "node",
+                              "returns" : {
+                                 "type" : "string"
+                              }
                            }
-                        ],
+                        },
+                        "leaf" : 1,
+                        "path" : "/nodes/{node}/apt/update",
+                        "text" : "update"
+                     },
+                     {
                         "info" : {
-                           "DELETE" : {
-                              "description" : "Stop a task.",
-                              "method" : "DELETE",
-                              "name" : "stop_task",
+                           "GET" : {
+                              "allowtoken" : 1,
+                              "description" : "Get package changelogs.",
+                              "method" : "GET",
+                              "name" : "changelog",
                               "parameters" : {
                                  "additionalProperties" : 0,
                                  "properties" : {
+                                    "name" : {
+                                       "description" : "Package name.",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
                                     "node" : {
                                        "description" : "The cluster node name.",
                                        "format" : "pve-node",
                                        "type" : "string",
                                        "typetext" : "<string>"
                                     },
-                                    "upid" : {
+                                    "version" : {
+                                       "description" : "Package version.",
+                                       "optional" : 1,
                                        "type" : "string",
                                        "typetext" : "<string>"
                                     }
@@ -10552,19 +13240,27 @@ var pmgapi = [
                               },
                               "permissions" : {
                                  "check" : [
-                                    "admin"
+                                    "admin",
+                                    "audit"
                                  ]
                               },
-                              "protected" : 1,
                               "proxyto" : "node",
                               "returns" : {
-                                 "type" : "null"
+                                 "type" : "string"
                               }
-                           },
+                           }
+                        },
+                        "leaf" : 1,
+                        "path" : "/nodes/{node}/apt/changelog",
+                        "text" : "changelog"
+                     },
+                     {
+                        "info" : {
                            "GET" : {
-                              "description" : "",
+                              "allowtoken" : 1,
+                              "description" : "Get package information for important Proxmox packages.",
                               "method" : "GET",
-                              "name" : "upid_index",
+                              "name" : "versions",
                               "parameters" : {
                                  "additionalProperties" : 0,
                                  "properties" : {
@@ -10573,10 +13269,6 @@ var pmgapi = [
                                        "format" : "pve-node",
                                        "type" : "string",
                                        "typetext" : "<string>"
-                                    },
-                                    "upid" : {
-                                       "type" : "string",
-                                       "typetext" : "<string>"
                                     }
                                  }
                               },
@@ -10586,75 +13278,45 @@ var pmgapi = [
                                     "audit"
                                  ]
                               },
+                              "proxyto" : "node",
                               "returns" : {
                                  "items" : {
                                     "properties" : {},
                                     "type" : "object"
                                  },
-                                 "links" : [
-                                    {
-                                       "href" : "{name}",
-                                       "rel" : "child"
-                                    }
-                                 ],
                                  "type" : "array"
                               }
                            }
                         },
-                        "leaf" : 0,
-                        "path" : "/nodes/{node}/tasks/{upid}",
-                        "text" : "{upid}"
+                        "leaf" : 1,
+                        "path" : "/nodes/{node}/apt/versions",
+                        "text" : "versions"
                      }
                   ],
                   "info" : {
                      "GET" : {
-                        "description" : "Read task list for one node (finished tasks).",
+                        "allowtoken" : 1,
+                        "description" : "Directory index for apt (Advanced Package Tool).",
                         "method" : "GET",
-                        "name" : "node_tasks",
-                        "parameters" : {
-                           "additionalProperties" : 0,
-                           "properties" : {
-                              "errors" : {
-                                 "optional" : 1,
-                                 "type" : "boolean",
-                                 "typetext" : "<boolean>"
-                              },
-                              "limit" : {
-                                 "minimum" : 0,
-                                 "optional" : 1,
-                                 "type" : "integer",
-                                 "typetext" : "<integer> (0 - N)"
-                              },
-                              "node" : {
-                                 "description" : "The cluster node name.",
-                                 "format" : "pve-node",
-                                 "type" : "string",
-                                 "typetext" : "<string>"
-                              },
-                              "start" : {
-                                 "minimum" : 0,
-                                 "optional" : 1,
-                                 "type" : "integer",
-                                 "typetext" : "<integer> (0 - N)"
-                              },
-                              "userfilter" : {
-                                 "optional" : 1,
+                        "name" : "index",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "node" : {
+                                 "description" : "The cluster node name.",
+                                 "format" : "pve-node",
                                  "type" : "string",
                                  "typetext" : "<string>"
                               }
                            }
                         },
                         "permissions" : {
-                           "check" : [
-                              "admin",
-                              "audit"
-                           ]
+                           "user" : "all"
                         },
-                        "proxyto" : "node",
                         "returns" : {
                            "items" : {
                               "properties" : {
-                                 "upid" : {
+                                 "id" : {
                                     "type" : "string"
                                  }
                               },
@@ -10662,7 +13324,7 @@ var pmgapi = [
                            },
                            "links" : [
                               {
-                                 "href" : "{upid}",
+                                 "href" : "{id}",
                                  "rel" : "child"
                               }
                            ],
@@ -10671,375 +13333,421 @@ var pmgapi = [
                      }
                   },
                   "leaf" : 0,
-                  "path" : "/nodes/{node}/tasks",
-                  "text" : "tasks"
+                  "path" : "/nodes/{node}/apt",
+                  "text" : "apt"
                },
                {
                   "children" : [
                      {
-                        "children" : [
-                           {
-                              "info" : {
-                                 "GET" : {
-                                    "description" : "Read service properties",
-                                    "method" : "GET",
-                                    "name" : "service_state",
-                                    "parameters" : {
-                                       "additionalProperties" : 0,
-                                       "properties" : {
-                                          "node" : {
-                                             "description" : "The cluster node name.",
-                                             "format" : "pve-node",
-                                             "type" : "string",
-                                             "typetext" : "<string>"
-                                          },
-                                          "service" : {
-                                             "description" : "Service ID",
-                                             "enum" : [
-                                                "clamav-daemon",
-                                                "clamav-freshclam",
-                                                "fetchmail",
-                                                "pmgproxy",
-                                                "pmgdaemon",
-                                                "pmgpolicy",
-                                                "pmg-smtp-filter",
-                                                "pmgtunnel",
-                                                "pmgmirror",
-                                                "ssh",
-                                                "rsyslog",
-                                                "postfix",
-                                                "postgres",
-                                                "systemd-timesyncd",
-                                                "pmg-hourly",
-                                                "pmg-daily",
-                                                "pmgreport",
-                                                "pmgspamreport"
-                                             ],
-                                             "type" : "string"
-                                          }
-                                       }
+                        "info" : {
+                           "GET" : {
+                              "allowtoken" : 1,
+                              "description" : "Get the detailed syslog entries for a specific mail ID.",
+                              "method" : "GET",
+                              "name" : "maillog",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "endtime" : {
+                                       "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
+                                       "minimum" : 1,
+                                       "optional" : 1,
+                                       "type" : "integer",
+                                       "typetext" : "<integer> (1 - N)"
                                     },
-                                    "permissions" : {
-                                       "check" : [
-                                          "admin",
-                                          "audit"
-                                       ]
+                                    "id" : {
+                                       "description" : "Mail ID (as returned by the list API).",
+                                       "maxLength" : 64,
+                                       "minLength" : 3,
+                                       "type" : "string",
+                                       "typetext" : "<string>"
                                     },
-                                    "protected" : 1,
-                                    "proxyto" : "node",
-                                    "returns" : {
-                                       "type" : "object"
+                                    "node" : {
+                                       "description" : "The cluster node name.",
+                                       "format" : "pve-node",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "starttime" : {
+                                       "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
+                                       "minimum" : 0,
+                                       "optional" : 1,
+                                       "type" : "integer",
+                                       "typetext" : "<integer> (0 - N)"
                                     }
                                  }
                               },
-                              "leaf" : 1,
-                              "path" : "/nodes/{node}/services/{service}/state",
-                              "text" : "state"
-                           },
-                           {
-                              "info" : {
-                                 "POST" : {
-                                    "description" : "Start service.",
-                                    "method" : "POST",
-                                    "name" : "service_start",
-                                    "parameters" : {
-                                       "additionalProperties" : 0,
-                                       "properties" : {
-                                          "node" : {
-                                             "description" : "The cluster node name.",
-                                             "format" : "pve-node",
-                                             "type" : "string",
-                                             "typetext" : "<string>"
-                                          },
-                                          "service" : {
-                                             "description" : "Service ID",
-                                             "enum" : [
-                                                "clamav-daemon",
-                                                "clamav-freshclam",
-                                                "fetchmail",
-                                                "pmgproxy",
-                                                "pmgdaemon",
-                                                "pmgpolicy",
-                                                "pmg-smtp-filter",
-                                                "pmgtunnel",
-                                                "pmgmirror",
-                                                "ssh",
-                                                "rsyslog",
-                                                "postfix",
-                                                "postgres",
-                                                "systemd-timesyncd",
-                                                "pmg-hourly",
-                                                "pmg-daily",
-                                                "pmgreport",
-                                                "pmgspamreport"
-                                             ],
-                                             "type" : "string"
-                                          }
-                                       }
+                              "permissions" : {
+                                 "check" : [
+                                    "admin",
+                                    "audit"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "proxyto" : "node",
+                              "returns" : {
+                                 "properties" : {
+                                    "client" : {
+                                       "description" : "Client address",
+                                       "optional" : 1,
+                                       "type" : "string"
                                     },
-                                    "permissions" : {
-                                       "check" : [
-                                          "admin"
-                                       ]
+                                    "dstatus" : {
+                                       "description" : "Delivery status.",
+                                       "maxLength" : 1,
+                                       "minLength" : 1,
+                                       "type" : "string"
                                     },
-                                    "protected" : 1,
-                                    "proxyto" : "node",
-                                    "returns" : {
+                                    "from" : {
+                                       "description" : "Sender email address.",
                                        "type" : "string"
-                                    }
-                                 }
-                              },
-                              "leaf" : 1,
-                              "path" : "/nodes/{node}/services/{service}/start",
-                              "text" : "start"
-                           },
-                           {
-                              "info" : {
-                                 "POST" : {
-                                    "description" : "Stop service.",
-                                    "method" : "POST",
-                                    "name" : "service_stop",
-                                    "parameters" : {
-                                       "additionalProperties" : 0,
-                                       "properties" : {
-                                          "node" : {
-                                             "description" : "The cluster node name.",
-                                             "format" : "pve-node",
-                                             "type" : "string",
-                                             "typetext" : "<string>"
-                                          },
-                                          "service" : {
-                                             "description" : "Service ID",
-                                             "enum" : [
-                                                "clamav-daemon",
-                                                "clamav-freshclam",
-                                                "fetchmail",
-                                                "pmgproxy",
-                                                "pmgdaemon",
-                                                "pmgpolicy",
-                                                "pmg-smtp-filter",
-                                                "pmgtunnel",
-                                                "pmgmirror",
-                                                "ssh",
-                                                "rsyslog",
-                                                "postfix",
-                                                "postgres",
-                                                "systemd-timesyncd",
-                                                "pmg-hourly",
-                                                "pmg-daily",
-                                                "pmgreport",
-                                                "pmgspamreport"
-                                             ],
-                                             "type" : "string"
-                                          }
-                                       }
                                     },
-                                    "permissions" : {
-                                       "check" : [
-                                          "admin"
-                                       ]
+                                    "id" : {
+                                       "description" : "Unique ID.",
+                                       "type" : "string"
                                     },
-                                    "protected" : 1,
-                                    "proxyto" : "node",
-                                    "returns" : {
+                                    "logs" : {
+                                       "items" : {
+                                          "type" : "string"
+                                       },
+                                       "type" : "array"
+                                    },
+                                    "msgid" : {
+                                       "description" : "SMTP message ID.",
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    },
+                                    "qid" : {
+                                       "description" : "Postfix qmgr ID.",
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    },
+                                    "relay" : {
+                                       "description" : "ID of relayed mail.",
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    },
+                                    "rstatus" : {
+                                       "description" : "Delivery status of relayed mail.",
+                                       "maxLength" : 1,
+                                       "minLength" : 1,
+                                       "optional" : 1,
                                        "type" : "string"
-                                    }
-                                 }
-                              },
-                              "leaf" : 1,
-                              "path" : "/nodes/{node}/services/{service}/stop",
-                              "text" : "stop"
-                           },
-                           {
-                              "info" : {
-                                 "POST" : {
-                                    "description" : "Restart service.",
-                                    "method" : "POST",
-                                    "name" : "service_restart",
-                                    "parameters" : {
-                                       "additionalProperties" : 0,
-                                       "properties" : {
-                                          "node" : {
-                                             "description" : "The cluster node name.",
-                                             "format" : "pve-node",
-                                             "type" : "string",
-                                             "typetext" : "<string>"
-                                          },
-                                          "service" : {
-                                             "description" : "Service ID",
-                                             "enum" : [
-                                                "clamav-daemon",
-                                                "clamav-freshclam",
-                                                "fetchmail",
-                                                "pmgproxy",
-                                                "pmgdaemon",
-                                                "pmgpolicy",
-                                                "pmg-smtp-filter",
-                                                "pmgtunnel",
-                                                "pmgmirror",
-                                                "ssh",
-                                                "rsyslog",
-                                                "postfix",
-                                                "postgres",
-                                                "systemd-timesyncd",
-                                                "pmg-hourly",
-                                                "pmg-daily",
-                                                "pmgreport",
-                                                "pmgspamreport"
-                                             ],
-                                             "type" : "string"
-                                          }
-                                       }
                                     },
-                                    "permissions" : {
-                                       "check" : [
-                                          "admin"
-                                       ]
+                                    "size" : {
+                                       "description" : "The size of the raw email.",
+                                       "optional" : 1,
+                                       "type" : "number"
                                     },
-                                    "protected" : 1,
-                                    "proxyto" : "node",
-                                    "returns" : {
+                                    "time" : {
+                                       "description" : "Delivery timestamp.",
+                                       "type" : "integer"
+                                    },
+                                    "to" : {
+                                       "description" : "Receiver email address.",
                                        "type" : "string"
                                     }
-                                 }
+                                 },
+                                 "type" : "object"
+                              }
+                           }
+                        },
+                        "leaf" : 1,
+                        "path" : "/nodes/{node}/tracker/{id}",
+                        "text" : "{id}"
+                     }
+                  ],
+                  "info" : {
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "Read mail list.",
+                        "method" : "GET",
+                        "name" : "list_mails",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "endtime" : {
+                                 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
+                                 "minimum" : 1,
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<integer> (1 - N)"
                               },
-                              "leaf" : 1,
-                              "path" : "/nodes/{node}/services/{service}/restart",
-                              "text" : "restart"
-                           },
-                           {
-                              "info" : {
-                                 "POST" : {
-                                    "description" : "Reload service.",
-                                    "method" : "POST",
-                                    "name" : "service_reload",
-                                    "parameters" : {
-                                       "additionalProperties" : 0,
-                                       "properties" : {
-                                          "node" : {
-                                             "description" : "The cluster node name.",
-                                             "format" : "pve-node",
-                                             "type" : "string",
-                                             "typetext" : "<string>"
-                                          },
-                                          "service" : {
-                                             "description" : "Service ID",
-                                             "enum" : [
-                                                "clamav-daemon",
-                                                "clamav-freshclam",
-                                                "fetchmail",
-                                                "pmgproxy",
-                                                "pmgdaemon",
-                                                "pmgpolicy",
-                                                "pmg-smtp-filter",
-                                                "pmgtunnel",
-                                                "pmgmirror",
-                                                "ssh",
-                                                "rsyslog",
-                                                "postfix",
-                                                "postgres",
-                                                "systemd-timesyncd",
-                                                "pmg-hourly",
-                                                "pmg-daily",
-                                                "pmgreport",
-                                                "pmgspamreport"
-                                             ],
-                                             "type" : "string"
-                                          }
-                                       }
-                                    },
-                                    "permissions" : {
-                                       "check" : [
-                                          "admin"
-                                       ]
-                                    },
-                                    "protected" : 1,
-                                    "proxyto" : "node",
-                                    "returns" : {
+                              "from" : {
+                                 "description" : "Sender email address filter.",
+                                 "maxLength" : 256,
+                                 "minLength" : 1,
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "greylist" : {
+                                 "default" : 0,
+                                 "description" : "Include Greylisted entries.",
+                                 "optional" : 1,
+                                 "type" : "boolean",
+                                 "typetext" : "<boolean>"
+                              },
+                              "ndr" : {
+                                 "default" : 0,
+                                 "description" : "Include NDRs (non delivery reports).",
+                                 "optional" : 1,
+                                 "type" : "boolean",
+                                 "typetext" : "<boolean>"
+                              },
+                              "node" : {
+                                 "description" : "The cluster node name.",
+                                 "format" : "pve-node",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "starttime" : {
+                                 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
+                                 "minimum" : 0,
+                                 "optional" : 1,
+                                 "type" : "integer",
+                                 "typetext" : "<integer> (0 - N)"
+                              },
+                              "target" : {
+                                 "description" : "Receiver email address filter.",
+                                 "maxLength" : 256,
+                                 "minLength" : 1,
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "xfilter" : {
+                                 "description" : "Only include mails containing this filter string.",
+                                 "maxLength" : 256,
+                                 "minLength" : 1,
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
+                        },
+                        "permissions" : {
+                           "check" : [
+                              "admin",
+                              "audit"
+                           ]
+                        },
+                        "protected" : 1,
+                        "proxyto" : "node",
+                        "returns" : {
+                           "items" : {
+                              "properties" : {
+                                 "client" : {
+                                    "description" : "Client address",
+                                    "optional" : 1,
+                                    "type" : "string"
+                                 },
+                                 "dstatus" : {
+                                    "description" : "Delivery status.",
+                                    "maxLength" : 1,
+                                    "minLength" : 1,
+                                    "type" : "string"
+                                 },
+                                 "from" : {
+                                    "description" : "Sender email address.",
+                                    "type" : "string"
+                                 },
+                                 "id" : {
+                                    "description" : "Unique ID.",
+                                    "type" : "string"
+                                 },
+                                 "msgid" : {
+                                    "description" : "SMTP message ID.",
+                                    "optional" : 1,
+                                    "type" : "string"
+                                 },
+                                 "qid" : {
+                                    "description" : "Postfix qmgr ID.",
+                                    "optional" : 1,
+                                    "type" : "string"
+                                 },
+                                 "relay" : {
+                                    "description" : "ID of relayed mail.",
+                                    "optional" : 1,
+                                    "type" : "string"
+                                 },
+                                 "rstatus" : {
+                                    "description" : "Delivery status of relayed mail.",
+                                    "maxLength" : 1,
+                                    "minLength" : 1,
+                                    "optional" : 1,
+                                    "type" : "string"
+                                 },
+                                 "size" : {
+                                    "description" : "The size of the raw email.",
+                                    "optional" : 1,
+                                    "type" : "number"
+                                 },
+                                 "time" : {
+                                    "description" : "Delivery timestamp.",
+                                    "type" : "integer"
+                                 },
+                                 "to" : {
+                                    "description" : "Receiver email address.",
+                                    "type" : "string"
+                                 }
+                              },
+                              "type" : "object"
+                           },
+                           "links" : [
+                              {
+                                 "href" : "{id}",
+                                 "rel" : "child"
+                              }
+                           ],
+                           "type" : "array"
+                        }
+                     }
+                  },
+                  "leaf" : 0,
+                  "path" : "/nodes/{node}/tracker",
+                  "text" : "tracker"
+               },
+               {
+                  "children" : [
+                     {
+                        "info" : {
+                           "DELETE" : {
+                              "allowtoken" : 1,
+                              "description" : "Delete a backup file.",
+                              "method" : "DELETE",
+                              "name" : "delete",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "filename" : {
+                                       "description" : "The backup file name.",
+                                       "maxLength" : 256,
+                                       "minLength" : 4,
+                                       "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
                                        "type" : "string"
+                                    },
+                                    "node" : {
+                                       "description" : "The cluster node name.",
+                                       "format" : "pve-node",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
                                     }
                                  }
                               },
-                              "leaf" : 1,
-                              "path" : "/nodes/{node}/services/{service}/reload",
-                              "text" : "reload"
-                           }
-                        ],
-                        "info" : {
+                              "permissions" : {
+                                 "check" : [
+                                    "admin"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "proxyto" : "node",
+                              "returns" : {
+                                 "type" : "null"
+                              }
+                           },
                            "GET" : {
-                              "description" : "Directory index",
+                              "allowtoken" : 1,
+                              "description" : "Download a backup file.",
+                              "download" : 1,
                               "method" : "GET",
-                              "name" : "srvcmdidx",
+                              "name" : "download",
                               "parameters" : {
                                  "additionalProperties" : 0,
                                  "properties" : {
+                                    "filename" : {
+                                       "description" : "The backup file name.",
+                                       "maxLength" : 256,
+                                       "minLength" : 4,
+                                       "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
+                                       "type" : "string"
+                                    },
                                     "node" : {
                                        "description" : "The cluster node name.",
                                        "format" : "pve-node",
                                        "type" : "string",
                                        "typetext" : "<string>"
-                                    },
-                                    "service" : {
-                                       "description" : "Service ID",
-                                       "enum" : [
-                                          "clamav-daemon",
-                                          "clamav-freshclam",
-                                          "fetchmail",
-                                          "pmgproxy",
-                                          "pmgdaemon",
-                                          "pmgpolicy",
-                                          "pmg-smtp-filter",
-                                          "pmgtunnel",
-                                          "pmgmirror",
-                                          "ssh",
-                                          "rsyslog",
-                                          "postfix",
-                                          "postgres",
-                                          "systemd-timesyncd",
-                                          "pmg-hourly",
-                                          "pmg-daily",
-                                          "pmgreport",
-                                          "pmgspamreport"
-                                       ],
-                                       "type" : "string"
                                     }
                                  }
                               },
                               "permissions" : {
                                  "check" : [
-                                    "admin",
-                                    "audit"
+                                    "admin"
                                  ]
                               },
+                              "protected" : 1,
+                              "proxyto" : "node",
                               "returns" : {
-                                 "items" : {
-                                    "properties" : {
-                                       "subdir" : {
-                                          "type" : "string"
-                                       }
+                                 "type" : "string"
+                              }
+                           },
+                           "POST" : {
+                              "allowtoken" : 1,
+                              "description" : "Restore the system configuration.",
+                              "method" : "POST",
+                              "name" : "restore",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "config" : {
+                                       "default" : 0,
+                                       "description" : "Restore system configuration.",
+                                       "optional" : 1,
+                                       "type" : "boolean",
+                                       "typetext" : "<boolean>"
                                     },
-                                    "type" : "object"
-                                 },
-                                 "links" : [
-                                    {
-                                       "href" : "{subdir}",
-                                       "rel" : "child"
+                                    "database" : {
+                                       "default" : 1,
+                                       "description" : "Restore the rule database. This is the default.",
+                                       "optional" : 1,
+                                       "type" : "boolean",
+                                       "typetext" : "<boolean>"
+                                    },
+                                    "filename" : {
+                                       "description" : "The backup file name.",
+                                       "maxLength" : 256,
+                                       "minLength" : 4,
+                                       "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
+                                       "type" : "string"
+                                    },
+                                    "node" : {
+                                       "description" : "The cluster node name.",
+                                       "format" : "pve-node",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    },
+                                    "statistic" : {
+                                       "default" : 0,
+                                       "description" : "Restore statistic databases. Only considered when you restore the 'database'.",
+                                       "optional" : 1,
+                                       "type" : "boolean",
+                                       "typetext" : "<boolean>"
                                     }
-                                 ],
-                                 "type" : "array"
+                                 }
+                              },
+                              "permissions" : {
+                                 "check" : [
+                                    "admin"
+                                 ]
+                              },
+                              "protected" : 1,
+                              "proxyto" : "node",
+                              "returns" : {
+                                 "type" : "string"
                               }
                            }
                         },
-                        "leaf" : 0,
-                        "path" : "/nodes/{node}/services/{service}",
-                        "text" : "{service}"
+                        "leaf" : 1,
+                        "path" : "/nodes/{node}/backup/{filename}",
+                        "text" : "{filename}"
                      }
                   ],
                   "info" : {
                      "GET" : {
-                        "description" : "Service list.",
+                        "allowtoken" : 1,
+                        "description" : "List all stored backups (files named proxmox-backup_{DATE}.tgz).",
                         "method" : "GET",
-                        "name" : "index",
+                        "name" : "list",
                         "parameters" : {
                            "additionalProperties" : 0,
                            "properties" : {
@@ -11061,248 +13769,554 @@ var pmgapi = [
                         "proxyto" : "node",
                         "returns" : {
                            "items" : {
-                              "properties" : {},
+                              "properties" : {
+                                 "filename" : {
+                                    "description" : "The backup file name.",
+                                    "maxLength" : 256,
+                                    "minLength" : 4,
+                                    "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
+                                    "type" : "string"
+                                 },
+                                 "size" : {
+                                    "description" : "Size of backup file in bytes.",
+                                    "type" : "integer"
+                                 },
+                                 "timestamp" : {
+                                    "description" : "Backup timestamp (Unix epoch).",
+                                    "type" : "integer"
+                                 }
+                              },
                               "type" : "object"
                            },
                            "links" : [
                               {
-                                 "href" : "{service}",
+                                 "href" : "{filename}",
                                  "rel" : "child"
                               }
-                           ],
-                           "type" : "array"
-                        }
-                     }
-                  },
-                  "leaf" : 0,
-                  "path" : "/nodes/{node}/services",
-                  "text" : "services"
-               },
-               {
-                  "info" : {
-                     "GET" : {
-                        "description" : "Read subscription info.",
-                        "method" : "GET",
-                        "name" : "get",
-                        "parameters" : {
-                           "additionalProperties" : 0,
-                           "properties" : {
-                              "node" : {
-                                 "description" : "The cluster node name.",
-                                 "format" : "pve-node",
-                                 "type" : "string",
-                                 "typetext" : "<string>"
-                              }
-                           }
-                        },
-                        "permissions" : {
-                           "check" : [
-                              "admin",
-                              "qmanager",
-                              "audit",
-                              "quser"
-                           ]
-                        },
-                        "proxyto" : "node",
-                        "returns" : {
-                           "type" : "object"
-                        }
-                     },
-                     "POST" : {
-                        "description" : "Update subscription info.",
-                        "method" : "POST",
-                        "name" : "update",
-                        "parameters" : {
-                           "additionalProperties" : 0,
-                           "properties" : {
-                              "force" : {
-                                 "default" : 0,
-                                 "description" : "Always connect to server, even if we have up to date info inside local cache.",
-                                 "optional" : 1,
-                                 "type" : "boolean",
-                                 "typetext" : "<boolean>"
-                              },
-                              "node" : {
-                                 "description" : "The cluster node name.",
-                                 "format" : "pve-node",
-                                 "type" : "string",
-                                 "typetext" : "<string>"
-                              }
-                           }
-                        },
-                        "permissions" : {
-                           "check" : [
-                              "admin"
-                           ]
-                        },
-                        "protected" : 1,
-                        "proxyto" : "node",
-                        "returns" : {
-                           "type" : "null"
+                           ],
+                           "type" : "array"
                         }
                      },
-                     "PUT" : {
-                        "description" : "Set subscription key.",
-                        "method" : "PUT",
-                        "name" : "set",
+                     "POST" : {
+                        "allowtoken" : 1,
+                        "description" : "Backup the system configuration.",
+                        "method" : "POST",
+                        "name" : "backup",
                         "parameters" : {
                            "additionalProperties" : 0,
                            "properties" : {
-                              "key" : {
-                                 "description" : "Proxmox Mail Gateway subscription key",
-                                 "maxLength" : 32,
-                                 "pattern" : "pmg([cbsp])-[0-9a-f]{10}",
-                                 "type" : "string"
-                              },
                               "node" : {
                                  "description" : "The cluster node name.",
                                  "format" : "pve-node",
                                  "type" : "string",
                                  "typetext" : "<string>"
+                              },
+                              "notify" : {
+                                 "default" : "never",
+                                 "description" : "Specify when to notify via e-mail",
+                                 "enum" : [
+                                    "always",
+                                    "error",
+                                    "never"
+                                 ],
+                                 "optional" : 1,
+                                 "type" : "string"
+                              },
+                              "statistic" : {
+                                 "default" : 1,
+                                 "description" : "Backup statistic databases.",
+                                 "optional" : 1,
+                                 "type" : "boolean",
+                                 "typetext" : "<boolean>"
                               }
                            }
                         },
+                        "permissions" : {
+                           "check" : [
+                              "admin"
+                           ]
+                        },
                         "protected" : 1,
                         "proxyto" : "node",
                         "returns" : {
-                           "type" : "null"
+                           "type" : "string"
                         }
                      }
                   },
-                  "leaf" : 1,
-                  "path" : "/nodes/{node}/subscription",
-                  "text" : "subscription"
+                  "leaf" : 0,
+                  "path" : "/nodes/{node}/backup",
+                  "text" : "backup"
                },
                {
                   "children" : [
                      {
-                        "info" : {
-                           "GET" : {
-                              "description" : "List available updates.",
-                              "method" : "GET",
-                              "name" : "list_updates",
-                              "parameters" : {
-                                 "additionalProperties" : 0,
-                                 "properties" : {
-                                    "node" : {
-                                       "description" : "The cluster node name.",
-                                       "format" : "pve-node",
-                                       "type" : "string",
-                                       "typetext" : "<string>"
+                        "children" : [
+                           {
+                              "children" : [
+                                 {
+                                    "children" : [
+                                       {
+                                          "info" : {
+                                             "DELETE" : {
+                                                "allowtoken" : 1,
+                                                "description" : "Forget a snapshot",
+                                                "method" : "DELETE",
+                                                "name" : "forget_snapshot",
+                                                "parameters" : {
+                                                   "additionalProperties" : 0,
+                                                   "properties" : {
+                                                      "backup-id" : {
+                                                         "description" : "ID (hostname) of backup snapshot",
+                                                         "type" : "string",
+                                                         "typetext" : "<string>"
+                                                      },
+                                                      "backup-time" : {
+                                                         "description" : "Backup time in RFC 3339 format",
+                                                         "type" : "string",
+                                                         "typetext" : "<string>"
+                                                      },
+                                                      "node" : {
+                                                         "description" : "The cluster node name.",
+                                                         "format" : "pve-node",
+                                                         "type" : "string",
+                                                         "typetext" : "<string>"
+                                                      },
+                                                      "remote" : {
+                                                         "description" : "Proxmox Backup Server ID.",
+                                                         "format" : "pve-configid",
+                                                         "type" : "string",
+                                                         "typetext" : "<string>"
+                                                      }
+                                                   }
+                                                },
+                                                "permissions" : {
+                                                   "check" : [
+                                                      "admin",
+                                                      "audit"
+                                                   ]
+                                                },
+                                                "protected" : 1,
+                                                "proxyto" : "node",
+                                                "returns" : {
+                                                   "type" : "null"
+                                                }
+                                             },
+                                             "POST" : {
+                                                "allowtoken" : 1,
+                                                "description" : "Restore the system configuration.",
+                                                "method" : "POST",
+                                                "name" : "restore",
+                                                "parameters" : {
+                                                   "additionalProperties" : 0,
+                                                   "properties" : {
+                                                      "backup-id" : {
+                                                         "description" : "backup-id (hostname) of backup snapshot",
+                                                         "type" : "string",
+                                                         "typetext" : "<string>"
+                                                      },
+                                                      "backup-time" : {
+                                                         "description" : "backup-time to restore",
+                                                         "type" : "string",
+                                                         "typetext" : "<string>"
+                                                      },
+                                                      "config" : {
+                                                         "default" : 0,
+                                                         "description" : "Restore system configuration.",
+                                                         "optional" : 1,
+                                                         "type" : "boolean",
+                                                         "typetext" : "<boolean>"
+                                                      },
+                                                      "database" : {
+                                                         "default" : 1,
+                                                         "description" : "Restore the rule database. This is the default.",
+                                                         "optional" : 1,
+                                                         "type" : "boolean",
+                                                         "typetext" : "<boolean>"
+                                                      },
+                                                      "node" : {
+                                                         "description" : "The cluster node name.",
+                                                         "format" : "pve-node",
+                                                         "type" : "string",
+                                                         "typetext" : "<string>"
+                                                      },
+                                                      "remote" : {
+                                                         "description" : "Proxmox Backup Server ID.",
+                                                         "format" : "pve-configid",
+                                                         "type" : "string",
+                                                         "typetext" : "<string>"
+                                                      },
+                                                      "statistic" : {
+                                                         "default" : 0,
+                                                         "description" : "Restore statistic databases. Only considered when you restore the 'database'.",
+                                                         "optional" : 1,
+                                                         "type" : "boolean",
+                                                         "typetext" : "<boolean>"
+                                                      }
+                                                   }
+                                                },
+                                                "permissions" : {
+                                                   "check" : [
+                                                      "admin"
+                                                   ]
+                                                },
+                                                "protected" : 1,
+                                                "proxyto" : "node",
+                                                "returns" : {
+                                                   "type" : "string"
+                                                }
+                                             }
+                                          },
+                                          "leaf" : 1,
+                                          "path" : "/nodes/{node}/pbs/{remote}/snapshot/{backup-id}/{backup-time}",
+                                          "text" : "{backup-time}"
+                                       }
+                                    ],
+                                    "info" : {
+                                       "GET" : {
+                                          "allowtoken" : 1,
+                                          "description" : "Get snapshots from a specific ID stored on remote.",
+                                          "method" : "GET",
+                                          "name" : "get_group_snapshots",
+                                          "parameters" : {
+                                             "additionalProperties" : 0,
+                                             "properties" : {
+                                                "backup-id" : {
+                                                   "description" : "ID (hostname) of backup snapshot",
+                                                   "type" : "string",
+                                                   "typetext" : "<string>"
+                                                },
+                                                "node" : {
+                                                   "description" : "The cluster node name.",
+                                                   "format" : "pve-node",
+                                                   "type" : "string",
+                                                   "typetext" : "<string>"
+                                                },
+                                                "remote" : {
+                                                   "description" : "Proxmox Backup Server ID.",
+                                                   "format" : "pve-configid",
+                                                   "type" : "string",
+                                                   "typetext" : "<string>"
+                                                }
+                                             }
+                                          },
+                                          "permissions" : {
+                                             "check" : [
+                                                "admin",
+                                                "audit"
+                                             ]
+                                          },
+                                          "protected" : 1,
+                                          "proxyto" : "node",
+                                          "returns" : {
+                                             "items" : {
+                                                "properties" : {
+                                                   "backup-id" : {
+                                                      "type" : "string"
+                                                   },
+                                                   "backup-time" : {
+                                                      "type" : "string"
+                                                   },
+                                                   "ctime" : {
+                                                      "type" : "string"
+                                                   },
+                                                   "size" : {
+                                                      "type" : "integer"
+                                                   }
+                                                },
+                                                "type" : "object"
+                                             },
+                                             "links" : [
+                                                {
+                                                   "href" : "{backup-time}",
+                                                   "rel" : "child"
+                                                }
+                                             ],
+                                             "type" : "array"
+                                          }
+                                       }
+                                    },
+                                    "leaf" : 0,
+                                    "path" : "/nodes/{node}/pbs/{remote}/snapshot/{backup-id}",
+                                    "text" : "{backup-id}"
+                                 }
+                              ],
+                              "info" : {
+                                 "GET" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Get snapshots stored on remote.",
+                                    "method" : "GET",
+                                    "name" : "get_snapshots",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "remote" : {
+                                             "description" : "Proxmox Backup Server ID.",
+                                             "format" : "pve-configid",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin",
+                                          "audit"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "items" : {
+                                          "properties" : {
+                                             "backup-id" : {
+                                                "type" : "string"
+                                             },
+                                             "backup-time" : {
+                                                "type" : "string"
+                                             },
+                                             "ctime" : {
+                                                "type" : "string"
+                                             },
+                                             "size" : {
+                                                "type" : "integer"
+                                             }
+                                          },
+                                          "type" : "object"
+                                       },
+                                       "links" : [
+                                          {
+                                             "href" : "{backup-id}",
+                                             "rel" : "child"
+                                          }
+                                       ],
+                                       "type" : "array"
+                                    }
+                                 },
+                                 "POST" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Create a new backup and prune the backup group afterwards, if configured.",
+                                    "method" : "POST",
+                                    "name" : "run_backup",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "notify" : {
+                                             "default" : "never",
+                                             "description" : "Specify when to notify via e-mail",
+                                             "enum" : [
+                                                "always",
+                                                "error",
+                                                "never"
+                                             ],
+                                             "optional" : 1,
+                                             "type" : "string"
+                                          },
+                                          "remote" : {
+                                             "description" : "Proxmox Backup Server ID.",
+                                             "format" : "pve-configid",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "statistic" : {
+                                             "default" : 1,
+                                             "description" : "Backup statistic databases.",
+                                             "optional" : 1,
+                                             "type" : "boolean",
+                                             "typetext" : "<boolean>"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin",
+                                          "audit"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "type" : "string"
                                     }
                                  }
                               },
-                              "permissions" : {
-                                 "check" : [
-                                    "admin",
-                                    "audit"
-                                 ]
-                              },
-                              "protected" : 1,
-                              "proxyto" : "node",
-                              "returns" : {
-                                 "items" : {
-                                    "properties" : {},
-                                    "type" : "object"
-                                 },
-                                 "type" : "array"
-                              }
+                              "leaf" : 0,
+                              "path" : "/nodes/{node}/pbs/{remote}/snapshot",
+                              "text" : "snapshot"
                            },
-                           "POST" : {
-                              "description" : "This is used to resynchronize the package index files from their sources (apt-get update).",
-                              "method" : "POST",
-                              "name" : "update_database",
-                              "parameters" : {
-                                 "additionalProperties" : 0,
-                                 "properties" : {
-                                    "node" : {
-                                       "description" : "The cluster node name.",
-                                       "format" : "pve-node",
-                                       "type" : "string",
-                                       "typetext" : "<string>"
+                           {
+                              "info" : {
+                                 "DELETE" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Delete backup schedule",
+                                    "method" : "DELETE",
+                                    "name" : "delete_timer",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "remote" : {
+                                             "description" : "Proxmox Backup Server ID.",
+                                             "format" : "pve-configid",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin",
+                                          "audit"
+                                       ]
                                     },
-                                    "notify" : {
-                                       "default" : 0,
-                                       "description" : "Send notification mail about new packages (to email address specified for user 'root@pam').",
-                                       "optional" : 1,
-                                       "type" : "boolean",
-                                       "typetext" : "<boolean>"
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "type" : "null"
+                                    }
+                                 },
+                                 "GET" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Get timer specification",
+                                    "method" : "GET",
+                                    "name" : "list_timer",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "remote" : {
+                                             "description" : "Proxmox Backup Server ID.",
+                                             "format" : "pve-configid",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          }
+                                       }
                                     },
-                                    "quiet" : {
-                                       "default" : 0,
-                                       "description" : "Only produces output suitable for logging, omitting progress indicators.",
-                                       "optional" : 1,
-                                       "type" : "boolean",
-                                       "typetext" : "<boolean>"
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin",
+                                          "audit"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "properties" : {
+                                          "delay" : {
+                                             "default" : "5min",
+                                             "description" : "Randomized delay to add to the starttime (RandomizedDelaySec setting of the systemd.timer)",
+                                             "optional" : 1,
+                                             "pattern" : "[0-9a-zA-Z. ]+",
+                                             "type" : "string"
+                                          },
+                                          "next-run" : {
+                                             "description" : "The date time of the next run, in server locale.",
+                                             "optional" : 1,
+                                             "type" : "string"
+                                          },
+                                          "remote" : {
+                                             "description" : "Proxmox Backup Server remote ID.",
+                                             "format" : "pve-configid",
+                                             "optional" : 1,
+                                             "type" : "string"
+                                          },
+                                          "schedule" : {
+                                             "default" : "daily",
+                                             "description" : "Schedule for the backup (OnCalendar setting of the systemd.timer)",
+                                             "optional" : 1,
+                                             "pattern" : "[0-9a-zA-Z*.:,\\-/ ]+",
+                                             "type" : "string"
+                                          },
+                                          "unitfile" : {
+                                             "description" : "unit file for the systemd.timer unit",
+                                             "optional" : 1,
+                                             "type" : "string"
+                                          }
+                                       },
+                                       "type" : "object"
                                     }
-                                 }
-                              },
-                              "permissions" : {
-                                 "check" : [
-                                    "admin"
-                                 ]
-                              },
-                              "protected" : 1,
-                              "proxyto" : "node",
-                              "returns" : {
-                                 "type" : "string"
-                              }
-                           }
-                        },
-                        "leaf" : 1,
-                        "path" : "/nodes/{node}/apt/update",
-                        "text" : "update"
-                     },
-                     {
-                        "info" : {
-                           "GET" : {
-                              "description" : "Get package changelogs.",
-                              "method" : "GET",
-                              "name" : "changelog",
-                              "parameters" : {
-                                 "additionalProperties" : 0,
-                                 "properties" : {
-                                    "name" : {
-                                       "description" : "Package name.",
-                                       "type" : "string",
-                                       "typetext" : "<string>"
+                                 },
+                                 "POST" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Create backup schedule",
+                                    "method" : "POST",
+                                    "name" : "create_timer",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "delay" : {
+                                             "default" : "5min",
+                                             "description" : "Randomized delay to add to the starttime (RandomizedDelaySec setting of the systemd.timer)",
+                                             "optional" : 1,
+                                             "pattern" : "[0-9a-zA-Z. ]+",
+                                             "type" : "string"
+                                          },
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "remote" : {
+                                             "description" : "Proxmox Backup Server ID.",
+                                             "format" : "pve-configid",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "schedule" : {
+                                             "default" : "daily",
+                                             "description" : "Schedule for the backup (OnCalendar setting of the systemd.timer)",
+                                             "optional" : 1,
+                                             "pattern" : "[0-9a-zA-Z*.:,\\-/ ]+",
+                                             "type" : "string"
+                                          }
+                                       }
                                     },
-                                    "node" : {
-                                       "description" : "The cluster node name.",
-                                       "format" : "pve-node",
-                                       "type" : "string",
-                                       "typetext" : "<string>"
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin",
+                                          "audit"
+                                       ]
                                     },
-                                    "version" : {
-                                       "description" : "Package version.",
-                                       "optional" : 1,
-                                       "type" : "string",
-                                       "typetext" : "<string>"
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "type" : "null"
                                     }
                                  }
                               },
-                              "permissions" : {
-                                 "check" : [
-                                    "admin",
-                                    "audit"
-                                 ]
-                              },
-                              "proxyto" : "node",
-                              "returns" : {
-                                 "type" : "string"
-                              }
+                              "leaf" : 1,
+                              "path" : "/nodes/{node}/pbs/{remote}/timer",
+                              "text" : "timer"
                            }
-                        },
-                        "leaf" : 1,
-                        "path" : "/nodes/{node}/apt/changelog",
-                        "text" : "changelog"
-                     },
-                     {
+                        ],
                         "info" : {
                            "GET" : {
-                              "description" : "Get package information for important Proxmox packages.",
+                              "allowtoken" : 1,
+                              "description" : "Backup Job index.",
                               "method" : "GET",
-                              "name" : "versions",
+                              "name" : "remote_index",
                               "parameters" : {
                                  "additionalProperties" : 0,
                                  "properties" : {
@@ -11311,257 +14325,53 @@ var pmgapi = [
                                        "format" : "pve-node",
                                        "type" : "string",
                                        "typetext" : "<string>"
-                                    }
-                                 }
-                              },
-                              "permissions" : {
-                                 "check" : [
-                                    "admin",
-                                    "audit"
-                                 ]
-                              },
-                              "proxyto" : "node",
-                              "returns" : {
-                                 "items" : {
-                                    "properties" : {},
-                                    "type" : "object"
-                                 },
-                                 "type" : "array"
-                              }
-                           }
-                        },
-                        "leaf" : 1,
-                        "path" : "/nodes/{node}/apt/versions",
-                        "text" : "versions"
-                     }
-                  ],
-                  "info" : {
-                     "GET" : {
-                        "description" : "Directory index for apt (Advanced Package Tool).",
-                        "method" : "GET",
-                        "name" : "index",
-                        "parameters" : {
-                           "additionalProperties" : 0,
-                           "properties" : {
-                              "node" : {
-                                 "description" : "The cluster node name.",
-                                 "format" : "pve-node",
-                                 "type" : "string",
-                                 "typetext" : "<string>"
-                              }
-                           }
-                        },
-                        "permissions" : {
-                           "user" : "all"
-                        },
-                        "returns" : {
-                           "items" : {
-                              "properties" : {
-                                 "id" : {
-                                    "type" : "string"
-                                 }
-                              },
-                              "type" : "object"
-                           },
-                           "links" : [
-                              {
-                                 "href" : "{id}",
-                                 "rel" : "child"
-                              }
-                           ],
-                           "type" : "array"
-                        }
-                     }
-                  },
-                  "leaf" : 0,
-                  "path" : "/nodes/{node}/apt",
-                  "text" : "apt"
-               },
-               {
-                  "children" : [
-                     {
-                        "info" : {
-                           "GET" : {
-                              "description" : "Get the detailed syslog entries for a specific mail ID.",
-                              "method" : "GET",
-                              "name" : "maillog",
-                              "parameters" : {
-                                 "additionalProperties" : 0,
-                                 "properties" : {
-                                    "endtime" : {
-                                       "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
-                                       "minimum" : 1,
-                                       "optional" : 1,
-                                       "type" : "integer",
-                                       "typetext" : "<integer> (1 - N)"
-                                    },
-                                    "id" : {
-                                       "description" : "Mail ID (as returend by the list API).",
-                                       "maxLength" : 64,
-                                       "minLength" : 3,
-                                       "type" : "string",
-                                       "typetext" : "<string>"
                                     },
-                                    "node" : {
-                                       "description" : "The cluster node name.",
-                                       "format" : "pve-node",
+                                    "remote" : {
+                                       "description" : "Proxmox Backup Server ID.",
+                                       "format" : "pve-configid",
                                        "type" : "string",
                                        "typetext" : "<string>"
-                                    },
-                                    "starttime" : {
-                                       "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
-                                       "minimum" : 0,
-                                       "optional" : 1,
-                                       "type" : "integer",
-                                       "typetext" : "<integer> (0 - N)"
                                     }
                                  }
                               },
-                              "permissions" : {
-                                 "check" : [
-                                    "admin",
-                                    "audit"
-                                 ]
-                              },
-                              "protected" : 1,
-                              "proxyto" : "node",
                               "returns" : {
-                                 "properties" : {
-                                    "client" : {
-                                       "description" : "Client address",
-                                       "optional" : 1,
-                                       "type" : "string"
-                                    },
-                                    "dstatus" : {
-                                       "description" : "Delivery status.",
-                                       "maxLength" : 1,
-                                       "minLength" : 1,
-                                       "type" : "string"
-                                    },
-                                    "from" : {
-                                       "description" : "Sender email address.",
-                                       "type" : "string"
-                                    },
-                                    "id" : {
-                                       "description" : "Unique ID.",
-                                       "type" : "string"
-                                    },
-                                    "logs" : {
-                                       "items" : {
+                                 "items" : {
+                                    "properties" : {
+                                       "section" : {
                                           "type" : "string"
-                                       },
-                                       "type" : "array"
-                                    },
-                                    "msgid" : {
-                                       "description" : "SMTP message ID.",
-                                       "optional" : 1,
-                                       "type" : "string"
-                                    },
-                                    "qid" : {
-                                       "description" : "Postfix qmgr ID.",
-                                       "optional" : 1,
-                                       "type" : "string"
-                                    },
-                                    "relay" : {
-                                       "description" : "ID of relayed mail.",
-                                       "optional" : 1,
-                                       "type" : "string"
-                                    },
-                                    "rstatus" : {
-                                       "description" : "Delivery status of relayed mail.",
-                                       "maxLength" : 1,
-                                       "minLength" : 1,
-                                       "optional" : 1,
-                                       "type" : "string"
-                                    },
-                                    "size" : {
-                                       "description" : "The size of the raw email.",
-                                       "optional" : 1,
-                                       "type" : "number"
-                                    },
-                                    "time" : {
-                                       "description" : "Delivery timestamp.",
-                                       "type" : "integer"
+                                       }
                                     },
-                                    "to" : {
-                                       "description" : "Receiver email address.",
-                                       "type" : "string"
-                                    }
+                                    "type" : "object"
                                  },
-                                 "type" : "object"
+                                 "links" : [
+                                    {
+                                       "href" : "{section}",
+                                       "rel" : "child"
+                                    }
+                                 ],
+                                 "type" : "array"
                               }
                            }
                         },
-                        "leaf" : 1,
-                        "path" : "/nodes/{node}/tracker/{id}",
-                        "text" : "{id}"
+                        "leaf" : 0,
+                        "path" : "/nodes/{node}/pbs/{remote}",
+                        "text" : "{remote}"
                      }
                   ],
                   "info" : {
                      "GET" : {
-                        "description" : "Read mail list.",
+                        "allowtoken" : 1,
+                        "description" : "List all configured Proxmox Backup Server jobs.",
                         "method" : "GET",
-                        "name" : "list_mails",
+                        "name" : "list",
                         "parameters" : {
                            "additionalProperties" : 0,
                            "properties" : {
-                              "endtime" : {
-                                 "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
-                                 "minimum" : 1,
-                                 "optional" : 1,
-                                 "type" : "integer",
-                                 "typetext" : "<integer> (1 - N)"
-                              },
-                              "from" : {
-                                 "description" : "Sender email address filter.",
-                                 "maxLength" : 256,
-                                 "minLength" : 1,
-                                 "optional" : 1,
-                                 "type" : "string",
-                                 "typetext" : "<string>"
-                              },
-                              "greylist" : {
-                                 "default" : 0,
-                                 "description" : "Include Greylisted entries.",
-                                 "optional" : 1,
-                                 "type" : "boolean",
-                                 "typetext" : "<boolean>"
-                              },
-                              "ndr" : {
-                                 "default" : 0,
-                                 "description" : "Include NDRs (non delivery reports).",
-                                 "optional" : 1,
-                                 "type" : "boolean",
-                                 "typetext" : "<boolean>"
-                              },
                               "node" : {
                                  "description" : "The cluster node name.",
                                  "format" : "pve-node",
                                  "type" : "string",
                                  "typetext" : "<string>"
-                              },
-                              "starttime" : {
-                                 "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
-                                 "minimum" : 0,
-                                 "optional" : 1,
-                                 "type" : "integer",
-                                 "typetext" : "<integer> (0 - N)"
-                              },
-                              "target" : {
-                                 "description" : "Receiver email address filter.",
-                                 "maxLength" : 256,
-                                 "minLength" : 1,
-                                 "optional" : 1,
-                                 "type" : "string",
-                                 "typetext" : "<string>"
-                              },
-                              "xfilter" : {
-                                 "description" : "Only include mails containing this filter string.",
-                                 "maxLength" : 256,
-                                 "minLength" : 1,
-                                 "optional" : 1,
-                                 "type" : "string",
-                                 "typetext" : "<string>"
                               }
                            }
                         },
@@ -11575,130 +14385,569 @@ var pmgapi = [
                         "proxyto" : "node",
                         "returns" : {
                            "items" : {
+                              "additionalProperties" : 0,
                               "properties" : {
-                                 "client" : {
-                                    "description" : "Client address",
-                                    "optional" : 1,
+                                 "datastore" : {
+                                    "description" : "Proxmox Backup Server datastore name.",
+                                    "optional" : 0,
                                     "type" : "string"
                                  },
-                                 "dstatus" : {
-                                    "description" : "Delivery status.",
-                                    "maxLength" : 1,
-                                    "minLength" : 1,
-                                    "type" : "string"
+                                 "disable" : {
+                                    "description" : "Flag to disable (deactivate) the entry.",
+                                    "optional" : 1,
+                                    "type" : "boolean"
                                  },
-                                 "from" : {
-                                    "description" : "Sender email address.",
+                                 "fingerprint" : {
+                                    "description" : "Certificate SHA 256 fingerprint.",
+                                    "optional" : 1,
+                                    "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
                                     "type" : "string"
                                  },
-                                 "id" : {
-                                    "description" : "Unique ID.",
-                                    "type" : "string"
+                                 "include-statistics" : {
+                                    "description" : "Include statistics in scheduled backups",
+                                    "optional" : 1,
+                                    "type" : "boolean"
                                  },
-                                 "msgid" : {
-                                    "description" : "SMTP message ID.",
+                                 "keep-daily" : {
+                                    "description" : "Keep backups for the last <N> different days. If there is more than one backup for a single day, only the latest one is kept.",
+                                    "format_description" : "N",
+                                    "minimum" : "0",
                                     "optional" : 1,
-                                    "type" : "string"
+                                    "type" : "integer"
                                  },
-                                 "qid" : {
-                                    "description" : "Postfix qmgr ID.",
+                                 "keep-hourly" : {
+                                    "description" : "Keep backups for the last <N> different hours. If there is more than one backup for a single hour, only the latest one is kept.",
+                                    "format_description" : "N",
+                                    "minimum" : "0",
                                     "optional" : 1,
-                                    "type" : "string"
+                                    "type" : "integer"
                                  },
-                                 "relay" : {
-                                    "description" : "ID of relayed mail.",
+                                 "keep-last" : {
+                                    "description" : "Keep the last <N> backups.",
+                                    "format_description" : "N",
+                                    "minimum" : "0",
+                                    "optional" : 1,
+                                    "type" : "integer"
+                                 },
+                                 "keep-monthly" : {
+                                    "description" : "Keep backups for the last <N> different months. If there is more than one backup for a single month, only the latest one is kept.",
+                                    "format_description" : "N",
+                                    "minimum" : "0",
+                                    "optional" : 1,
+                                    "type" : "integer"
+                                 },
+                                 "keep-weekly" : {
+                                    "description" : "Keep backups for the last <N> different weeks. If there ismore than one backup for a single week, only the latest one is kept.",
+                                    "format_description" : "N",
+                                    "minimum" : "0",
+                                    "optional" : 1,
+                                    "type" : "integer"
+                                 },
+                                 "keep-yearly" : {
+                                    "description" : "Keep backups for the last <N> different years. If there is more than one backup for a single year, only the latest one is kept.",
+                                    "format_description" : "N",
+                                    "minimum" : "0",
+                                    "optional" : 1,
+                                    "type" : "integer"
+                                 },
+                                 "notify" : {
+                                    "description" : "Specify when to notify via e-mail",
+                                    "enum" : [
+                                       "always",
+                                       "error",
+                                       "never"
+                                    ],
                                     "optional" : 1,
                                     "type" : "string"
                                  },
-                                 "rstatus" : {
-                                    "description" : "Delivery status of relayed mail.",
-                                    "maxLength" : 1,
-                                    "minLength" : 1,
+                                 "password" : {
+                                    "description" : "Password or API token secret for the user on the Proxmox Backup Server.",
                                     "optional" : 1,
                                     "type" : "string"
                                  },
-                                 "size" : {
-                                    "description" : "The size of the raw email.",
+                                 "remote" : {
+                                    "description" : "Proxmox Backup Server ID.",
+                                    "format" : "pve-configid",
+                                    "type" : "string"
+                                 },
+                                 "server" : {
+                                    "description" : "Proxmox Backup Server address.",
+                                    "format" : "address",
+                                    "maxLength" : 256,
+                                    "optional" : 0,
+                                    "type" : "string"
+                                 },
+                                 "username" : {
+                                    "description" : "Username or API token ID on the Proxmox Backup Server",
+                                    "maxLength" : 512,
+                                    "minLength" : 3,
                                     "optional" : 1,
-                                    "type" : "number"
+                                    "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                                    "type" : "string"
+                                 }
+                              },
+                              "type" : "object"
+                           },
+                           "links" : [
+                              {
+                                 "href" : "{remote}",
+                                 "rel" : "child"
+                              }
+                           ],
+                           "type" : "array"
+                        }
+                     }
+                  },
+                  "leaf" : 0,
+                  "path" : "/nodes/{node}/pbs",
+                  "text" : "pbs"
+               },
+               {
+                  "children" : [
+                     {
+                        "info" : {
+                           "GET" : {
+                              "allowtoken" : 1,
+                              "description" : "Get information about the node's certificates.",
+                              "method" : "GET",
+                              "name" : "info",
+                              "parameters" : {
+                                 "additionalProperties" : 0,
+                                 "properties" : {
+                                    "node" : {
+                                       "description" : "The cluster node name.",
+                                       "format" : "pve-node",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    }
+                                 }
+                              },
+                              "permissions" : {
+                                 "user" : "all"
+                              },
+                              "protected" : 1,
+                              "proxyto" : "node",
+                              "returns" : {
+                                 "items" : {
+                                    "properties" : {
+                                       "filename" : {
+                                          "optional" : 1,
+                                          "type" : "string"
+                                       },
+                                       "fingerprint" : {
+                                          "description" : "Certificate SHA 256 fingerprint.",
+                                          "optional" : 1,
+                                          "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
+                                          "type" : "string"
+                                       },
+                                       "issuer" : {
+                                          "description" : "Certificate issuer name.",
+                                          "optional" : 1,
+                                          "type" : "string"
+                                       },
+                                       "notafter" : {
+                                          "description" : "Certificate's notAfter timestamp (UNIX epoch).",
+                                          "optional" : 1,
+                                          "renderer" : "timestamp",
+                                          "type" : "integer"
+                                       },
+                                       "notbefore" : {
+                                          "description" : "Certificate's notBefore timestamp (UNIX epoch).",
+                                          "optional" : 1,
+                                          "renderer" : "timestamp",
+                                          "type" : "integer"
+                                       },
+                                       "pem" : {
+                                          "description" : "Certificate in PEM format",
+                                          "format" : "pem-certificate",
+                                          "optional" : 1,
+                                          "type" : "string"
+                                       },
+                                       "public-key-bits" : {
+                                          "description" : "Certificate's public key size",
+                                          "optional" : 1,
+                                          "type" : "integer"
+                                       },
+                                       "public-key-type" : {
+                                          "description" : "Certificate's public key algorithm",
+                                          "optional" : 1,
+                                          "type" : "string"
+                                       },
+                                       "san" : {
+                                          "description" : "List of Certificate's SubjectAlternativeName entries.",
+                                          "items" : {
+                                             "type" : "string"
+                                          },
+                                          "optional" : 1,
+                                          "renderer" : "yaml",
+                                          "type" : "array"
+                                       },
+                                       "subject" : {
+                                          "description" : "Certificate subject name.",
+                                          "optional" : 1,
+                                          "type" : "string"
+                                       }
+                                    },
+                                    "type" : "object"
                                  },
-                                 "time" : {
-                                    "description" : "Delivery timestamp.",
-                                    "type" : "integer"
+                                 "type" : "array"
+                              }
+                           }
+                        },
+                        "leaf" : 1,
+                        "path" : "/nodes/{node}/certificates/info",
+                        "text" : "info"
+                     },
+                     {
+                        "children" : [
+                           {
+                              "info" : {
+                                 "DELETE" : {
+                                    "allowtoken" : 1,
+                                    "description" : "DELETE custom certificate chain and key.",
+                                    "method" : "DELETE",
+                                    "name" : "remove_custom_cert",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "restart" : {
+                                             "default" : 0,
+                                             "description" : "Restart pmgproxy.",
+                                             "optional" : 1,
+                                             "type" : "boolean",
+                                             "typetext" : "<boolean>"
+                                          },
+                                          "type" : {
+                                             "description" : "The TLS certificate type (API or SMTP certificate).",
+                                             "enum" : [
+                                                "api",
+                                                "smtp"
+                                             ],
+                                             "type" : "string"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "type" : "null"
+                                    }
                                  },
-                                 "to" : {
-                                    "description" : "Receiver email address.",
-                                    "type" : "string"
+                                 "POST" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Upload or update custom certificate chain and key.",
+                                    "method" : "POST",
+                                    "name" : "upload_custom_cert",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "certificates" : {
+                                             "description" : "PEM encoded certificate (chain).",
+                                             "format" : "pem-certificate-chain",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "force" : {
+                                             "default" : 0,
+                                             "description" : "Overwrite existing custom or ACME certificate files.",
+                                             "optional" : 1,
+                                             "type" : "boolean",
+                                             "typetext" : "<boolean>"
+                                          },
+                                          "key" : {
+                                             "description" : "PEM encoded private key.",
+                                             "format" : "pem-string",
+                                             "optional" : 0,
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "restart" : {
+                                             "default" : 0,
+                                             "description" : "Restart services.",
+                                             "optional" : 1,
+                                             "type" : "boolean",
+                                             "typetext" : "<boolean>"
+                                          },
+                                          "type" : {
+                                             "description" : "The TLS certificate type (API or SMTP certificate).",
+                                             "enum" : [
+                                                "api",
+                                                "smtp"
+                                             ],
+                                             "type" : "string"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "properties" : {
+                                          "filename" : {
+                                             "optional" : 1,
+                                             "type" : "string"
+                                          },
+                                          "fingerprint" : {
+                                             "description" : "Certificate SHA 256 fingerprint.",
+                                             "optional" : 1,
+                                             "pattern" : "([A-Fa-f0-9]{2}:){31}[A-Fa-f0-9]{2}",
+                                             "type" : "string"
+                                          },
+                                          "issuer" : {
+                                             "description" : "Certificate issuer name.",
+                                             "optional" : 1,
+                                             "type" : "string"
+                                          },
+                                          "notafter" : {
+                                             "description" : "Certificate's notAfter timestamp (UNIX epoch).",
+                                             "optional" : 1,
+                                             "renderer" : "timestamp",
+                                             "type" : "integer"
+                                          },
+                                          "notbefore" : {
+                                             "description" : "Certificate's notBefore timestamp (UNIX epoch).",
+                                             "optional" : 1,
+                                             "renderer" : "timestamp",
+                                             "type" : "integer"
+                                          },
+                                          "pem" : {
+                                             "description" : "Certificate in PEM format",
+                                             "format" : "pem-certificate",
+                                             "optional" : 1,
+                                             "type" : "string"
+                                          },
+                                          "public-key-bits" : {
+                                             "description" : "Certificate's public key size",
+                                             "optional" : 1,
+                                             "type" : "integer"
+                                          },
+                                          "public-key-type" : {
+                                             "description" : "Certificate's public key algorithm",
+                                             "optional" : 1,
+                                             "type" : "string"
+                                          },
+                                          "san" : {
+                                             "description" : "List of Certificate's SubjectAlternativeName entries.",
+                                             "items" : {
+                                                "type" : "string"
+                                             },
+                                             "optional" : 1,
+                                             "renderer" : "yaml",
+                                             "type" : "array"
+                                          },
+                                          "subject" : {
+                                             "description" : "Certificate subject name.",
+                                             "optional" : 1,
+                                             "type" : "string"
+                                          }
+                                       },
+                                       "type" : "object"
+                                    }
                                  }
                               },
-                              "type" : "object"
-                           },
-                           "links" : [
-                              {
-                                 "href" : "{id}",
-                                 "rel" : "child"
-                              }
-                           ],
-                           "type" : "array"
-                        }
-                     }
-                  },
-                  "leaf" : 0,
-                  "path" : "/nodes/{node}/tracker",
-                  "text" : "tracker"
-               },
-               {
-                  "children" : [
-                     {
+                              "leaf" : 1,
+                              "path" : "/nodes/{node}/certificates/custom/{type}",
+                              "text" : "{type}"
+                           }
+                        ],
                         "info" : {
-                           "DELETE" : {
-                              "description" : "Delete a backup file.",
-                              "method" : "DELETE",
-                              "name" : "delete",
+                           "GET" : {
+                              "allowtoken" : 1,
+                              "description" : "Certificate index.",
+                              "method" : "GET",
+                              "name" : "custom_cert_index",
                               "parameters" : {
                                  "additionalProperties" : 0,
                                  "properties" : {
-                                    "filename" : {
-                                       "description" : "The backup file name.",
-                                       "maxLength" : 256,
-                                       "minLength" : 4,
-                                       "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
+                                    "node" : {
+                                       "description" : "The cluster node name.",
+                                       "format" : "pve-node",
+                                       "type" : "string",
+                                       "typetext" : "<string>"
+                                    }
+                                 }
+                              },
+                              "permissions" : {
+                                 "user" : "all"
+                              },
+                              "returns" : {
+                                 "items" : {
+                                    "properties" : {},
+                                    "type" : "object"
+                                 },
+                                 "links" : [
+                                    {
+                                       "href" : "{type}",
+                                       "rel" : "child"
+                                    }
+                                 ],
+                                 "type" : "array"
+                              }
+                           }
+                        },
+                        "leaf" : 0,
+                        "path" : "/nodes/{node}/certificates/custom",
+                        "text" : "custom"
+                     },
+                     {
+                        "children" : [
+                           {
+                              "info" : {
+                                 "DELETE" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Revoke existing certificate from CA.",
+                                    "method" : "DELETE",
+                                    "name" : "revoke_acme_cert",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "type" : {
+                                             "description" : "The TLS certificate type (API or SMTP certificate).",
+                                             "enum" : [
+                                                "api",
+                                                "smtp"
+                                             ],
+                                             "type" : "string"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "type" : "string"
+                                    }
+                                 },
+                                 "POST" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Order a new certificate from ACME-compatible CA.",
+                                    "method" : "POST",
+                                    "name" : "new_acme_cert",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "force" : {
+                                             "default" : 0,
+                                             "description" : "Overwrite existing custom certificate.",
+                                             "optional" : 1,
+                                             "type" : "boolean",
+                                             "typetext" : "<boolean>"
+                                          },
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "type" : {
+                                             "description" : "The TLS certificate type (API or SMTP certificate).",
+                                             "enum" : [
+                                                "api",
+                                                "smtp"
+                                             ],
+                                             "type" : "string"
+                                          }
+                                       }
+                                    },
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
                                        "type" : "string"
+                                    }
+                                 },
+                                 "PUT" : {
+                                    "allowtoken" : 1,
+                                    "description" : "Renew existing certificate from CA.",
+                                    "method" : "PUT",
+                                    "name" : "renew_acme_cert",
+                                    "parameters" : {
+                                       "additionalProperties" : 0,
+                                       "properties" : {
+                                          "force" : {
+                                             "default" : 0,
+                                             "description" : "Force renewal even if expiry is more than 30 days away.",
+                                             "optional" : 1,
+                                             "type" : "boolean",
+                                             "typetext" : "<boolean>"
+                                          },
+                                          "node" : {
+                                             "description" : "The cluster node name.",
+                                             "format" : "pve-node",
+                                             "type" : "string",
+                                             "typetext" : "<string>"
+                                          },
+                                          "type" : {
+                                             "description" : "The TLS certificate type (API or SMTP certificate).",
+                                             "enum" : [
+                                                "api",
+                                                "smtp"
+                                             ],
+                                             "type" : "string"
+                                          }
+                                       }
                                     },
-                                    "node" : {
-                                       "description" : "The cluster node name.",
-                                       "format" : "pve-node",
-                                       "type" : "string",
-                                       "typetext" : "<string>"
+                                    "permissions" : {
+                                       "check" : [
+                                          "admin"
+                                       ]
+                                    },
+                                    "protected" : 1,
+                                    "proxyto" : "node",
+                                    "returns" : {
+                                       "type" : "string"
                                     }
                                  }
                               },
-                              "permissions" : {
-                                 "check" : [
-                                    "admin"
-                                 ]
-                              },
-                              "protected" : 1,
-                              "proxyto" : "node",
-                              "returns" : {
-                                 "type" : "null"
-                              }
-                           },
+                              "leaf" : 1,
+                              "path" : "/nodes/{node}/certificates/acme/{type}",
+                              "text" : "{type}"
+                           }
+                        ],
+                        "info" : {
                            "GET" : {
-                              "description" : "Download a backup file.",
-                              "download" : 1,
+                              "allowtoken" : 1,
+                              "description" : "ACME Certificate index.",
                               "method" : "GET",
-                              "name" : "download",
+                              "name" : "acme_cert_index",
                               "parameters" : {
                                  "additionalProperties" : 0,
                                  "properties" : {
-                                    "filename" : {
-                                       "description" : "The backup file name.",
-                                       "maxLength" : 256,
-                                       "minLength" : 4,
-                                       "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
-                                       "type" : "string"
-                                    },
                                     "node" : {
                                        "description" : "The cluster node name.",
                                        "format" : "pve-node",
@@ -11708,81 +14957,74 @@ var pmgapi = [
                                  }
                               },
                               "permissions" : {
-                                 "check" : [
-                                    "admin"
-                                 ]
+                                 "user" : "all"
                               },
-                              "protected" : 1,
-                              "proxyto" : "node",
                               "returns" : {
-                                 "type" : "string"
-                              }
-                           },
-                           "POST" : {
-                              "description" : "Restore the system configuration.",
-                              "method" : "POST",
-                              "name" : "restore",
-                              "parameters" : {
-                                 "additionalProperties" : 0,
-                                 "properties" : {
-                                    "config" : {
-                                       "default" : 0,
-                                       "description" : "Restore system configuration.",
-                                       "optional" : 1,
-                                       "type" : "boolean",
-                                       "typetext" : "<boolean>"
-                                    },
-                                    "database" : {
-                                       "default" : 1,
-                                       "description" : "Restore the rule database. This is the default.",
-                                       "optional" : 1,
-                                       "type" : "boolean",
-                                       "typetext" : "<boolean>"
-                                    },
-                                    "filename" : {
-                                       "description" : "The backup file name.",
-                                       "maxLength" : 256,
-                                       "minLength" : 4,
-                                       "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
-                                       "type" : "string"
-                                    },
-                                    "node" : {
-                                       "description" : "The cluster node name.",
-                                       "format" : "pve-node",
-                                       "type" : "string",
-                                       "typetext" : "<string>"
-                                    },
-                                    "statistic" : {
-                                       "default" : 0,
-                                       "description" : "Restore statistic databases. Only considered when you restore the 'database'.",
-                                       "optional" : 1,
-                                       "type" : "boolean",
-                                       "typetext" : "<boolean>"
+                                 "items" : {
+                                    "properties" : {},
+                                    "type" : "object"
+                                 },
+                                 "links" : [
+                                    {
+                                       "href" : "{type}",
+                                       "rel" : "child"
                                     }
-                                 }
-                              },
-                              "permissions" : {
-                                 "check" : [
-                                    "admin"
-                                 ]
-                              },
-                              "protected" : 1,
-                              "proxyto" : "node",
-                              "returns" : {
-                                 "type" : "string"
+                                 ],
+                                 "type" : "array"
                               }
                            }
                         },
-                        "leaf" : 1,
-                        "path" : "/nodes/{node}/backup/{filename}",
-                        "text" : "{filename}"
+                        "leaf" : 0,
+                        "path" : "/nodes/{node}/certificates/acme",
+                        "text" : "acme"
                      }
                   ],
                   "info" : {
                      "GET" : {
-                        "description" : "List all stored backups (files named proxmox-backup_{DATE}.tgz).",
+                        "allowtoken" : 1,
+                        "description" : "Node index.",
                         "method" : "GET",
-                        "name" : "list",
+                        "name" : "index",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "node" : {
+                                 "description" : "The cluster node name.",
+                                 "format" : "pve-node",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              }
+                           }
+                        },
+                        "permissions" : {
+                           "user" : "all"
+                        },
+                        "returns" : {
+                           "items" : {
+                              "properties" : {},
+                              "type" : "object"
+                           },
+                           "links" : [
+                              {
+                                 "href" : "{name}",
+                                 "rel" : "child"
+                              }
+                           ],
+                           "type" : "array"
+                        }
+                     }
+                  },
+                  "leaf" : 0,
+                  "path" : "/nodes/{node}/certificates",
+                  "text" : "certificates"
+               },
+               {
+                  "info" : {
+                     "GET" : {
+                        "allowtoken" : 1,
+                        "description" : "Get node configuration options.",
+                        "method" : "GET",
+                        "name" : "get_config",
                         "parameters" : {
                            "additionalProperties" : 0,
                            "properties" : {
@@ -11803,76 +15045,172 @@ var pmgapi = [
                         "protected" : 1,
                         "proxyto" : "node",
                         "returns" : {
-                           "items" : {
-                              "properties" : {
-                                 "filename" : {
-                                    "description" : "The backup file name.",
-                                    "maxLength" : 256,
-                                    "minLength" : 4,
-                                    "pattern" : "pmg-backup_[0-9A-Za-z_-]+\\.tgz",
-                                    "type" : "string"
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "acme" : {
+                                 "description" : "Node specific ACME settings.",
+                                 "format" : {
+                                    "account" : {
+                                       "default" : "default",
+                                       "description" : "ACME account config file name.",
+                                       "format" : "pve-configid",
+                                       "format_description" : "name",
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    }
                                  },
-                                 "size" : {
-                                    "description" : "Size of backup file in bytes.",
-                                    "type" : "integer"
+                                 "optional" : 1,
+                                 "type" : "string"
+                              },
+                              "acmedomain[n]" : {
+                                 "description" : "ACME domain and validation plugin",
+                                 "format" : {
+                                    "alias" : {
+                                       "description" : "Alias for the Domain to verify ACME Challenge over DNS",
+                                       "format" : "pmg-acme-alias",
+                                       "format_description" : "domain",
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    },
+                                    "domain" : {
+                                       "default_key" : 1,
+                                       "description" : "domain for this node's ACME certificate",
+                                       "format" : "pmg-acme-domain",
+                                       "format_description" : "domain",
+                                       "type" : "string"
+                                    },
+                                    "plugin" : {
+                                       "default" : "standalone",
+                                       "description" : "The ACME plugin ID",
+                                       "format" : "pve-configid",
+                                       "format_description" : "name of the plugin configuration",
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    },
+                                    "usage" : {
+                                       "description" : "Whether this domain is used for the API, SMTP or both",
+                                       "format" : "pmg-certificate-type-list",
+                                       "format_description" : "usage list",
+                                       "type" : "string"
+                                    }
                                  },
-                                 "timestamp" : {
-                                    "description" : "Backup timestamp (Unix epoch).",
-                                    "type" : "integer"
-                                 }
+                                 "optional" : 1,
+                                 "type" : "string"
+                              },
+                              "digest" : {
+                                 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
+                                 "maxLength" : 40,
+                                 "optional" : 1,
+                                 "type" : "string"
+                              }
+                           },
+                           "type" : "object"
+                        }
+                     },
+                     "PUT" : {
+                        "allowtoken" : 1,
+                        "description" : "Set node configuration options.",
+                        "method" : "PUT",
+                        "name" : "set_config",
+                        "parameters" : {
+                           "additionalProperties" : 0,
+                           "properties" : {
+                              "acme" : {
+                                 "description" : "Node specific ACME settings.",
+                                 "format" : {
+                                    "account" : {
+                                       "default" : "default",
+                                       "description" : "ACME account config file name.",
+                                       "format" : "pve-configid",
+                                       "format_description" : "name",
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    }
+                                 },
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "[account=<name>]"
+                              },
+                              "acmedomain[n]" : {
+                                 "description" : "ACME domain and validation plugin",
+                                 "format" : {
+                                    "alias" : {
+                                       "description" : "Alias for the Domain to verify ACME Challenge over DNS",
+                                       "format" : "pmg-acme-alias",
+                                       "format_description" : "domain",
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    },
+                                    "domain" : {
+                                       "default_key" : 1,
+                                       "description" : "domain for this node's ACME certificate",
+                                       "format" : "pmg-acme-domain",
+                                       "format_description" : "domain",
+                                       "type" : "string"
+                                    },
+                                    "plugin" : {
+                                       "default" : "standalone",
+                                       "description" : "The ACME plugin ID",
+                                       "format" : "pve-configid",
+                                       "format_description" : "name of the plugin configuration",
+                                       "optional" : 1,
+                                       "type" : "string"
+                                    },
+                                    "usage" : {
+                                       "description" : "Whether this domain is used for the API, SMTP or both",
+                                       "format" : "pmg-certificate-type-list",
+                                       "format_description" : "usage list",
+                                       "type" : "string"
+                                    }
+                                 },
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "[domain=]<domain> ,usage=<usage list> [,alias=<domain>] [,plugin=<name of the plugin configuration>]"
+                              },
+                              "delete" : {
+                                 "description" : "A list of settings you want to delete.",
+                                 "format" : "pve-configid-list",
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
+                              "digest" : {
+                                 "description" : "Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.",
+                                 "maxLength" : 40,
+                                 "optional" : 1,
+                                 "type" : "string",
+                                 "typetext" : "<string>"
                               },
-                              "type" : "object"
-                           },
-                           "links" : [
-                              {
-                                 "href" : "{filename}",
-                                 "rel" : "child"
-                              }
-                           ],
-                           "type" : "array"
-                        }
-                     },
-                     "POST" : {
-                        "description" : "Backup the system configuration.",
-                        "method" : "POST",
-                        "name" : "backup",
-                        "parameters" : {
-                           "additionalProperties" : 0,
-                           "properties" : {
                               "node" : {
                                  "description" : "The cluster node name.",
                                  "format" : "pve-node",
                                  "type" : "string",
                                  "typetext" : "<string>"
-                              },
-                              "statistic" : {
-                                 "default" : 1,
-                                 "description" : "Backup statistic databases.",
-                                 "optional" : 1,
-                                 "type" : "boolean",
-                                 "typetext" : "<boolean>"
                               }
-                           }
+                           },
+                           "type" : "object"
                         },
                         "permissions" : {
                            "check" : [
-                              "admin"
+                              "admin",
+                              "audit"
                            ]
                         },
                         "protected" : 1,
                         "proxyto" : "node",
                         "returns" : {
-                           "type" : "string"
+                           "type" : "null"
                         }
                      }
                   },
-                  "leaf" : 0,
-                  "path" : "/nodes/{node}/backup",
-                  "text" : "backup"
+                  "leaf" : 1,
+                  "path" : "/nodes/{node}/config",
+                  "text" : "config"
                },
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Gather various system information about a node",
                         "method" : "GET",
                         "name" : "report",
@@ -11907,6 +15245,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read node RRD statistics",
                         "method" : "GET",
                         "name" : "rrddata",
@@ -11965,6 +15304,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read system log",
                         "method" : "GET",
                         "name" : "syslog",
@@ -12043,6 +15383,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read Journal",
                         "method" : "GET",
                         "name" : "journal",
@@ -12113,24 +15454,36 @@ var pmgapi = [
                {
                   "info" : {
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Creates a Terminal proxy.",
                         "method" : "POST",
                         "name" : "termproxy",
                         "parameters" : {
                            "additionalProperties" : 0,
                            "properties" : {
+                              "cmd" : {
+                                 "default" : "login",
+                                 "description" : "Run specific command or default to login.",
+                                 "enum" : [
+                                    "upgrade",
+                                    "login"
+                                 ],
+                                 "optional" : 1,
+                                 "type" : "string"
+                              },
+                              "cmd-opts" : {
+                                 "default" : "",
+                                 "description" : "Add parameters to a command. Encoded as null terminated strings.",
+                                 "optional" : 1,
+                                 "requires" : "cmd",
+                                 "type" : "string",
+                                 "typetext" : "<string>"
+                              },
                               "node" : {
                                  "description" : "The cluster node name.",
                                  "format" : "pve-node",
                                  "type" : "string",
                                  "typetext" : "<string>"
-                              },
-                              "upgrade" : {
-                                 "default" : 0,
-                                 "description" : "Run 'apt-get dist-upgrade' instead of normal shell.",
-                                 "optional" : 1,
-                                 "type" : "boolean",
-                                 "typetext" : "<boolean>"
                               }
                            }
                         },
@@ -12166,6 +15519,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Opens a weksocket for VNC traffic.",
                         "method" : "GET",
                         "name" : "vncwebsocket",
@@ -12215,6 +15569,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read DNS settings.",
                         "method" : "GET",
                         "name" : "dns",
@@ -12264,6 +15619,7 @@ var pmgapi = [
                         }
                      },
                      "PUT" : {
+                        "allowtoken" : 1,
                         "description" : "Write DNS settings.",
                         "method" : "PUT",
                         "name" : "update_dns",
@@ -12318,6 +15674,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read server time and time zone settings.",
                         "method" : "GET",
                         "name" : "time",
@@ -12361,6 +15718,7 @@ var pmgapi = [
                         }
                      },
                      "PUT" : {
+                        "allowtoken" : 1,
                         "description" : "Set time zone.",
                         "method" : "PUT",
                         "name" : "set_timezone",
@@ -12394,6 +15752,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read server status. This is used by the cluster manager to test the node health.",
                         "method" : "GET",
                         "name" : "status",
@@ -12439,6 +15798,7 @@ var pmgapi = [
                         }
                      },
                      "POST" : {
+                        "allowtoken" : 1,
                         "description" : "Reboot or shutdown a node.",
                         "method" : "POST",
                         "name" : "node_cmd",
@@ -12480,6 +15840,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Node index.",
                   "method" : "GET",
                   "name" : "index",
@@ -12519,6 +15880,7 @@ var pmgapi = [
       ],
       "info" : {
          "GET" : {
+            "allowtoken" : 1,
             "description" : "Cluster node index.",
             "method" : "GET",
             "name" : "index",
@@ -12554,6 +15916,7 @@ var pmgapi = [
                {
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Delete a user.",
                         "method" : "DELETE",
                         "name" : "delete",
@@ -12577,6 +15940,7 @@ var pmgapi = [
                         }
                      },
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Read User data.",
                         "method" : "GET",
                         "name" : "read",
@@ -12607,6 +15971,7 @@ var pmgapi = [
                         }
                      },
                      "PUT" : {
+                        "allowtoken" : 1,
                         "description" : "Update user data.",
                         "method" : "PUT",
                         "name" : "write",
@@ -12685,7 +16050,7 @@ var pmgapi = [
                                  "typetext" : "<string>"
                               },
                               "role" : {
-                                 "description" : "User role. Role 'root' is reseved for the Unix Superuser.",
+                                 "description" : "User role. Role 'root' is reserved for the Unix Superuser.",
                                  "enum" : [
                                     "root",
                                     "admin",
@@ -12720,6 +16085,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "List users.",
                   "method" : "GET",
                   "name" : "index",
@@ -12764,6 +16130,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Create new user",
                   "method" : "POST",
                   "name" : "create",
@@ -12834,7 +16201,7 @@ var pmgapi = [
                            "typetext" : "<string>"
                         },
                         "role" : {
-                           "description" : "User role. Role 'root' is reseved for the Unix Superuser.",
+                           "description" : "User role. Role 'root' is reserved for the Unix Superuser.",
                            "enum" : [
                               "root",
                               "admin",
@@ -12868,6 +16235,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Dummy. Useful for formaters which want to priovde a login page.",
                   "method" : "GET",
                   "name" : "get_ticket",
@@ -12882,6 +16250,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Create or verify authentication ticket.",
                   "method" : "POST",
                   "name" : "create_ticket",
@@ -12959,6 +16328,7 @@ var pmgapi = [
          {
             "info" : {
                "PUT" : {
+                  "allowtoken" : 1,
                   "description" : "Change user password.",
                   "method" : "PUT",
                   "name" : "change_passsword",
@@ -12999,6 +16369,7 @@ var pmgapi = [
       ],
       "info" : {
          "GET" : {
+            "allowtoken" : 1,
             "description" : "Directory index.",
             "method" : "GET",
             "name" : "index",
@@ -13038,6 +16409,7 @@ var pmgapi = [
                {
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Delete user whitelist entries.",
                         "method" : "DELETE",
                         "name" : "whitelist_delete",
@@ -13051,11 +16423,11 @@ var pmgapi = [
                                  "type" : "string"
                               },
                               "pmail" : {
-                                 "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.",
+                                 "description" : "List entries for the user with this primary email address. Quarantine users cannot specify this parameter, but it is required for all other roles.",
                                  "maxLength" : 512,
                                  "minLength" : 3,
                                  "optional" : 1,
-                                 "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                                 "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                                  "type" : "string"
                               }
                            }
@@ -13080,7 +16452,45 @@ var pmgapi = [
                }
             ],
             "info" : {
+               "DELETE" : {
+                  "allowtoken" : 1,
+                  "description" : "Delete user whitelist entries.",
+                  "method" : "DELETE",
+                  "name" : "whitelist_delete_base",
+                  "parameters" : {
+                     "additionalProperties" : 0,
+                     "properties" : {
+                        "address" : {
+                           "description" : "The address, or comma-separated list of addresses, you want to remove.",
+                           "minLength" : 3,
+                           "pattern" : "",
+                           "type" : "string"
+                        },
+                        "pmail" : {
+                           "description" : "List entries for the user with this primary email address. Quarantine users cannot specify this parameter, but it is required for all other roles.",
+                           "maxLength" : 512,
+                           "minLength" : 3,
+                           "optional" : 1,
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                           "type" : "string"
+                        }
+                     }
+                  },
+                  "permissions" : {
+                     "check" : [
+                        "admin",
+                        "qmanager",
+                        "audit",
+                        "quser"
+                     ]
+                  },
+                  "protected" : 1,
+                  "returns" : {
+                     "type" : "null"
+                  }
+               },
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Show user whitelist.",
                   "method" : "GET",
                   "name" : "whitelist",
@@ -13088,11 +16498,11 @@ var pmgapi = [
                      "additionalProperties" : 0,
                      "properties" : {
                         "pmail" : {
-                           "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.",
+                           "description" : "List entries for the user with this primary email address. Quarantine users cannot specify this parameter, but it is required for all other roles.",
                            "maxLength" : 512,
                            "minLength" : 3,
                            "optional" : 1,
-                           "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                            "type" : "string"
                         }
                      }
@@ -13118,6 +16528,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Add user whitelist entries.",
                   "method" : "POST",
                   "name" : "whitelist_add",
@@ -13131,11 +16542,11 @@ var pmgapi = [
                            "type" : "string"
                         },
                         "pmail" : {
-                           "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.",
+                           "description" : "List entries for the user with this primary email address. Quarantine users cannot specify this parameter, but it is required for all other roles.",
                            "maxLength" : 512,
                            "minLength" : 3,
                            "optional" : 1,
-                           "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                            "type" : "string"
                         }
                      }
@@ -13163,6 +16574,7 @@ var pmgapi = [
                {
                   "info" : {
                      "DELETE" : {
+                        "allowtoken" : 1,
                         "description" : "Delete user blacklist entries.",
                         "method" : "DELETE",
                         "name" : "blacklist_delete",
@@ -13176,11 +16588,11 @@ var pmgapi = [
                                  "type" : "string"
                               },
                               "pmail" : {
-                                 "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.",
+                                 "description" : "List entries for the user with this primary email address. Quarantine users cannot specify this parameter, but it is required for all other roles.",
                                  "maxLength" : 512,
                                  "minLength" : 3,
                                  "optional" : 1,
-                                 "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                                 "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                                  "type" : "string"
                               }
                            }
@@ -13205,7 +16617,45 @@ var pmgapi = [
                }
             ],
             "info" : {
+               "DELETE" : {
+                  "allowtoken" : 1,
+                  "description" : "Delete user blacklist entries.",
+                  "method" : "DELETE",
+                  "name" : "blacklist_delete_base",
+                  "parameters" : {
+                     "additionalProperties" : 0,
+                     "properties" : {
+                        "address" : {
+                           "description" : "The address, or comma-separated list of addresses, you want to remove.",
+                           "minLength" : 3,
+                           "pattern" : "",
+                           "type" : "string"
+                        },
+                        "pmail" : {
+                           "description" : "List entries for the user with this primary email address. Quarantine users cannot specify this parameter, but it is required for all other roles.",
+                           "maxLength" : 512,
+                           "minLength" : 3,
+                           "optional" : 1,
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                           "type" : "string"
+                        }
+                     }
+                  },
+                  "permissions" : {
+                     "check" : [
+                        "admin",
+                        "qmanager",
+                        "audit",
+                        "quser"
+                     ]
+                  },
+                  "protected" : 1,
+                  "returns" : {
+                     "type" : "null"
+                  }
+               },
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Show user blacklist.",
                   "method" : "GET",
                   "name" : "blacklist",
@@ -13213,11 +16663,11 @@ var pmgapi = [
                      "additionalProperties" : 0,
                      "properties" : {
                         "pmail" : {
-                           "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.",
+                           "description" : "List entries for the user with this primary email address. Quarantine users cannot specify this parameter, but it is required for all other roles.",
                            "maxLength" : 512,
                            "minLength" : 3,
                            "optional" : 1,
-                           "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                            "type" : "string"
                         }
                      }
@@ -13243,6 +16693,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Add user blacklist entries.",
                   "method" : "POST",
                   "name" : "blacklist_add",
@@ -13256,11 +16707,11 @@ var pmgapi = [
                            "type" : "string"
                         },
                         "pmail" : {
-                           "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.",
+                           "description" : "List entries for the user with this primary email address. Quarantine users cannot specify this parameter, but it is required for all other roles.",
                            "maxLength" : 512,
                            "minLength" : 3,
                            "optional" : 1,
-                           "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                            "type" : "string"
                         }
                      }
@@ -13286,6 +16737,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get a list of receivers of spam in the given timespan (Default the last 24 hours).",
                   "method" : "GET",
                   "name" : "spamusers",
@@ -13336,6 +16788,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get Spam Quarantine Status",
                   "method" : "GET",
                   "name" : "spamstatus",
@@ -13379,7 +16832,8 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
-                  "description" : "Get a list of users with whitelist/blacklist setttings.",
+                  "allowtoken" : 1,
+                  "description" : "Get a list of users with whitelist/blacklist settings.",
                   "method" : "GET",
                   "name" : "quarusers",
                   "parameters" : {
@@ -13424,6 +16878,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get a list of quarantined spam mails in the given timeframe (default the last 24 hours) for the given user.",
                   "method" : "GET",
                   "name" : "spam",
@@ -13438,11 +16893,11 @@ var pmgapi = [
                            "typetext" : "<integer> (1 - N)"
                         },
                         "pmail" : {
-                           "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.",
+                           "description" : "List entries for the user with this primary email address. Quarantine users cannot specify this parameter, but it is required for all other roles.",
                            "maxLength" : 512,
                            "minLength" : 3,
                            "optional" : 1,
-                           "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                            "type" : "string"
                         },
                         "starttime" : {
@@ -13516,6 +16971,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get a list of quarantined virus mails in the given timeframe (default the last 24 hours).",
                   "method" : "GET",
                   "name" : "virus",
@@ -13599,6 +17055,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get a list of quarantined attachment mails in the given timeframe (default the last 24 hours).",
                   "method" : "GET",
                   "name" : "attachment",
@@ -13678,6 +17135,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get Virus Quarantine Status",
                   "method" : "GET",
                   "name" : "virusstatus",
@@ -13717,6 +17175,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "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).",
                   "method" : "GET",
                   "name" : "content",
@@ -13802,6 +17261,7 @@ var pmgapi = [
                   }
                },
                "POST" : {
+                  "allowtoken" : 1,
                   "description" : "Execute quarantine actions.",
                   "method" : "POST",
                   "name" : "action",
@@ -13819,7 +17279,7 @@ var pmgapi = [
                            "type" : "string"
                         },
                         "id" : {
-                           "description" : "Unique IDs, seperate with ;",
+                           "description" : "Unique IDs, separate with ;",
                            "pattern" : "C\\d+R\\d+T\\d+(;C\\d+R\\d+T\\d+)*",
                            "type" : "string"
                         }
@@ -13845,6 +17305,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get Attachments for E-Mail in Quarantine.",
                   "method" : "GET",
                   "name" : "listattachments",
@@ -13899,6 +17360,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Download E-Mail or Attachment from Quarantine.",
                   "download" : 1,
                   "method" : "GET",
@@ -13936,10 +17398,43 @@ var pmgapi = [
             "leaf" : 1,
             "path" : "/quarantine/download",
             "text" : "download"
+         },
+         {
+            "info" : {
+               "POST" : {
+                  "allowtoken" : 1,
+                  "description" : "Send Quarantine link to given e-mail.",
+                  "method" : "POST",
+                  "name" : "sendlink",
+                  "parameters" : {
+                     "additionalProperties" : 0,
+                     "properties" : {
+                        "mail" : {
+                           "description" : "Email Address (allow most characters).",
+                           "maxLength" : 512,
+                           "minLength" : 3,
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                           "type" : "string"
+                        }
+                     }
+                  },
+                  "permissions" : {
+                     "user" : "world"
+                  },
+                  "protected" : 1,
+                  "returns" : {
+                     "type" : "null"
+                  }
+               }
+            },
+            "leaf" : 1,
+            "path" : "/quarantine/sendlink",
+            "text" : "sendlink"
          }
       ],
       "info" : {
          "GET" : {
+            "allowtoken" : 1,
             "description" : "Directory index.",
             "method" : "GET",
             "name" : "index",
@@ -13975,6 +17470,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Detailed Contact Statistics.",
                         "method" : "GET",
                         "name" : "contactdetails",
@@ -13985,7 +17481,7 @@ var pmgapi = [
                                  "description" : "Contact email address.",
                                  "maxLength" : 512,
                                  "minLength" : 3,
-                                 "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                                 "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                                  "type" : "string"
                               },
                               "day" : {
@@ -14091,6 +17587,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Contact Address Statistics.",
                   "method" : "GET",
                   "name" : "contact",
@@ -14196,11 +17693,144 @@ var pmgapi = [
             "path" : "/statistics/contact",
             "text" : "contact"
          },
+         {
+            "info" : {
+               "GET" : {
+                  "allowtoken" : 1,
+                  "description" : "Detailed Statistics.",
+                  "method" : "GET",
+                  "name" : "detailstats",
+                  "parameters" : {
+                     "additionalProperties" : 0,
+                     "properties" : {
+                        "address" : {
+                           "description" : "Email address.",
+                           "maxLength" : 512,
+                           "minLength" : 3,
+                           "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                           "type" : "string"
+                        },
+                        "day" : {
+                           "description" : "Day of month. Get statistics for a single day.",
+                           "maximum" : 31,
+                           "minimum" : 1,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1 - 31)"
+                        },
+                        "endtime" : {
+                           "description" : "Only consider entries older than 'endtime' (unix epoch). This is set to '<start> + 1day' by default.",
+                           "minimum" : 1,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1 - N)"
+                        },
+                        "filter" : {
+                           "description" : "Address filter.",
+                           "maxLength" : 512,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "month" : {
+                           "description" : "Month. You will get statistics for the whole month if you do not specify a day.",
+                           "maximum" : 12,
+                           "minimum" : 1,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1 - 12)"
+                        },
+                        "orderby" : {
+                           "description" : "Remote sorting configuration(JSON, ExtJS compatible).",
+                           "maxLength" : 4096,
+                           "optional" : 1,
+                           "type" : "string",
+                           "typetext" : "<string>"
+                        },
+                        "starttime" : {
+                           "description" : "Only consider entries newer than 'starttime' (unix epoch). Default is 'now - 1day'.",
+                           "minimum" : 0,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (0 - N)"
+                        },
+                        "type" : {
+                           "description" : "Type of statistics",
+                           "enum" : [
+                              "contact",
+                              "sender",
+                              "receiver"
+                           ],
+                           "type" : "string"
+                        },
+                        "year" : {
+                           "description" : "Year. Defaults to current year. You will get statistics for the whole year if you do not specify a month or day.",
+                           "maximum" : 3000,
+                           "minimum" : 1900,
+                           "optional" : 1,
+                           "type" : "integer",
+                           "typetext" : "<integer> (1900 - 3000)"
+                        }
+                     }
+                  },
+                  "permissions" : {
+                     "check" : [
+                        "admin",
+                        "qmanager",
+                        "audit"
+                     ]
+                  },
+                  "returns" : {
+                     "items" : {
+                        "properties" : {
+                           "blocked" : {
+                              "description" : "Mail was blocked.",
+                              "type" : "boolean"
+                           },
+                           "bytes" : {
+                              "description" : "Mail traffic (Bytes).",
+                              "type" : "number"
+                           },
+                           "receiver" : {
+                              "description" : "Receiver email. (for sender statistics)",
+                              "optional" : 1,
+                              "type" : "string"
+                           },
+                           "sender" : {
+                              "description" : "Sender email. (for contact and receiver statistics)",
+                              "optional" : 1,
+                              "type" : "string"
+                           },
+                           "spamlevel" : {
+                              "description" : "Spam score.",
+                              "type" : "number"
+                           },
+                           "time" : {
+                              "description" : "Receive time stamp",
+                              "type" : "integer"
+                           },
+                           "virusinfo" : {
+                              "description" : "Virus name.",
+                              "optional" : 1,
+                              "type" : "string"
+                           }
+                        },
+                        "type" : "object"
+                     },
+                     "type" : "array"
+                  }
+               }
+            },
+            "leaf" : 1,
+            "path" : "/statistics/detail",
+            "text" : "detail"
+         },
          {
             "children" : [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Detailed Sender Statistics.",
                         "method" : "GET",
                         "name" : "senderdetails",
@@ -14248,7 +17878,7 @@ var pmgapi = [
                                  "description" : "Sender email address.",
                                  "maxLength" : 512,
                                  "minLength" : 3,
-                                 "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                                 "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                                  "type" : "string"
                               },
                               "starttime" : {
@@ -14317,6 +17947,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Sender Address Statistics.",
                   "method" : "GET",
                   "name" : "sender",
@@ -14427,6 +18058,7 @@ var pmgapi = [
                {
                   "info" : {
                      "GET" : {
+                        "allowtoken" : 1,
                         "description" : "Detailed Receiver Statistics.",
                         "method" : "GET",
                         "name" : "receiverdetails",
@@ -14474,7 +18106,7 @@ var pmgapi = [
                                  "description" : "Receiver email address.",
                                  "maxLength" : 512,
                                  "minLength" : 3,
-                                 "pattern" : "(?:[^\\s\\/\\\\@]+\\@[^\\s\\/\\\\@]+)",
+                                 "pattern" : "(?:[^\\s\\\\@]+\\@[^\\s\\/\\\\@]+)",
                                  "type" : "string"
                               },
                               "starttime" : {
@@ -14543,6 +18175,7 @@ var pmgapi = [
             ],
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Receiver Address Statistics.",
                   "method" : "GET",
                   "name" : "receiver",
@@ -14656,6 +18289,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Mail Domains Statistics.",
                   "method" : "GET",
                   "name" : "domains",
@@ -14762,6 +18396,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "General Mail Statistics.",
                   "method" : "GET",
                   "name" : "mail",
@@ -14901,6 +18536,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Mail Count Statistics.",
                   "method" : "GET",
                   "name" : "recent",
@@ -15003,6 +18639,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Top recent Mail Receivers (including spam)",
                   "method" : "GET",
                   "name" : "recentreceivers",
@@ -15061,6 +18698,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Mail Count Statistics.",
                   "method" : "GET",
                   "name" : "mailcount",
@@ -15192,6 +18830,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get Statistics about detected Viruses.",
                   "method" : "GET",
                   "name" : "virus",
@@ -15270,6 +18909,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get the count of spam mails grouped by spam score. Count for score 10 includes mails with spam score > 10.",
                   "method" : "GET",
                   "name" : "spamscores",
@@ -15352,6 +18992,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Get the count of spam mails grouped by spam score. Count for score 10 includes mails with spam score > 10.",
                   "method" : "GET",
                   "name" : "maildistribution",
@@ -15462,6 +19103,7 @@ var pmgapi = [
          {
             "info" : {
                "GET" : {
+                  "allowtoken" : 1,
                   "description" : "Early SMTP reject count statistic (RBL, PREGREET rejects with postscreen)",
                   "method" : "GET",
                   "name" : "rejectcount",
@@ -15557,6 +19199,7 @@ var pmgapi = [
       ],
       "info" : {
          "GET" : {
+            "allowtoken" : 1,
             "description" : "Directory index.",
             "method" : "GET",
             "name" : "index",
@@ -15592,6 +19235,7 @@ var pmgapi = [
    {
       "info" : {
          "GET" : {
+            "allowtoken" : 1,
             "description" : "API version details.",
             "method" : "GET",
             "name" : "version",