Search Disabled Activation Keys
Sample - Search for all activation keys that are disabledSample - Search for all activation keys that are disabled
API request
curl -u fo_username:password -X POST -H "X-Requested-With: curl" -H "Content-Type: text/xml" -H "Cache-Control: no-cache" --data-binary @list_disabled_keys.xml
"<qualys_base_url>/qps/rest/1.0/search/ca/agentactkey/"
Contents of list_disabled_keys.xml
<?xml version="1.0" encoding="UTF-8" ?>
<ServiceRequest>
<filters>
<Criteria field="isDisabled" operator="EQUALS">true</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/1.0/ca/agentactkey.xsd">
<responseCode>SUCCESS</responseCode>
<count>1</count>
<hasMoreRecords>false</hasMoreRecords>
<data>
<AgentActKey>
<id>25002</id>
<activationKey>dc5e51f9-89de-47e2-ad35-26d5ee0f865d</activationKey>
<status>ACTIVE</status>
<countPurchased>10</countPurchased>
<countUsed>0</countUsed>
<datePurchased>2017-10-05T23:05:42Z</datePurchased>
<type>COUNT_LIMITED</type>
<title>disabled from API</title>
<isDisabled>true</isDisabled>
<modules>
<list>
<ActivationKeyModule>
<license>VM_LICENSE</license>
</ActivationKeyModule>
</list>
</modules>
<tags>
<list/>
</tags>
<agents>
<list/>
</agents>
</AgentActKey>
</data>
</ServiceResponse>
XSD
<platform API server>/qps/xsd/1.0/ca/agentactkey.xsd