This configuration page is used to configure the SNMP hosts to which SNMP trap messages generated by the SNMP agent will be sent.
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | trap | boolean | |
| default | trap_host | asso |
{
"SNMPServer": {
"meta": {
"abstract": false,
"verbose_name": SNMP Trap Host,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
| Parameter | Type | Description |
|---|---|---|
| field_group_name | URI | (optional) Target field group name to query. Available names are: default, Notice: There could only be one field_group_name or field_name in the URL. And if both field_group_name and field_name are not specified, will try to query default field_group data. |
| field_name | URI | (optional) Target field name to query. Available names are: trap, trap_host, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | trap | boolean | |
| default | trap_host | asso |
{
"SNMPServer": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"SNMPServer": {
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"SNMPServer": {
<field>:<value>,
}
}
{
<field_name>:<value>
}
When field name is specified in URL:
Notice: The fields not provided are left untouched.
{
<field_name1>:<value1>,
<field_name2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| field_name | URI | (optional) Target field name to update. Available field names are: trap, trap_host, |
| Field Name | Type | Description |
|---|---|---|
| trap | boolean |
All configuration fields and their values are replied:
{
"SNMPServer": {
<field1>:<value1>,
<field2>:<value2>,
...
<field_group1>: {
<field3>:<value3>,
<field4>:<value4>,
...
},
<field_group2>: {
<field5>:<value5>,
<field6>:<value6>,
...
},
...
}
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
{
"SNMPServer": {
"instance_id":<instance_id>,
"trap_host":[
{
<field1>:<value1>,
<field2>:<value2>,
...
}
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr | |
| version_id | enum | Available values:
|
| community | string | Sets the SNMP community to which the SNMP trap host and the SNMP agent belong. |
{
"SNMPV1V2Servers": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description |
|---|---|---|
| ip | ipaddr | |
| version_id | enum | Available values:
|
| engine_id | string | Sets the engine ID of the SNMP trap host. |
| username | string | Sets the username of the SNMP v3 user to receive the SNMP trap messages. |
| level | enum | Available values:
|
| auth_password | string | |
| priv_password | string | Sets the private password used for authorization. |
{
"SNMPV3Servers": {
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
}
}
{
"msg": <success-or-error-msg>
}