Delete Activation Key
Delete an activation key in the user’s account. It’s not possible to delete a key that has active agents associated with it.
Where “id” (Required) is the ID of the activation key to be deleted.
Permissions required - Managers with full scope. Other users must have these permissions: Access Permission “API Access” and CA Activation Key Permission “Delete Activation Key”.
Input ParametersInput Parameters
There are no input parameters.
Sample - Delete activation keySample - Delete activation key
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 @delete_key.xml
"<qualys_base_url>/qps/rest/1.0/delete/ca/agentactkey/59001"
Note: “delete_key.xml” contains the request POST data.
Contents of delete_key.xml
<?xml version="1.0" encoding="UTF-8"?>
<ServiceRequest></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>
<data>
<AgentActKey>
<id>59001</id>
</AgentActKey>
</data>
</ServiceResponse>
XSD
<platform API server>/qps/xsd/1.0/ca/agentactkey.xsd