List Report Templates

GET POST/msp/report_template_list.php

List report templates in the user's account. A report template ID is returned for each template. The list includes templates for all report types. (This API does not support session authentication.)

Example - List Report TemplatesExample - List Report Templates

API Request

curl -u username:password -H "X-Requested-With: curl"
"https://<qualys_base_url>/msp/report_template_list.php"

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE REPORT_TEMPLATE_LIST SYSTEM "https://<qualys_base_url>/report_template_list.dtd">
<REPORT_TEMPLATE_LIST>
  <REPORT_TEMPLATE>
    <ID>235288</ID>
    <TYPE>Auto</TYPE>
    <TEMPLATE_TYPE>Scan</TEMPLATE_TYPE>
    <TITLE><![CDATA[Windows Authentication QIDs]]></TITLE>
    <USER>
      <LOGIN><![CDATA[acme_jk]]></LOGIN>
      <FIRSTNAME><![CDATA[Jason]]></FIRSTNAME>
      <LASTNAME><![CDATA[Kim]]></LASTNAME>
    </USER>
    <LAST_UPDATE>2018-02-12T18:09:10Z</LAST_UPDATE>
    <GLOBAL>0</GLOBAL>
  </REPORT_TEMPLATE>
  <REPORT_TEMPLATE>
    <ID>235164</ID>
    <TYPE>Auto</TYPE>
    <TEMPLATE_TYPE>Policy</TEMPLATE_TYPE>
    <TITLE><![CDATA[My Policy Report Template]]></TITLE>
    <USER>
      <LOGIN><![CDATA[acme_vs]]></LOGIN>
      <FIRSTNAME><![CDATA[Victor]]></FIRSTNAME>
      <LASTNAME><![CDATA[Smith]]></LASTNAME>
    </USER>
    <LAST_UPDATE>2017-12-09T22:47:58Z</LAST_UPDATE>
    <GLOBAL>0</GLOBAL>
  </REPORT_TEMPLATE>
  <REPORT_TEMPLATE>
    <ID>232556</ID>
    <TYPE>Auto</TYPE>
    <TEMPLATE_TYPE>Scan</TEMPLATE_TYPE>
    <TITLE><![CDATA[Executive Report]]></TITLE>
    <USER>
      <LOGIN><![CDATA[acme_jk]]></LOGIN>
      <FIRSTNAME><![CDATA[Jason]]></FIRSTNAME>
      <LASTNAME><![CDATA[Kim]]></LASTNAME>
    </USER>
    <LAST_UPDATE>2017-11-11T17:11:55Z</LAST_UPDATE>
    <GLOBAL>1</GLOBAL>
  </REPORT_TEMPLATE>
  <REPORT_TEMPLATE>
    <ID>232557</ID>
    <TYPE>Auto</TYPE>
    <TEMPLATE_TYPE>Scan</TEMPLATE_TYPE>
    <TITLE><![CDATA[Technical Report]]></TITLE>
    <USER>
      <LOGIN><![CDATA[acme_jk]]></LOGIN>
      <FIRSTNAME><![CDATA[Jason]]></FIRSTNAME>
      <LASTNAME><![CDATA[Kim]]></LASTNAME>
 ...
</REPORT_TEMPLATE_LIST>

Each element identifies template properties, including the report template ID, template type and title, in the sub-elements described below.

Element Description

<ID>

The template ID number.

<TYPE>

The template type: Auto (for automatic) or Manual.

<TEMPLATE_TYPE>

The report template type: Scan (for a scan report template)
Map (for a map report template)
Remediation (for a remediation report template)
Compliance (for a compliance report template)
Policy (for a compliance policy report template) Patch (for a patch report template)

<TITLE>

The template title, as defined in the Qualys user interface.

<USER>

The template owner, identified by login, first name and last name. For a system template, the login “system” is reported.

<LAST_UPDATE>

The most recent date and time when the template was updated.

<GLOBAL>

For a global template, the value 1 appears. For a non global template, the value 0 appears.

DTD

<platform API server>/api/2.0/fo/report/report_list_output.dtd