
= SNMP Trap Northbounder Interface Configuration

== GETs (reading data)

[caption=]
.SNMP Trap Northbounder Interface Configuration API GET functions
[options="autowidth"]
|===
| Resource  | Description

| /config/snmptrap-nbi
| Gets full content of the configuration.

| /config/snmptrap-nbi/status
| Gets the status of the SNMP Trap NBI (returns either `true` or `false`).

| /config/snmptrap-nbi/destinations
| Gets the name of all the existing destinations.

| /config/snmptrap-nbi/destinations/\{name}
| Gets the content of the destination named `\{name}`.
|===

== PUT (update defaults)

On a successful request, the Syslog NBI will be notified about the configuration change.

[caption=]
.SNMP Trap Northbounder Interface Configuration API PUT function
[options="autowidth"]
|===
| Resource  | Description

| /config/snmptrap-nbi/status?enabled=(true;false)
| Sets the status of the SNMP Trap NBI.
|===

== POSTs (adding data)

POST requires form data using `application/x-www-form-urlencoded` as a `Content-Type`.

On a successful request, the SNMP Trap NBI will be notified about the configuration change.

[caption=]
.SNMP Trap Northbounder Interface Configuration API POST functions
[options="autowidth"]
|===
| Resource  | Description

| /config/snmptrap-nbi
| Updates the full content of the configuration.

| /config/snmptrap-nbi/destinations
| Adds a new or overrides an existing destination.
|===

== PUT (modifying data)

PUT requires form data using `application/x-www-form-urlencoded` as a `Content-Type`.

On a successful request, the SNMP Trap NBI will be notified about the configuration change.

[caption=]
.SNMP Trap Northbounder Interface Configuration API PUT function
[options="autowidth"]
|===
| Resource  | Description

| /config/snmptrap-nbi/destinations/\{name}
| Updates the content of the destination named `\{name}`.
|===

== DELETE (remove data)

On a successful request, the SNMP Trap NBI will be notified about the configuration change.

[caption=]
.SNMP Trap Northbounder Interface Configuration API DELETE function
[options="autowidth"]
|===
| Resource  | Description

| /config/snmptrap-nbi/destinations/\{name}
| Updates the content of the destination named `\{name}`.
|===
