Use this API to return the total number of template in the API user’s scope.
User must have the Security Assessment Questionnaire (SAQ) module enabled, User must have API ACCESS and Access SAQ module permission, Output includes templates within the API user's scope.
The following input elements are optional and act as filters. When specified POST must be used. Multiple filters are combined using a logical AND.
Parameter | Mandatory/Optional | Data Type | Description | Allowed Operators |
id | Optional | Integer | ID of current template | EQUALS, IN |
uuid | Optional | Integer | UUID of the template | EQUALS |
name | Optional | Text | Name of current template | CONTAINS, EQUALS |
description | Optional | Text | Description of current template | CONTAINS, EQUALS |
category | Optional | Text | Category of current template | CONTAINS, EQUALS |
familyId | Optional | Integer | Family identifier of the template. | EQUALS |
revision | Optional | Integer | Version of the template. | EQUALS, IN |
isLibrary | Optional | Boolean | True if the template is created from a library template. | EQUALS |
questionCnt | Optional | Integer | Count of questions in a template. | EQUALS, IN |
state | Optional | String | State of current template | EQUALS, IN |
API Request
curl -u "USERNAME:PASSWORD" -X "POST" --data-binary @- "https://<qualysbaseurl>/qps/rest/1.0/count/saq/template"
Response
<?xml version="1.0" encoding="UTF-8"?>
<ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://<qualysbaseurl>/qps/xsd/1.0/saq/template.xsd">
<responseCode>SUCCESS</responseCode>
<count>85</count>
</ServiceResponse>
<platform API server>/qps/xsd/1.0/saq/librarytemplate.xsd