AnsweredAssumed Answered

Issues with pause scan  & resume scan API

Question asked by jthakar on Nov 30, 2011
Latest reply on Feb 10, 2012 by Q Nimbus

Hi,

 

i have been trying to pause one of the running scan through API and its giving me below error

 

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
  <RESPONSE>
    <DATETIME>2011-11-30T09:57:21Z</DATETIME>
    <CODE>1905</CODE>
    <TEXT>parameter action has invalid value: pause (please specify one of the following: list, fetch)</TEXT>
  </RESPONSE>
</SIMPLE_RETURN>

 

as given in the documentation

 

i am sending post parameters as given below to the URL (https://qualysapi.qualys.com/api/2.0/fo/scan/)

 

action=pause

scan_ref=scan/XXXXXXXXXX.XXXX

 

after getting such results i paused it manually from web iterface and tried to resume it through same API by posting

action=resume

 

and found the same result

 

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
  <RESPONSE>
    <DATETIME>2011-11-30T10:01:22Z</DATETIME>
    <CODE>1905</CODE>
    <TEXT>parameter action has invalid value: resume (please specify one of the following: list, fetch)</TEXT>
  </RESPONSE>
</SIMPLE_RETURN>

 

can anybody please let me know where i am getting wrong.

Outcomes