Qualys API does not allow to filter list of scan map results by last name. But we need to identify and download last scan every time we want to import data.
FCPC must be installed and running and Qualys needs to be configured well there.
Next, script misc/scripts/qualys-fetch-last-map.sh from repo needs to be used.
This example will download and import all latest maps from file maps.txt
# First, download all available map results
fcpc qualys list-maps >maps.list
# Create list of map names you want to download (every line contains one name)
cat <<EOF >maps.txt
Map1
Map2
Map2
EOF
# Run shell script which will extract last map scan for all map names
./qualys-fetch-last-map.sh maps.list <maps.txt
# Or you can use script for specific map name only:
./qualys-fetch-last-map.sh maps.list "Map1"