There is a function in there that updates notification subscriptions. Take a look at that, if you are still stuck next week I can send a more concrete example.
Subject: |
RE: Update Notification |
Author: |
Sachin Tewari |
Posted: |
2017-07-06 09:20 |
I figured it out.
Thanks for extending help.
zenoss_api triggers_router TriggersRouter updateNotification "{\"uid\":\"/zport/dmd/NotificationSubscriptions/$1\",\"enabled\":false,\"send_clear\":false,\"send_initial_occurrence\":true,\"delay_seconds\":\"0\",\"repeat_seconds\":\"0\",\"action_timeout\":\"60\",\"body_format\":\"$COMMAND2\",\"clear_body_format\":\"$CLEAR_COMMAND\",\"user_env_format\":null,\"notification_globalRead\":false,\"notification_globalWrite\":false,\"notification_globalManage\":false,\"recipients\":[],\"subscriptions\":[$TRIGGER_UUID]}"
------------------------------
Sachin Tewari
------------------------------