Add an SNMP Configuration
Use this API to add an SNMP configuration in Junos Space Service Now.
URI
https://[host]/api/juniper/servicenow/global-setting-management/snmp-configuration- management/addSNMPConfiguration (HTTP method = POST)
Consumes
- application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.createSnmpConfiguration+xml;version=1;charset=UTF-8
- application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.createSnmpConfiguration+json;version=1;charset=UTF-8
Request Elements
Element | Type | Description |
---|---|---|
configurationName | String | Name of the SNMP configuration |
server | String | IP address in IPv4 or IPv6 format or hostname of the SNMP server |
udpPort | Integer | Port for SNMP communication |
communityString | String | SNMP community string |
protocolVersion | String | Version of SNMP protocol used Possible values—v1, v2c |
Produces
- application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.servicenowmsg+xml;version=1
- application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.servicenowmsg+json;version=1
Response Elements
Element | Type | Description |
---|---|---|
msg | String | Status message of the add SNMP configuration |
Sample Input
Sample XML Input
<snmpConfiguration> <configurationName>test</configurationName> <server>test</server> <udpPort>161</udpPort> <communityString>public</communityString> <protocolVersion>v1</protocolVersion> </snmpConfiguration>
Sample JSON Input
{ "snmpConfiguration": { "configurationName": "test", "server": "test", "udpPort": "161", "communityString": "testingRest", "protocolVersion": "v1" } }
Sample Output
Sample XML Output
<servicenowmsg> <msg> SNMP configuration added successfully</msg> </servicenowmsg>
Sample JSON Output
{ "servicenowmsg": { "msg": "SNMP configuration added successfully" } }