Fortinet white logo
Fortinet white logo

Rest API

7.4.0

Post /host/device-identity

Post /host/device-identity

Description

Adds a new Device Identity record 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

Request Body Parameters

Name

Required

Type

filter Optional Array[String]
start Optional Integer
count Optional Integer
sortKey Optional String
sortDir Optional String

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/host/device-identity

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"dbid": 0,

"source": "string",

"physAddress": "string",

"ipAddress": "string",

"hostName": "string",

"entityTag": "string",

"os": "string",

"createTime": "2023-09-29T21:15:13.496Z",

"lastHeardTime": "2023-09-29T21:15:13.496Z",

"registered": true,

"vendorOUI": "string",

"vendorName": "string",

"dpcRuleName": "string",

"dpcRuleId": 0,

"entity": {

"name": "string",

"tag": "string",

"imageFile": "string",

"id": 0

}

}

Sample Response

{

"status": "success",

"errorMessage": null

}

Post /host/device-identity

Post /host/device-identity

Description

Adds a new Device Identity record 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

Request Body Parameters

Name

Required

Type

filter Optional Array[String]
start Optional Integer
count Optional Integer
sortKey Optional String
sortDir Optional String

Sample Request

Request URL

POST https://10.106.94.152:8443/api/v2/host/device-identity

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

{

"dbid": 0,

"source": "string",

"physAddress": "string",

"ipAddress": "string",

"hostName": "string",

"entityTag": "string",

"os": "string",

"createTime": "2023-09-29T21:15:13.496Z",

"lastHeardTime": "2023-09-29T21:15:13.496Z",

"registered": true,

"vendorOUI": "string",

"vendorName": "string",

"dpcRuleName": "string",

"dpcRuleId": 0,

"entity": {

"name": "string",

"tag": "string",

"imageFile": "string",

"id": 0

}

}

Sample Response

{

"status": "success",

"errorMessage": null

}