We have many Oracle databases that needs to be added into policy compliance scanning. As you know its going to be a cumbersome job to create authentication records
for each databases, i am successful creating the authentication record with api call from curl something like this
>curl -u username:password -H 'X-Requested-With:QualysApiExplorer' 'https://qualysapi.qualys.com/api/2.0/fo/auth/oracle/' –d 'action=create&title=ORACLE_PCM_DB1&ips=10.54.237.112&username=svc_qualys&password=password&sid=DB1&port=1521&pc_only=0&perform_windows_os_checks=0&perform_unix_os_checks=0&perform_unix_opatch_checks=0&echo_request=1'
But what about creating auth records of 100s of databases ? how do i call a text file with authentication records from perl/python? can any one guide me on this please