| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | type | enum | Sets the version of the SNMP trap messages.Available values:
|
| default | ip | ipaddr | |
| default | version_id | enum | Available values:
|
| default | engine_id | string | Sets the engine ID of the SNMP trap host. |
| default | username | string | Sets the username of the SNMP v3 user to receive the SNMP trap messages. |
| default | level | enum | Available values:
|
| default | auth_password | string | |
| default | priv_password | string | Sets the private password used for authorization. |
{
"SNMPV3Servers": {
"meta": {
"abstract": false,
"verbose_name": SNMP v3 Trap Host,
},
"fieldgroups": [
{
"fields": [
{
"verbose_name": field_verbose_name1,
"field_name": field_name1
},
...
],
"group_name": field_group_name1
},
...
]
}
}
{
<param1>:<value1>,
<param2>:<value2>,
...
}
| Parameter | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ip | ipaddr (Nested Field. It should be a dict.)
|
||||||||||
| 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>,
...
}
}
{
"SNMPV3Servers": [
{
"instance_id":<instance_id>,
<param1>:<value1>,
<param2>:<value2>,
...
},
...
]
}
| Parameter | Type | Description |
|---|---|---|
| instance_id | URI | ID of the instance |
| 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: type, ip, version_id, engine_id, username, level, auth_password, priv_password, Notice: There could only be one field_group_name or field_name in the URL. |
| Field Group Name | Field Name | Type | Description |
|---|---|---|---|
| default | type | enum | Sets the version of the SNMP trap messages.Available values:
|
| default | ip | ipaddr | |
| default | version_id | enum | Available values:
|
| default | engine_id | string | Sets the engine ID of the SNMP trap host. |
| default | username | string | Sets the username of the SNMP v3 user to receive the SNMP trap messages. |
| default | level | enum | Available values:
|
| default | auth_password | string | |
| default | priv_password | string | Sets the private password used for authorization. |
{
"SNMPV3Servers": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field_group name is provided:
{
"SNMPV3Servers": {
"instance_id":<instance_id>,
<field1>:<value1>,
<field2>:<value2>,
...
}
}
When some field name is provided:
{
"SNMPV3Servers": {
"instance_id":<instance_id>,
<field>:<value>,
}
}
{
"msg": <success-or-error-msg>
}