Fortinet white logo
Fortinet white logo

Rest API

7.2.0

Get /logging/alarm/count

Get /logging/alarm/count

Description

Returns a count of Alarm records 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/logging/alarm/count

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Sample Response

{

"status": "success",

"errorMessage": null,

"results": [

{

"landscape": 345052093136,

"id": 2,

"state": 1,

"name": "DHCP_HOSTNAME_CHANGED",

"elementType": 8,

"elementID": 1991,

"elementName": "VMware, Inc.",

"severity": 3,

"timeOfAlarm": "2024-02-21T18:44:14.605+0000",

"timeAcknowledged": null,

"eventIDs": [

4732

],

"version": 1.3,

"numEventID": 1,

"time": 1708541054605,

"empty": false,

"triggerRuleType": {

"type": "Single",

"frequency": null,

"seconds": null,

"clearEventTag": null

},

"nameLabel": "DHCP Host Name Changed",

"probableCause": "The host name reported by DHCP for 00:50:56:B5:7B:EF has changed from S108DVLMX1GSDRCA to S108DVJ0YUDNXV70.\nThe device may be configured for dual boot or the\nphysical address may have been cloned."

}

],

"filtered": 1,

"total": 1

}

Get /logging/alarm/count

Get /logging/alarm/count

Description

Returns a count of Alarm records 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/logging/alarm/count

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

Sample Response

{

"status": "success",

"errorMessage": null,

"results": [

{

"landscape": 345052093136,

"id": 2,

"state": 1,

"name": "DHCP_HOSTNAME_CHANGED",

"elementType": 8,

"elementID": 1991,

"elementName": "VMware, Inc.",

"severity": 3,

"timeOfAlarm": "2024-02-21T18:44:14.605+0000",

"timeAcknowledged": null,

"eventIDs": [

4732

],

"version": 1.3,

"numEventID": 1,

"time": 1708541054605,

"empty": false,

"triggerRuleType": {

"type": "Single",

"frequency": null,

"seconds": null,

"clearEventTag": null

},

"nameLabel": "DHCP Host Name Changed",

"probableCause": "The host name reported by DHCP for 00:50:56:B5:7B:EF has changed from S108DVLMX1GSDRCA to S108DVJ0YUDNXV70.\nThe device may be configured for dual boot or the\nphysical address may have been cloned."

}

],

"filtered": 1,

"total": 1

}