AnsweredAssumed Answered

Remove IP from subscription via API

Question asked by Younes Talibi Alaoui on May 8, 2018
Latest reply on May 8, 2018 by Sam Friday

Hello,

 

I'm trying to remove an IP from subscription via API, but it doesn't seem to be working.

 

That is to say, I post the xml file containing the IP that I aim to remove, by running, as the API user guide requires : 

 

curl -u "user:password" -H "content-type: text/xml" -X "POST" --data-binary @-https://qualysapi.qg2.apps.qualys.eu/qps/rest/2.0/delete/am/hostasset" < file.xml

 

I get this response :

 

<?xml version="1.0" encoding="UTF-8"?>
<ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://qualysapi.qualys.eu/qps/xsd/2.0/am/hostasset.xsd">
  <responseCode>SUCCESS</responseCode>
  <count>1</count>
  <data>
    <HostAsset>
      <id>25804828</id>
    </HostAsset>
  </data>

 

However, when I check in the GUI, that is, in Assets->Host Assets, the IP is always there..

 

I know that removal of IP addresses may take some time, that's what says the notification message once we remove an IP via the GUI, but this one takes only few minutes, sometimes seconds. Through API, now it has been hours since I removed the first IP and I'm still waiting for it to be done

 

Am I the only one getting this issue?

 

Thanks in advance

 

PS: This issue was recently addressed here : API Remove IP from subscription, but it was only pointed out that perhaps it is taking some time

Outcomes