REST API Method: PUT /rest/snmptargetaddress/{identifier}
Page Tree |
---|
root | Resource - snmptargetaddress |
---|
|
Creates a SNMP Management Addresses Table given a specific Table ID.
Info |
---|
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 |
---|
sCommType | Yes | No | Enum | 0 | Possible values: - 0 - snmpCommNone
- 1 - snmpReadOnly
- 2 - snmpreadWrite
| SNMP community type, if it is read only or read/write. |
---|
snmpCommunity | Yes | No | string | none | 128 - Max Length | SNMP community used for communicating with the manager. |
---|
snmpMgrAddr | Yes | No | string | none | 256 - Max Length | SNMP manager address(IP address or FQDN) |
---|
snmpTrapEnable | Yes | No | int | 1 | Possible values: | Indicates if this manager accepts the traps. Default set to enabled(1), but can be disabled(0). |
---|
Code Block |
---|
|
curl --cookie PHPSESSID=fsqgefadjojefv6lmdtij6lh44cuc2h83fqaispmu6m519sa5642 -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:
Code Block |
---|
|
<?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>
|