AnsweredAssumed Answered

API to remove all IPs in an Asset Group

Question asked by Max Max on May 25, 2018
Latest reply on May 29, 2018 by Sam Friday

Hi, I am using this API to remove IPs from an Asset Group

curl -u "name:psw" -H "X-Requested-With: Curl" -X "POST" -d "id=123456&remove_ips=10.10.10.1-10.10.10.6" "https://qualysguard.qg2.apps.qualys.eu/api/2.0/fo/asset/group/?action=edit"
Is there a API to remove all the IPs in an asset group? 
I tried remove_ips=10.10.10.0/8 but I get the error "One or more IPs are no longer associated with this subscription"
I know I can cancel and recreate the another asset group, but the API needs the Asset Group id and change it would be troublesome.
Thanks

Outcomes