Fortinet white logo
Fortinet white logo

Rest API

7.4.0

Post /device/snmp

Post /device/snmp

Description

Adds a new SNMP device to the database.

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

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/device/snmp

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"containerID": 0,

"ipAddress": "string",

"snmpProtocol": "string",

"snmpSecurityStrings": [

"string"

],

"snmpUsername": "string",

"snmpAuthenticationProtocol": "string",

"snmpAuthenticationPassword": "string",

"snmpPrivacyProtocol": "string",

"snmpPrivacyPassword": "string",

"cliCredentials": {

"version": 0,

"userName": "string",

"password": "string",

"enablePassword": "string",

"port": "string",

"sessionType": "string",

"sessionTypeStr": "string"

}

}

Sample Response

{

"status": "success",

"errorMessage": null

}

Post /device/snmp

Post /device/snmp

Description

Adds a new SNMP device to the database.

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

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/device/snmp

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"containerID": 0,

"ipAddress": "string",

"snmpProtocol": "string",

"snmpSecurityStrings": [

"string"

],

"snmpUsername": "string",

"snmpAuthenticationProtocol": "string",

"snmpAuthenticationPassword": "string",

"snmpPrivacyProtocol": "string",

"snmpPrivacyPassword": "string",

"cliCredentials": {

"version": 0,

"userName": "string",

"password": "string",

"enablePassword": "string",

"port": "string",

"sessionType": "string",

"sessionTypeStr": "string"

}

}

Sample Response

{

"status": "success",

"errorMessage": null

}