Update SNMP Trap (v2.0)
PUT/v2.0/api/tenants/:tenant_id/sites/:site_id/elements/:element_id/snmptraps/:snmptrap_id
Update the existing SNMP trap.
Request
Path Parameters
ID of the tenant.
ID of the site.
ID of the element.
The SNMP trap configuration ID.
- application/json
Body
Details of SNMP Trap
The description of the SNMP trap. Max - 256. Max characters = 256.
The SNMP Trap option is enabled. For this, the Disabled option must be unchecked.
The ID of the SNMP trap configuration.
The SNMP server or manager’s IP address.
The source interface for the SNMP server.
A information field that can be added to identify the SNMP trap configuration.
v2_config SNMPTrapV2Config
Indicates if SNMP v2 is enabled.
Community
v3_config SNMPTrapV3Config
Indicates if SNMP v3 is enabled.
user_access SNMPTrapUserAccess
User Access
Auth Phrase
Possible values: [NONE
, MD5
, SHA
]
Auth Type
Enc Phrase
Possible values: [NONE
, AES
, DES
]
Enc Type
Engine Id
Possible values: [NOAUTH
, AUTH
, PRIVATE
]
Security Level
User Name
Possible values: [V2
, V3
]
The version of the SNMP configuration.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
The description of the SNMP trap. Max - 256. Max characters = 256.
The SNMP Trap option is enabled. For this, the Disabled option must be unchecked.
The ID of the SNMP trap configuration.
The SNMP server or manager’s IP address.
The source interface for the SNMP server.
A information field that can be added to identify the SNMP trap configuration.
v2_config SNMPTrapV2Config
Indicates if SNMP v2 is enabled.
Community
v3_config SNMPTrapV3Config
Indicates if SNMP v3 is enabled.
user_access SNMPTrapUserAccess
User Access
Auth Phrase
Possible values: [NONE
, MD5
, SHA
]
Auth Type
Enc Phrase
Possible values: [NONE
, AES
, DES
]
Enc Type
Engine Id
Possible values: [NOAUTH
, AUTH
, PRIVATE
]
Security Level
User Name
Possible values: [V2
, V3
]
The version of the SNMP configuration.
{
"enabled": true,
"id": "string",
"server_ip": "string",
"source_interface": "string",
"tags": [
"string"
],
"v2_config": {
"community": "string"
},
"v3_config": {
"user_access": {
"auth_phrase": "string",
"auth_type": "NONE",
"enc_phrase": "string",
"enc_type": "NONE",
"engine_id": "string",
"security_level": "NOAUTH",
"user_name": "string"
}
},
"version": "V2"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "INVALID_JSON_COMMON_ATTR_MISMATCH"
},
{
"code": "SNMPCONFIG_USER_AUTH_NULL"
},
{
"code": "SNMPCONFIG_USER_ENC_NULL"
},
{
"code": "SNMPCONFIG_USER_AUTH_TYPE_PHRASE_MISSING"
},
{
"code": "SNMPCONFIG_USER_ENC_PHRASE_MISSING"
},
{
"code": "SNMPCONFIG_USER_ENC_TYPE_PHRASE_MISSING"
}
]
}
}