Trap Configurations
This endpoint is used to fetch all the trap configurations in the current organization
Items Per Page
Page Number
Sorting Order
Sorting Key
GET /ux/common/trap/configuration/?items_per_page=1&page=1 HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
[
{
"id": "text",
"rca_raise_msg": "text",
"rca_raise_varbind": "text",
"rca_varmap_status": "text",
"rca_raise_varbind_msgmap": "text",
"rca_varbindconv": "text",
"rca_conversion": "text",
"trap_id": "text",
"name": "text",
"description": "text",
"type": "text",
"trap_oid": "text",
"trap_clear_oid": "text",
"clear_event_on_clear_oid": true,
"resource": "text",
"resource_var_bind": "text",
"action": "text",
"stat_map": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"status": 1,
"severity": 1,
"set_criteria": [],
"reset_criteria": [],
"alarm_msg": "text",
"clear_msg": "text",
"rca": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"config_download": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"organization": "text",
"creation_time": "2025-08-31T15:18:18.499Z",
"last_update_time": "2025-08-31T15:18:18.499Z",
"isdeleted": true,
"thresid_map": "text"
}
]
This endpoint is used to save a new trap configuration for the current organization
No response body
No content
POST /ux/common/trap/configuration/ HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 663
{
"name": "Link Down Trap",
"trap_id": "123456789012345",
"description": "Used to configure the link down trap",
"type": "Link Down",
"trap_oid": "1.3.6.1.6.3.1.1.5.3",
"stat_name": "ge-0/0/1",
"stat_dn": "l_util",
"stat_unit": "%",
"status": 1,
"severity": "Critical",
"set_criteria": {
"varbind": [
{
"key": 6,
"condition": "in",
"value": "Critical"
},
{
"key": 7,
"condition": "equal to",
"value": "Down"
}
],
"condition": "and"
},
"reset_criteria": {
"varbind": [
{
"key": 6,
"condition": "in",
"value": "Info"
},
{
"key": 7,
"condition": "equal to",
"value": "Up"
}
],
"condition": "or"
},
"alarm_msg": "Link Down",
"clear_msg": "Link UP",
"applicable": "All",
"applies_to": {},
"applicable_filter": {},
"organization": "123456789012345"
}
No response body
No content
This endpoint is used to fetch a trap configuration details in the current organization
GET /ux/common/trap/configuration/{id}/ HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "text",
"rca_raise_msg": "text",
"rca_raise_varbind": "text",
"rca_varmap_status": "text",
"rca_raise_varbind_msgmap": "text",
"rca_varbindconv": "text",
"rca_conversion": "text",
"trap_id": "text",
"name": "text",
"description": "text",
"type": "text",
"trap_oid": "text",
"trap_clear_oid": "text",
"clear_event_on_clear_oid": true,
"resource": "text",
"resource_var_bind": "text",
"action": "text",
"stat_map": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"status": 1,
"severity": 1,
"set_criteria": [],
"reset_criteria": [],
"alarm_msg": "text",
"clear_msg": "text",
"rca": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"config_download": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"organization": "text",
"creation_time": "2025-08-31T15:18:18.499Z",
"last_update_time": "2025-08-31T15:18:18.499Z",
"isdeleted": true,
"thresid_map": "text"
}
This endpoint is used to edit an existing trap configuration for the current organization
Serializer for Documents.
Recognized primitve fields:
* ``StringField``
* ``URLField``
* ``EmailField``
* ``IntField``
* ``LongField``
* ``FloatField``
* ``DecimalField``
* ``BooleanField``
* ``DateTimeField``
* ``ComplexDateTimeField``
* ``ObjectIdField``
* ``SequenceField`` (assumes it has integer counter)
* ``UUIDField``
* ``GeoPointField``
* ``GeoJsonBaseField`` (all those fields)
* ``DateField``
Compound fields: ListField
and DictField
are mapped to corresponding DRF fields, with respect to nested field specification.
The ReferenceField
is handled like ForeignKey
in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as str(id)
).
For EmbeddedDocumentField
also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.
Generic fields GenericReferenceField
and GenericEmbeddedDocumentField
are handled by their own with corresponding serializer fields.
Not well supported or untested:
``FileField``
``ImageField``
``BinaryField``
All other fields are mapped to DocumentField
and probably will work wrong.
PUT /ux/common/trap/configuration/{id}/ HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 603
{
"trap_id": "text",
"name": "text",
"description": "text",
"type": "text",
"trap_oid": "text",
"trap_clear_oid": "text",
"clear_event_on_clear_oid": true,
"resource": "text",
"resource_var_bind": "text",
"action": "text",
"stat_map": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"status": 1,
"severity": 1,
"set_criteria": [],
"reset_criteria": [],
"alarm_msg": "text",
"clear_msg": "text",
"rca": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"config_download": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"organization": "text",
"creation_time": "2025-08-31T15:18:18.499Z",
"last_update_time": "2025-08-31T15:18:18.499Z",
"isdeleted": true,
"thresid_map": "text"
}
{
"id": "text",
"rca_raise_msg": "text",
"rca_raise_varbind": "text",
"rca_varmap_status": "text",
"rca_raise_varbind_msgmap": "text",
"rca_varbindconv": "text",
"rca_conversion": "text",
"trap_id": "text",
"name": "text",
"description": "text",
"type": "text",
"trap_oid": "text",
"trap_clear_oid": "text",
"clear_event_on_clear_oid": true,
"resource": "text",
"resource_var_bind": "text",
"action": "text",
"stat_map": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"status": 1,
"severity": 1,
"set_criteria": [],
"reset_criteria": [],
"alarm_msg": "text",
"clear_msg": "text",
"rca": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"config_download": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"organization": "text",
"creation_time": "2025-08-31T15:18:18.499Z",
"last_update_time": "2025-08-31T15:18:18.499Z",
"isdeleted": true,
"thresid_map": "text"
}
This endpoint is used to delete an existing trap configuration for the current organization
No response body
No content
DELETE /ux/common/trap/configuration/{id}/ HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
No response body
No content
API endpoint that allows users to be viewed or edited.
GET /ux/common/trap/configuration/msg_options/ HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "text",
"rca_raise_msg": "text",
"rca_raise_varbind": "text",
"rca_varmap_status": "text",
"rca_raise_varbind_msgmap": "text",
"rca_varbindconv": "text",
"rca_conversion": "text",
"trap_id": "text",
"name": "text",
"description": "text",
"type": "text",
"trap_oid": "text",
"trap_clear_oid": "text",
"clear_event_on_clear_oid": true,
"resource": "text",
"resource_var_bind": "text",
"action": "text",
"stat_map": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"status": 1,
"severity": 1,
"set_criteria": [],
"reset_criteria": [],
"alarm_msg": "text",
"clear_msg": "text",
"rca": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"config_download": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"organization": "text",
"creation_time": "2025-08-31T15:18:18.499Z",
"last_update_time": "2025-08-31T15:18:18.499Z",
"isdeleted": true,
"thresid_map": "text"
}
API endpoint that allows users to be viewed or edited.
Serializer for Documents.
Recognized primitve fields:
* ``StringField``
* ``URLField``
* ``EmailField``
* ``IntField``
* ``LongField``
* ``FloatField``
* ``DecimalField``
* ``BooleanField``
* ``DateTimeField``
* ``ComplexDateTimeField``
* ``ObjectIdField``
* ``SequenceField`` (assumes it has integer counter)
* ``UUIDField``
* ``GeoPointField``
* ``GeoJsonBaseField`` (all those fields)
* ``DateField``
Compound fields: ListField
and DictField
are mapped to corresponding DRF fields, with respect to nested field specification.
The ReferenceField
is handled like ForeignKey
in DRF: there nested serializer autogenerated if serializer depth greater then 0, otherwise it's handled by it's own (results as str(id)
).
For EmbeddedDocumentField
also nested serializer autogenerated for non-zero depth, otherwise it is skipped. TODO: THIS IS PROBABLY WRONG AND SHOULD BE FIXED.
Generic fields GenericReferenceField
and GenericEmbeddedDocumentField
are handled by their own with corresponding serializer fields.
Not well supported or untested:
``FileField``
``ImageField``
``BinaryField``
All other fields are mapped to DocumentField
and probably will work wrong.
POST /ux/common/trap/configuration/multidelete/ HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 603
{
"trap_id": "text",
"name": "text",
"description": "text",
"type": "text",
"trap_oid": "text",
"trap_clear_oid": "text",
"clear_event_on_clear_oid": true,
"resource": "text",
"resource_var_bind": "text",
"action": "text",
"stat_map": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"status": 1,
"severity": 1,
"set_criteria": [],
"reset_criteria": [],
"alarm_msg": "text",
"clear_msg": "text",
"rca": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"config_download": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"organization": "text",
"creation_time": "2025-08-31T15:18:18.499Z",
"last_update_time": "2025-08-31T15:18:18.499Z",
"isdeleted": true,
"thresid_map": "text"
}
{
"id": "text",
"rca_raise_msg": "text",
"rca_raise_varbind": "text",
"rca_varmap_status": "text",
"rca_raise_varbind_msgmap": "text",
"rca_varbindconv": "text",
"rca_conversion": "text",
"trap_id": "text",
"name": "text",
"description": "text",
"type": "text",
"trap_oid": "text",
"trap_clear_oid": "text",
"clear_event_on_clear_oid": true,
"resource": "text",
"resource_var_bind": "text",
"action": "text",
"stat_map": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"status": 1,
"severity": 1,
"set_criteria": [],
"reset_criteria": [],
"alarm_msg": "text",
"clear_msg": "text",
"rca": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"config_download": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"organization": "text",
"creation_time": "2025-08-31T15:18:18.499Z",
"last_update_time": "2025-08-31T15:18:18.499Z",
"isdeleted": true,
"thresid_map": "text"
}
API endpoint that allows users to be viewed or edited.
GET /ux/common/trap/configuration/options/ HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "text",
"rca_raise_msg": "text",
"rca_raise_varbind": "text",
"rca_varmap_status": "text",
"rca_raise_varbind_msgmap": "text",
"rca_varbindconv": "text",
"rca_conversion": "text",
"trap_id": "text",
"name": "text",
"description": "text",
"type": "text",
"trap_oid": "text",
"trap_clear_oid": "text",
"clear_event_on_clear_oid": true,
"resource": "text",
"resource_var_bind": "text",
"action": "text",
"stat_map": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"status": 1,
"severity": 1,
"set_criteria": [],
"reset_criteria": [],
"alarm_msg": "text",
"clear_msg": "text",
"rca": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"config_download": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"organization": "text",
"creation_time": "2025-08-31T15:18:18.499Z",
"last_update_time": "2025-08-31T15:18:18.499Z",
"isdeleted": true,
"thresid_map": "text"
}
This endpoint is used to fetch all the traps received on the agents for current organization
Items Per Page
Page Number
Sorting Order
Sorting Key
GET /ux/common/trap/configuration/trap_msgs/?items_per_page=1&page=1 HTTP/1.1
Host:
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "text",
"rca_raise_msg": "text",
"rca_raise_varbind": "text",
"rca_varmap_status": "text",
"rca_raise_varbind_msgmap": "text",
"rca_varbindconv": "text",
"rca_conversion": "text",
"trap_id": "text",
"name": "text",
"description": "text",
"type": "text",
"trap_oid": "text",
"trap_clear_oid": "text",
"clear_event_on_clear_oid": true,
"resource": "text",
"resource_var_bind": "text",
"action": "text",
"stat_map": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"status": 1,
"severity": 1,
"set_criteria": [],
"reset_criteria": [],
"alarm_msg": "text",
"clear_msg": "text",
"rca": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"config_download": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"organization": "text",
"creation_time": "2025-08-31T15:18:18.499Z",
"last_update_time": "2025-08-31T15:18:18.499Z",
"isdeleted": true,
"thresid_map": "text"
}