varun singhal

Qualys WAS - API Access Issue

Discussion created by varun singhal on Jan 16, 2017
Latest reply on Jan 16, 2017 by Dave Ferguson

Hi Team,

 

This is regarding Qualys WAS APIs

We are trying to run Qualys WAS API using below command:

curl -u "USERNAME:PASSWORD" "https://qualysapi.qualys.com/qps/rest/3.0/get/was/wasscan/ID"

We replaced ID with scan id and provided username and password but we got below output:

 

<?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/3.0/was/wasscan.xsd">
<responseCode>UNAUTHORIZED</responseCode>
<responseErrorDetails>
<errorMessage>You are not authorized to access the application through the API.</errorMessage>
<errorResolution>If you think this is an error, please contact your account manager.</errorResolution>
</responseErrorDetails>
</ServiceResponse>

 

When I checked the permission on Qualys Portal I found that API checkbox is already checked and looks like permission is already granted.

 

 

Please share some info to resolve this.

 

Thanks

Varun Singhal sharma.poorva88

Outcomes