AnsweredAssumed Answered

How to add IP addresses to domain using the API

Question asked by Andy Freitag on Mar 9, 2019
Latest reply on Aug 26, 2019 by Andy Freitag

Hi,

 

I am trying to add a list of single IP addresses to an asset domain using the API. Looking at the API documentation I found how to add and edit an asset domain. Unfortunately the example is not clear if I can use any parameters or adding information during the creation of a domain (add), also it only mentioned how to add a netblock with the edit action. Trying something like 

https://qualysapi.qualys.com/msp/asset_domain.php?action=edit&domain=mydomain.com&netblock=10.1.2.3/32,10.1.2.4/32

also results in an error message saying that this are not valid netblock. Does anyone know if there is a parameter to use for single IP addresses to add to an asset domain?

 

thanks

Andy

Outcomes