]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/API2/Cluster/Notifications.pm
api: notifications: add 'smtp' to target index
[pve-manager.git] / PVE / API2 / Cluster / Notifications.pm
index 7047f0b12bff2c4662f0a376c81106f31f88f62a..68fdda2ae2f65e11d6fb6492368d2c4717e0a829 100644 (file)
@@ -107,6 +107,7 @@ __PACKAGE__->register_method ({
        my $result = [
            { name => 'gotify' },
            { name => 'sendmail' },
+           { name => 'smtp' },
        ];
 
        return $result;
@@ -143,7 +144,7 @@ __PACKAGE__->register_method ({
                'type' => {
                    description => 'Type of the target.',
                    type  => 'string',
-                   enum => [qw(sendmail gotify)],
+                   enum => [qw(sendmail gotify smtp)],
                },
                'comment' => {
                    description => 'Comment',