Fortinet white logo
Fortinet white logo

Rest API

7.4.0

Post /device/snmp/{id}

Post /device/snmp/{id}

Description

Updates an existing SNMP device in 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/2

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"

},

"vlanSwitchingEnabled": true,

"paOptimzationEnabled": true,

"macFilteringEnabled": true,

"role": "string",

"description": "string",

"note": "string",

"manageAsGenericSNMP": true,

"readL2L3UsingSNMP": true,

"deviceTypeOverride": "string",

"incomingEventCategory": "string",

"incomingEventParser": "string",

"statusPolling": true,

"statusPollInterval": 0,

"ssoAgentType": "string",

"ibossPort": 0,

"ibossKey": "string",

"ibossDomain": "string",

"ssoCustomScript": "string",

"paloAltoPort": 0,

"paloAltoDomain": "string",

"paloAltoIntegratedAgent": true,

"paloAltoAPIKey": "string",

"radiusAccountingPort": 0,

"radiusSecret": "string",

"ssoGroupID": 0,

"systemName": "string",

"contactName": "string",

"deviceLocation": "string",

"contactPollingEnabled": true,

"contactPollingInterval": 0,

"l2PollingEnabled": true,

"l2PollingInterval": 0,

"l3PollingEnabled": true,

"l3PollingInterval": 0,

"l3PollingPriority": 0,

"cdpPollingEnabled": true,

"cdpPollingInterval": 0

}

Sample Response

{

"status": "success",

"errorMessage": null

}

Post /device/snmp/{id}

Post /device/snmp/{id}

Description

Updates an existing SNMP device in 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/2

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"

},

"vlanSwitchingEnabled": true,

"paOptimzationEnabled": true,

"macFilteringEnabled": true,

"role": "string",

"description": "string",

"note": "string",

"manageAsGenericSNMP": true,

"readL2L3UsingSNMP": true,

"deviceTypeOverride": "string",

"incomingEventCategory": "string",

"incomingEventParser": "string",

"statusPolling": true,

"statusPollInterval": 0,

"ssoAgentType": "string",

"ibossPort": 0,

"ibossKey": "string",

"ibossDomain": "string",

"ssoCustomScript": "string",

"paloAltoPort": 0,

"paloAltoDomain": "string",

"paloAltoIntegratedAgent": true,

"paloAltoAPIKey": "string",

"radiusAccountingPort": 0,

"radiusSecret": "string",

"ssoGroupID": 0,

"systemName": "string",

"contactName": "string",

"deviceLocation": "string",

"contactPollingEnabled": true,

"contactPollingInterval": 0,

"l2PollingEnabled": true,

"l2PollingInterval": 0,

"l3PollingEnabled": true,

"l3PollingInterval": 0,

"l3PollingPriority": 0,

"cdpPollingEnabled": true,

"cdpPollingInterval": 0

}

Sample Response

{

"status": "success",

"errorMessage": null

}