Fortinet white logo
Fortinet white logo

Rest API

7.4.0

Post /settings/integration/trap-mib/add

Post /settings/integration/trap-mib/add

Description

Adds a new trap mib if a trap mib with the name does not exist and adds a new trap object to the trap mib if a trap mib already exists with the name.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Request Body Parameters

Name Required Type
name Required String
oid Required String
label Required String
entOid Required String
ipOid Required String
macOid Required String
userOid Required String
specificType Required String
alarmCause Required String
evtFormat Required String
eventFormat Required String
enterpriseOID Required String
ipaddressOID Required String
macaddressOID Required String
userIDOID Required String

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/settings/integration/trap-mib/add

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

name: "xxxxxxxxxxxxx"

oid: "xxxxxxxxxxxxx"

label: "xxxxxxxxxxxxx"

entOid: "xxxxxxxxxxxxx"

ipOid: "xxxxxxxxxxxxx"

macOid: "xxxxxxxxxxxxx"

userOid: "xxxxxxxxxxxxx"

specificType: "xxxxxxxxxxxxx"

alarmCause: "xxxxxxxxxxxxx"

evtFormat: "xxxxxxxxxxxxx"

eventFormat: "xxxxxxxxxxxxx"

enterpriseOID: "xxxxxxxxxxxxx"

ipaddressOID: "xxxxxxxxxxxxx"

macaddressOID: "xxxxxxxxxxxxx"

userIDOID: "xxxxxxxxxxxxx"

Sample Response

{

"status": "string",

"errorMessage": "string"

}

Post /settings/integration/trap-mib/add

Post /settings/integration/trap-mib/add

Description

Adds a new trap mib if a trap mib with the name does not exist and adds a new trap object to the trap mib if a trap mib already exists with the name.

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiNAC
Content-Type (option 1) application/json String

Content-Type (option 2)

application/xml

Request Body Parameters

Name Required Type
name Required String
oid Required String
label Required String
entOid Required String
ipOid Required String
macOid Required String
userOid Required String
specificType Required String
alarmCause Required String
evtFormat Required String
eventFormat Required String
enterpriseOID Required String
ipaddressOID Required String
macaddressOID Required String
userIDOID Required String

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/settings/integration/trap-mib/add

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

name: "xxxxxxxxxxxxx"

oid: "xxxxxxxxxxxxx"

label: "xxxxxxxxxxxxx"

entOid: "xxxxxxxxxxxxx"

ipOid: "xxxxxxxxxxxxx"

macOid: "xxxxxxxxxxxxx"

userOid: "xxxxxxxxxxxxx"

specificType: "xxxxxxxxxxxxx"

alarmCause: "xxxxxxxxxxxxx"

evtFormat: "xxxxxxxxxxxxx"

eventFormat: "xxxxxxxxxxxxx"

enterpriseOID: "xxxxxxxxxxxxx"

ipaddressOID: "xxxxxxxxxxxxx"

macaddressOID: "xxxxxxxxxxxxx"

userIDOID: "xxxxxxxxxxxxx"

Sample Response

{

"status": "string",

"errorMessage": "string"

}