Update an SNMP Configuration
Use this API to update an SNMP configuration.
URI
https://[host]/api/juniper/servicenow/global-setting-management/snmp-configuration -management/snmpConfiguration/{id}/updateSNMPConfiguration (HTTP method = PUT)
URI Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | ID of the SNMP configuration to be updated |
Consumes
- application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.snmpConfiguration+xml;version=1;charset=UTF-8
- application/vnd.juniper.servicenow.global-setting-management.snmp-configuration- management.snmpConfiguration+json;version=1;charset=UTF-8
Request Elements
Element | Type | Description |
---|---|---|
id | Integer | ID of the SNMP configuration |
uri | String | Link to the SNMP configuration |
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 update SNMP configuration job |
Sample Input
Sample XML Input
<snmpConfiguration> <id>65538</id> <uri>/api/juniper/servicenow/global-setting-management/snmp-configuration -management/snmpConfiguration/65538</uri> <configurationName>test</configurationName> <server>test</server> <udpPort>161</udpPort> <communityString>public</communityString> <protocolVersion>v1</protocolVersion> </snmpConfiguration>
Sample JSON Input
{ "snmpConfiguration": { "id": "65538", "uri": "/api/juniper/servicenow/global-setting-management/snmp-configuration -management/snmpConfiguration/65538", "configurationName": "test", "server": "test", "udpPort": "161", "communityString": "public", "protocolVersion": "v1" } }
Sample Output
Sample XML Output
<servicenowmsg> <msg> SNMP configuration updated successfully</msg> </servicenowmsg>
Sample JSON Output
{ "servicenowmsg": { "msg": "SNMP configuration updated successfully" } }