AnsweredAssumed Answered

API v2 - Code 2000 Bad User/Password

Question asked by aweddell on Aug 1, 2012
Latest reply on Jul 13, 2017 by Neeraj Joshi

Hi All,

 

I'm trying to get some report data out of VM, I've followed the API references, but everytime I try to access the API cURL returns

<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/api/2.0/simple_return.dtd">

<SIMPLE_RETURN>

  <RESPONSE>

    <DATETIME>2012-08-02T05:30:49Z</DATETIME>

    <CODE>2000</CODE>

    <TEXT>Bad Login/Password</TEXT>

  </RESPONSE>

</SIMPLE_RETURN>

 

I'm using the following statement to try to retrieve a list of reports - curl -H "X-Requested-With: Curl Sample" -b "QualysSession=<<TRUNCATED>>; path=/api; secure" "https://qualysapi.qualys.com/api/2.0/fo/report/?action=list"

 

I've also tried to add -u user:pass to the above, and --anyauth, but they still return the same result.

 

I've enabled access through both the gui and API for the user, and the user does not have two-factor auth or client certs enabled.

 

Any ideas on what I'm missing?

 

Cheers

Outcomes