Returns the total number of web applications in the user’s account. Input elements are optional and are used to filter the number of web applications included in the count.
Permissions required - User must have WAS module enabled. The user account must have these permissions: Access Permission “API Access.” The count includes web applications in the user's scope.
These elements are optional and act as filters. When multiple elements are specified, parameters are combined using a logical AND. Click here for descriptions of <WebApp> elements.
Click here for available operators.
Parameter |
Mandatory /Optional |
Data Type |
Description |
---|---|---|---|
id |
Optional |
integer |
Web application ID. |
name |
Optional |
text |
Web application name. |
url |
Optional |
text |
The URL of web application. |
tags.name |
Optional |
text |
Tag name assigned to web application. |
tags.id |
Optional |
integer |
Tag ID assigned to the web application. |
createdDate |
Optional |
date |
The date when the web application was created in WAS, in UTC date/time format. |
updatedDate |
Optional |
date |
The date when the web application was last updated in WAS, in UTC date/time format. |
isScheduled |
Optional |
boolean |
A flag indicating whether a scan is scheduled for the web application. |
isScanned |
Optional |
boolean |
A flag indicating whether the web application has been scanned. |
lastScan.status |
Optional |
keyword |
Scan status reported by last web application scan: SUBMITTED, RUNNING, FINISHED, TIME_LIMIT_EXCEEDED, SCAN_NOT_LAUNCHED, SCANNER_NOT_AVAILABLE, ERROR or CANCELED |
lastScan.date |
Optional |
date |
Date when the web application was last scanned, in UTC date/time format. |
API request
curl -u "USERNAME:PASSWORD" "<qualys_base_url>/qps/rest/3.0/count/was/webapp"
XML response
<?xml version="1.0" encoding="UTF-8"?>
<ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="<qualys_base_url>/qps/xsd/3.0/was/webapp.xsd">
<responseCode>SUCCESS</responseCode>
<count>227</count>
</ServiceResponse>
API request
curl -u "USERNAME:PASSWORD" -H "content-type: text/xml" -X "POST" --data-binary @- "<qualys_base_url>/qps/rest/3.0/count/was/webapp" < file.xml
Request POST data
<ServiceRequest>
<filters>
<Criteria field="id" operator="IN">323126,323816</Criteria>
</filters>
</ServiceRequest>
Request POST data
<?xml version="1.0" encoding="UTF-8"?>
<ServiceResponse
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="<qualys_base_url>/qps/xsd/3.0/was/webapp.xsd">
<responseCode>SUCCESS</responseCode>
<count>0</count>
</ServiceResponse>
<platform API server>/qps/xsd/3.0/was/webapp.xsd