Enable anomaly detection window is Empty or NULL value anomaly configuration is returned in the Web UI in a Flex environment
Problem
On a fresh installation of NetBackup in a Flex environment, the anomaly configuration might be empty as shown in the figure below instead of displaying the expected options:
- Enable only for unstructured data
- Enable
- Disable
Error Message
Solution
A workaround exists to solve this problem using an API POST call to " netbackup/security/anomaly-configurations" with the payload value given below using user credentials having RBAC permissions:
Payload:
{"data": [{"type": "anomalyConfig", "id": "1", "attributes": {"anomalyProxyServer": "", "sensitivity": 0, "purgeDataIntervalInMonths": 15, "liveDataGatherFrequencyInMins": 15, "disableAnomalyDetection": 0, "disableDetectionService": 0, "disableAlertService": 0, "excludeClients": [], "excludeClientPolicy": [], "disableFeaturePerPolicyType": [], "disablePolicyTypes": [], "anomalyBackendService": "3"}}]}
Successful API response :
After a successful API post call, the expected anomaly settings will be shown in the WEB UI window:
The settings to Enable only for unstructured data, Enable, or Disable can then be configured as required.