Delete Exceptions

POST/api/2.0/fo/compliance/exception/?action=delete

Delete one or more exceptions. This API is supported using PC.

Permissions - Click here for permissions info

Input ParametersInput Parameters

Parameter

Required/Optional

Data Type

Description

action=delete

Required

String

Speify action to delete exceptions.

echo_request={0|1}

Optional

Integer 

Specify 1 to view (echo) input parameters in the XML output. By default these are not included.

exception_numbers={value}

Required

Integer 

Exception numbers you want to delete. Multiple entries are comma separated. An exception number range is specified with a hyphen (for example, 50-55).

Sample - Delete ExceptionSample - Delete Exception

API Request

curl -u "USERNAME:PASSWD" -H "X-Requested-With: Curl" -X "POST" -d "action=delete&exception_numbers=40-41" "https://<qualys_base_url>/api/2.0/fo/compliance/exception/"

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE BATCH_RETURN SYSTEM "https://<qualys_base_url>/api/2.0/fo/compliance/exception/exception_batch_return.dtd">
<BATCH_RETURN>
  <RESPONSE>
    <DATETIME>2018-02-07T11:22:20Z</DATETIME>
    <BATCH_LIST>
      <BATCH>
        <TEXT>Exception(s) deleted successfully</TEXT>
        <NUMBER_SET>
          <NUMBER_RANGE>40-41</NUMBER_RANGE>
        </NUMBER_SET>
      </BATCH>
    </BATCH_LIST>
  </RESPONSE>
</BATCH_RETURN>

DTD

<platform API server>/api/2.0/fo/compliance/exception/exception_batch_return.dtd


 

 

Was this topic helpful?

success Thank you! We're glad to hear that this topic was useful.
success We appreciate your feedback. We'll work to make this topic better for you in the future.