In CAPM 3.6 there is a new feature introduced to enable/disable interface polling. Using the attached python code, one can do the same in bulk for multiple interfaces. The Input required is the oData Interface ID for the said interface.
There are two inputs required. The Odata Device Ids in text file as below and if they need to be enabled/disabled.
inter.txt is sample file attached.
The script will summarise the status when it runs fully as below.
Type input file which has interface ids : inter.txt
Do you want to enable or disable polling : disable
Type output file to log : test.txt
Total Interfaces to be Updated : 2
Successfully done : 2
Failed to Update : 0
Details logged to file : test.txt
Since the API only returns success/failure, in case of failure, most probably the id is incorrect.
please leave a comment in case you face difficulties in running the script.