Fortinet white logo
Fortinet white logo

Rest API

7.4.0

Get /device/count

Get /device/count

Description

Returns the Network Device record matching the supplied filter.

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

Sample Request

Request URL

Get https://10.106.94.152:8443/api/v2/device/count

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Sample Response

{

"status": "string",

"errorMessage": "string",

"totalCount": 0,

"results": [

{

"landscape": 0,

"id": 0,

"state": "string",

"elementClass": "string",

"role": "string",

"name": "string",

"type": "string",

"protocol": "string",

"status": "string",

"parent": "string",

"suffix": "string",

"version": 0,

"notes": "string",

"description": {},

"group": "string",

"pollingInterval": 0,

"lastPoll": "2023-12-13T22:33:42.093Z",

"lastSuccessfulPoll": "2023-12-13T22:33:42.093Z",

"mibs": [

"string"

],

"deviceType": "string",

"creationEvent": {

"landscape": 0,

"id": 0,

"state": "string",

"name": "string",

"elementType": "string",

"elementID": 0,

"elementName": "string",

"message": "string",

"timeOfEvent": "2023-12-13T22:33:42.093Z",

"version": 0,

"time": 0,

"eventFormatString": "string",

"empty": true

},

"destroyEvent": {

"landscape": 0,

"id": 0,

"state": "string",

"name": "string",

"elementType": "string",

"elementID": 0,

"elementName": "string",

"message": "string",

"timeOfEvent": "2023-12-13T22:33:42.093Z",

"version": 0,

"time": 0,

"eventFormatString": "string",

"empty": true

},

"establishedEvent": {

"landscape": 0,

"id": 0,

"state": "string",

"name": "string",

"elementType": "string",

"elementID": 0,

"elementName": "string",

"message": "string",

"timeOfEvent": "2023-12-13T22:33:42.093Z",

"version": 0,

"time": 0,

"eventFormatString": "string",

"empty": true

},

"lostEvent": {

"landscape": 0,

"id": 0,

"state": "string",

"name": "string",

"elementType": "string",

"elementID": 0,

"elementName": "string",

"message": "string",

"timeOfEvent": "2023-12-13T22:33:42.093Z",

"version": 0,

"time": 0,

"eventFormatString": "string",

"empty": true

},

"sysOid": "string",

"attribute": [

{

"version": 0,

"attributeName": "string",

"attribute": "string",

"table": true,

"discoverObject": true,

"mandatory": true,

"value": "string",

"group": "string",

"type": "string",

"access": "string",

"error": "string",

"objectValue": {},

"attributeSuffix": "string"

}

],

"attributeNames": [

"string"

],

"identification": "string",

"physicalAddress": "string",

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"addAuditSummary": "string",

"requestString": "string",

"domainName": "string",

"packedVersion": 0,

"changeMask": 0,

"lastChangeMask": 0

}

]

}

Get /device/count

Get /device/count

Description

Returns the Network Device record matching the supplied filter.

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

Sample Request

Request URL

Get https://10.106.94.152:8443/api/v2/device/count

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Sample Response

{

"status": "string",

"errorMessage": "string",

"totalCount": 0,

"results": [

{

"landscape": 0,

"id": 0,

"state": "string",

"elementClass": "string",

"role": "string",

"name": "string",

"type": "string",

"protocol": "string",

"status": "string",

"parent": "string",

"suffix": "string",

"version": 0,

"notes": "string",

"description": {},

"group": "string",

"pollingInterval": 0,

"lastPoll": "2023-12-13T22:33:42.093Z",

"lastSuccessfulPoll": "2023-12-13T22:33:42.093Z",

"mibs": [

"string"

],

"deviceType": "string",

"creationEvent": {

"landscape": 0,

"id": 0,

"state": "string",

"name": "string",

"elementType": "string",

"elementID": 0,

"elementName": "string",

"message": "string",

"timeOfEvent": "2023-12-13T22:33:42.093Z",

"version": 0,

"time": 0,

"eventFormatString": "string",

"empty": true

},

"destroyEvent": {

"landscape": 0,

"id": 0,

"state": "string",

"name": "string",

"elementType": "string",

"elementID": 0,

"elementName": "string",

"message": "string",

"timeOfEvent": "2023-12-13T22:33:42.093Z",

"version": 0,

"time": 0,

"eventFormatString": "string",

"empty": true

},

"establishedEvent": {

"landscape": 0,

"id": 0,

"state": "string",

"name": "string",

"elementType": "string",

"elementID": 0,

"elementName": "string",

"message": "string",

"timeOfEvent": "2023-12-13T22:33:42.093Z",

"version": 0,

"time": 0,

"eventFormatString": "string",

"empty": true

},

"lostEvent": {

"landscape": 0,

"id": 0,

"state": "string",

"name": "string",

"elementType": "string",

"elementID": 0,

"elementName": "string",

"message": "string",

"timeOfEvent": "2023-12-13T22:33:42.093Z",

"version": 0,

"time": 0,

"eventFormatString": "string",

"empty": true

},

"sysOid": "string",

"attribute": [

{

"version": 0,

"attributeName": "string",

"attribute": "string",

"table": true,

"discoverObject": true,

"mandatory": true,

"value": "string",

"group": "string",

"type": "string",

"access": "string",

"error": "string",

"objectValue": {},

"attributeSuffix": "string"

}

],

"attributeNames": [

"string"

],

"identification": "string",

"physicalAddress": "string",

"auditObjectName": "string",

"auditObjectType": {

"auditTableName": "string",

"mysqlTableName": "string",

"idnameQuery": "string"

},

"addAuditSummary": "string",

"requestString": "string",

"domainName": "string",

"packedVersion": 0,

"changeMask": 0,

"lastChangeMask": 0

}

]

}