Mass delete device objects?
Kris Germann
kgermann at portal.net.co
Sat Nov 5 16:37:11 EDT 2016
Thank you,
To be clear, this means I need to run:
root at config:/opt/genieacs# curl -i 'http://localhost:7557/devices/XXXX' -X DELETE
Where XXXX is the unique device_id for each of the devices in my ACS - is there any way I can make this a little easier, I have a few instances with 80 - 5000 devices in each.
Kris
> On Nov 1, 2016, at 3:49 PM, Oliver Kraitschy <okraits at arcor.de> wrote:
>
> Hello Kris,
>
> you have to iterate over all devices and send a delete request for each one
> of them.
>
> You can use the API for that:
>
> https://github.com/zaidka/genieacs/wiki/API-Reference
>
> Or you can do it more easily with the python API:
>
> https://github.com/TDT-GmbH/python-genieacs
>
> Greetings,
> Oliver
>
> On Tue, Nov 01, 2016 at 12:24:41PM -0400, Kris Germann wrote:
>> I find myself in the unique position of having tested too many devices, so I
>> have about 110 devices I need to delete...
>>
>> Is there a 'destroy all' function I could incorporate?
>>
>
>> _______________________________________________
>> Users mailing list
>> Users at lists.genieacs.com
>> http://lists.genieacs.com/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20161105/3292fc33/attachment.html>
More information about the Users
mailing list