I am running scan.php using API call. I found out that if the ip address is not in my account subsciption, the scan will not start.
Does anyone know how to add the ip the account using API. Thanks.
You need to use "asset_ip.php" with the action=add. This is documented page 112 of the API v1 user guide (http://www.qualys.com/docs/QualysGuard_API_User_Guide.pdf)
Thanks Eric. It works for me.
Another question not directly related to this issue.
Is it possible that Qualys API not available at at times during the day?
The reason why I'm asking is because I am calling scan.php from my script, and one the qualys "Activity log" shows that "API: /msp/scan.php", but the scan doesn't start it.
What might be possible reason for it?
Thanks for helping
No, except during the maintenances (announced here: https://community.qualys.com/community/notifications-us) qualysguard is always availble. But the number of API calls are, by default, limited to 300 a day. Check the header of the HTTP response to know if you are hitting these limits (more info here: https://community.qualys.com/docs/DOC-2681)
I hope it helps,
Retrieving data ...