Skip to content

SNMP not in Enum Validation for security_audit_log #54

@patriksze

Description

@patriksze

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions