I am trying to create a host using the REST API (testing via Postman but will use python for production) and setting SNMPv3 attributes at the same time. I’ve manually configured a host with example config and then used the API to read the JSON representation of the attributes and then replicated the json list in a create host API request - eg below
The result is as follows (it seems that the snmp_community field is string only and doesn’t accept a list of SNMPv3 parameters as is displayed when you do a fetch of a preconfigured host).
The REST API currently has a data type issue where lists cannot be processed. The developers already work to fix that. You need to wait for a next patch release.
Can you hellp with a curl command line for adding a host that uses just snmpV3, authNopriv? I’ve been trying but can’t seem to figure out the precise syntax. I can get an agent host added but an snmp only host doesn’t work for me yet.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.