Get all Agents not Checked-in for Last N Days
Sample - Get all agents not checked-in in last N daysSample - Get all agents not checked-in in last N days
API request
curl -u "USERNAME:PASSWORD" -X "POST" -H "Content-Type: text/xml" -H "Cache-Control: no-cache" --data-binary @list_agents_not_checkedin.xml
"<qualys_base_url>/qps/rest/2.0/search/am/hostasset/"
Contents of list_agents_not_checkedin.xml
<?xml version="1.0" encoding="UTF-8" ?>
<ServiceRequest>
<filters>
<Criteria field="tagName" operator="EQUALS">Cloud Agent</Criteria>
<Criteria field="updated" operator="LESSER">2018-08-25T00:00:01Z</Criteria>
</filters>
</ServiceRequest>
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/2.0/am/asset.xsd">
<responseCode>SUCCESS</responseCode>
<count>3</count>
<data>
<Asset>
<id>712038</id>
<name>192.168.1.12</name>
<created>2016-06-18T16:54:50Z</created>
<modified>2016-06-18T16:54:51Z</modified>
<type>HOST</type>
<tags>
<list>
<TagSimple>
<id>509525</id>
<name>Cloud Agent</name>
</TagSimple>
</list>
</tags>
<sourceInfo>
<list>
<AssetSource/>
</list>
</sourceInfo>
</Asset>
<Asset>
<id>2532638</id>
<name>10.40.2.176</name>
<created>2017-04-17T13:32:48Z</created>
<modified>2017-05-14T14:06:03Z</modified>
<type>HOST</type>
<tags>
<list>
<TagSimple>
<id>509525</id>
<name>Cloud Agent</name>
</TagSimple>
</list>
</tags>
<sourceInfo>
<list>
<AssetSource/>
</list>
</sourceInfo>
</Asset>
<Asset>
<id>2532838</id>
<name>local IP agent</name>
<created>2016-04-19T13:52:08Z</created>
<modified>2017-02-05T12:26:48Z</modified>
<type>HOST</type>
<tags>
<list>
<TagSimple>
<id>509525</id>
<name>Cloud Agent</name>
</TagSimple>
<TagSimple>
<id>217325</id>
<name>Agent</name>
</TagSimple>
</list>
</tags>
<sourceInfo>
<list>
<AssetSource/>
</list>
</sourceInfo>
</Asset>
</data>
</ServiceResponse>
XSD
<platform API server>/qps/xsd/2.0/am/asset.xsd