AnsweredAssumed Answered

Invalid XML Response

Question asked by Abraham Martin Norada on Apr 28, 2016
Latest reply on May 8, 2016 by Marakai

Hi! I'm trying to run a python script with the module of qualys api. I'm creating a way to search for host assets using the hostname as a query yet whenever I try to run the script, this error appears:

 

<?xml version="1.0" encoding="UTF-8"?>

<ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://qualysapi.qualys.com/qps/xsd/1.0/am/hostasset.xsd">

  <responseCode>INVALID_REQUEST</responseCode>

  <responseErrorDetails>

    <errorMessage>Criteria: Invalid criteria (netbiosName).</errorMessage>

    <errorResolution>Please search against one of the following criteria: created, name, assignedTagId, id, updated.</errorResolution>

  </responseErrorDetails>

</ServiceResponse>

 

My question is how do i change the URL Service request from "https://qualysapi.qualys.com/qps/xsd/1.0/am/hostasset" to

 

"https://qualysapi.qualys.com/api/2.0/search/am/hostasset"

 

Thanks!

Outcomes