-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Hello,
When queried cluster contains security_audit_logs logs type of Application=SNMP, you get the following error:
netapp_ontap.error.NetAppRestError: Caused by ValidationError({'application': ["snmp" is not one of ['internal', 'console', 'rsh', 'telnet', 'ssh', 'ontapi', 'http', 'system']']})
To reproduce the issue have SNMP logs in cluster and run the following code:
from netapp_ontap import config, HostConnection
from netapp_ontap.resources import SecurityAuditLog
config.CONNECTION = HostConnection(
host="example-host.com",
username="username",
password="password",
verify=False
)
res = SecurityAuditLog.get_collection()
for r in res:
print(r)
curl-ing /api/security/audit/messages returns 200 status code with SNMP logs included.
From /docs/api SNMP is not a valid value. However, you can view SNMP logs through Web UI and CLI. Note that SNMP GET audit logging is enabled.
Metadata
Metadata
Assignees
Labels
No labels