create_test_exception
This command adds records to the vulnerability assessment test exceptions.
If a test on a specific datasource fails, it checks the last record of the test exceptions table
for that test and datasource. If the execution date is contained within the to and from dates of
the last record, the test is set to PASS, the recommendation is set to the explanation from the
exceptions record, and the result text is set as follows:
Test passed, based on exception approved by: .... effective from date to date.The API only adds records to remove an exception. A new record should be created with new dates as needed.
This GuardAPI is available in Guardium V9.5 and later.
The REST API is available in Guardium V11.0 and later.
REST API syntax
This API is available as a REST service with the
POST
method. Call this API as
follows:
POST https://[Guardium hostname or IP address]:8443/restAPI/test_exception
GuardAPI syntax
create_test_exception parameter=value
Parameters
Parameter | Value type | Description |
---|---|---|
assessmentDesc | String | |
assessmentScope | String | |
datasourceGroup | String | |
datasourceName | String | |
datasourceScope | String | |
datasourceType | String | For valid values, call create_test_exception from the command line with --help=true .
|
explanation | String | Required. A recommendation as to why the test passes. |
fromDate | String | |
testDescription | String | Required. A valid test name within Security Assessments. |
toDate | String |
Examples
grdapi create_test_exception datasourceName=ORAPROD5 testDescription="CVE-2009-0997" fromDate="2012-07-01 08:00:00" toDate="2012-07-31 08:00:00" explanation="Currently in testing stage"