Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

REST API Method: PUT /rest/snmptargetaddress/{identifier}

Creates a SNMP Management Addresses Table given a specific Table ID.

The Sonus SBC 1000/2000 system allows you to define up to 10 SNMP management addresses.

URL:

https://134.56.227.163/rest/snmptargetaddress/{identifier}

HTTP Method

PUT

Requires Authentication:

true



Parameters

Parameter Name Required Service Affecting Data Type Default Value Possible Values Description
sCommTypeYesNoEnum0Possible values:
  • 0 - snmpCommNone
  • 1 - snmpReadOnly
  • 2 - snmpreadWrite
SNMP community type, if it is read only or read/write.
snmpCommunityYesNostringnone128 - Max Length SNMP community used for communicating with the manager.
snmpMgrAddrYesNostringnone256 - Max Length SNMP manager address(IP address or FQDN)
snmpTrapEnableYesNoint1Possible values:
  • 0 - Minimum
  • 1 - Maximum
Indicates if this manager accepts the traps. Default set to enabled(1), but can be disabled(0).

Usage Example: (about cURL | requires a session token)

curl --cookie PHPSESSID=fsqgefadjojefv6lmdtij6lh44 -s -k -i https://134.56.72.218/rest/snmptargetaddress/1 -X PUT --data "snmpTrapEnable=1&ConfigIEState=1&sCommType=1&snmpMgrAddr=192.168.99.20&snmpCommunity=public"

Response:

<?xml version="1.0"?>
<root>
 <status>
  <http_code>200</http_code>
 </status>
 <snmptargetaddress id="1" href="https://134.56.72.218/rest/snmptargetaddress/1">
  <sCommType>1</sCommType>
  <snmpCommunity>public</snmpCommunity>
  <snmpMgrAddr>192.168.99.20</snmpMgrAddr>
  <snmpTrapEnable>1</snmpTrapEnable>
 </snmptargetaddress>
</root>
  • No labels