Fortinet white logo
Fortinet white logo

Rest API

7.4.0

Get /adapter/for-host

Get /adapter/for-host

Description

Returns a list of adapters for the host object with the provided id.

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

hostID Required Integer

Sample Request

Request URL

GET https://10.106.94.152:8443/api/v2/adapter/for-host

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

hostID: xx

Sample Response

{

"status": "success",

"errorMessage": null,

"results": [

{

"landscape": 52228714145,

"id": 38,

"identification": null,

"state": 0,

"type": 8,

"vendorName": "Rockwell Automation",

"parent": null,

"lastSuccessfulPoll": 1642682223041,

"status": 0,

"version": 3.3,

"user": null,

"clientState": 1,

"creationTime": 1641132672221,

"mediumType": null,

"location": "FortiGateRugged-60F [192.168.130.1]:root:SR12DPTD21001461:port1",

"container": "Manufacturing 130",

"dpcRuleId": -1,

"dpcRuleName": null,

"accessValue": "1",

"authType": -1,

"innerEapType": -1,

"outerEapType": -1,

"ips": [],

"hostID": 38,

"attributes": [

{

"version": 1.0,

"name": "ImageType",

"value": "cust_plc"

}

],

"device": true,

"destroyEvent": {

"landscape": -1,

"id": -1,

"state": 1,

"name": "MOBIL_DESTROYED",

"elementType": 8,

"elementID": 38,

"elementName": null,

"message": null,

"timeOfEvent": 1694552002206,

"version": 1.3,

"time": 1694552002206,

"eventFormatString": "Adapter 5C:88:16:AF:A4:A2 Destroyed.",

"empty": false

},

"physicalAddress": "5C:88:16:AF:A4:A2",

"auditObjectName": "5C:88:16:AF:A4:A2",

"auditObjectType": {

"auditTableName": "DYNAMICAudit",

"mysqlTableName": "DYNAMIC",

"idnameQuery": "select id,physAddr from DYNAMIC where id in"

},

"addAuditSummary": "[]",

"creationEvent": {

"landscape": -1,

"id": -1,

"state": 1,

"name": "MOBIL_CREATED",

"elementType": 8,

"elementID": 38,

"elementName": null,

"message": null,

"timeOfEvent": 1694552002207,

"version": 1.3,

"time": 1694552002207,

"eventFormatString": "Adapter 5C:88:16:AF:A4:A2 Created.",

"empty": false

},

"establishedEvent": {

"landscape": -1,

"id": -1,

"state": 1,

"name": "MOBIL_CONNECTED",

"elementType": 52,

"elementID": 38,

"elementName": null,

"message": null,

"timeOfEvent": 1694552002207,

"version": 1.3,

"time": 1694552002207,

"eventFormatString": "Host 5C:88:16:AF:A4:A2 Connected to FortiGateRugged-60F [192.168.130.1]:root:SR12DPTD21001461:port1.",

"empty": false

},

"lostEvent": {

"landscape": -1,

"id": -1,

"state": 1,

"name": "MOBIL_DISCONNECTED",

"elementType": 52,

"elementID": 38,

"elementName": null,

"message": null,

"timeOfEvent": 1694552002207,

"version": 1.3,

"time": 1694552002207,

"eventFormatString": "Host 5C:88:16:AF:A4:A2 Disconnected.",

"empty": false

},

"ipaddress": null,

"userID": null,

"outerEapTypeStr": "",

"iconType": "cust_plc",

"pctype": null,

"allIPsString": "",

"firstName": null,

"lastName": null,

"operatingSystem": null,

"directoryPolicyValue": null,

"hardwareType": null,

"authTypeStr": null,

"innerEapTypeStr": "",

"name": "Rockwell Automation",

"hostName": null

}

],

"filtered": 1,

"total": 1

}

Get /adapter/for-host

Get /adapter/for-host

Description

Returns a list of adapters for the host object with the provided id.

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

hostID Required Integer

Sample Request

Request URL

GET https://10.106.94.152:8443/api/v2/adapter/for-host

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Request Body

hostID: xx

Sample Response

{

"status": "success",

"errorMessage": null,

"results": [

{

"landscape": 52228714145,

"id": 38,

"identification": null,

"state": 0,

"type": 8,

"vendorName": "Rockwell Automation",

"parent": null,

"lastSuccessfulPoll": 1642682223041,

"status": 0,

"version": 3.3,

"user": null,

"clientState": 1,

"creationTime": 1641132672221,

"mediumType": null,

"location": "FortiGateRugged-60F [192.168.130.1]:root:SR12DPTD21001461:port1",

"container": "Manufacturing 130",

"dpcRuleId": -1,

"dpcRuleName": null,

"accessValue": "1",

"authType": -1,

"innerEapType": -1,

"outerEapType": -1,

"ips": [],

"hostID": 38,

"attributes": [

{

"version": 1.0,

"name": "ImageType",

"value": "cust_plc"

}

],

"device": true,

"destroyEvent": {

"landscape": -1,

"id": -1,

"state": 1,

"name": "MOBIL_DESTROYED",

"elementType": 8,

"elementID": 38,

"elementName": null,

"message": null,

"timeOfEvent": 1694552002206,

"version": 1.3,

"time": 1694552002206,

"eventFormatString": "Adapter 5C:88:16:AF:A4:A2 Destroyed.",

"empty": false

},

"physicalAddress": "5C:88:16:AF:A4:A2",

"auditObjectName": "5C:88:16:AF:A4:A2",

"auditObjectType": {

"auditTableName": "DYNAMICAudit",

"mysqlTableName": "DYNAMIC",

"idnameQuery": "select id,physAddr from DYNAMIC where id in"

},

"addAuditSummary": "[]",

"creationEvent": {

"landscape": -1,

"id": -1,

"state": 1,

"name": "MOBIL_CREATED",

"elementType": 8,

"elementID": 38,

"elementName": null,

"message": null,

"timeOfEvent": 1694552002207,

"version": 1.3,

"time": 1694552002207,

"eventFormatString": "Adapter 5C:88:16:AF:A4:A2 Created.",

"empty": false

},

"establishedEvent": {

"landscape": -1,

"id": -1,

"state": 1,

"name": "MOBIL_CONNECTED",

"elementType": 52,

"elementID": 38,

"elementName": null,

"message": null,

"timeOfEvent": 1694552002207,

"version": 1.3,

"time": 1694552002207,

"eventFormatString": "Host 5C:88:16:AF:A4:A2 Connected to FortiGateRugged-60F [192.168.130.1]:root:SR12DPTD21001461:port1.",

"empty": false

},

"lostEvent": {

"landscape": -1,

"id": -1,

"state": 1,

"name": "MOBIL_DISCONNECTED",

"elementType": 52,

"elementID": 38,

"elementName": null,

"message": null,

"timeOfEvent": 1694552002207,

"version": 1.3,

"time": 1694552002207,

"eventFormatString": "Host 5C:88:16:AF:A4:A2 Disconnected.",

"empty": false

},

"ipaddress": null,

"userID": null,

"outerEapTypeStr": "",

"iconType": "cust_plc",

"pctype": null,

"allIPsString": "",

"firstName": null,

"lastName": null,

"operatingSystem": null,

"directoryPolicyValue": null,

"hardwareType": null,

"authTypeStr": null,

"innerEapTypeStr": "",

"name": "Rockwell Automation",

"hostName": null

}

],

"filtered": 1,

"total": 1

}