Fortinet black logo

Online Help

Get Severity Alert

Copy Link
Copy Doc ID cf00dcb1-0886-11ed-bb32-fa163e15d75b:706785

Get Severity Alert

Description

Get open Alerts statistics by Severity and Time Range

URL

/api/v1/dashboard/severity/alert

Request Method: Get

Request Headers

Key

Value

Required /Optional

Type

Description

companyId <12345>

Required

Integer Company ID in FortiCNP, can be obtained through Get Resource Map

roleId

<12345>

Required

Long

Login user identity, can be obtained through Get Resource Map

Authorization Bearer <Authorization Token>

Required

String Authorization credential generated by FortiCNP

startTime

<1583431870>

Optional

Long

Starting time of filtered open alerts in Unix Epoch timestamp. To convert date and time to Unix Epoch timestamp, refer to https://www.epochconverter.com/.

endTime

<1583431870>

Optional

Long

Ending time of filtered open alerts in Unix Epoch timestamp. To convert date and time to Unix Epoch timestamp, refer to https://www.epochconverter.com/.

Content-Type application/json

Required

String

Sample Request

Request URL

GET https://www.forticnp.com/api/v1/dashboard/severity/alert

Request Header

Authorization: Bearer <Authorization_Token>

roleId: 36241

companyId: 8059334

Content-Type: application/json

starttime: 1583347487553

endtime: 1583433887553

Response Variables

Name

Type

Description

key String classification of alert severity level
value integer Number of alert

Sample Response

[

{

"id":"0",

"key":"Critical",

"value":319

},

{

"id":"1",

"key":"Alert",

"value":204

},

{

"id":"2",

"key":"Warning",

"value":104

},

{

"id":"3",

"key":"Information",

"value":1

}

]

Get Severity Alert

Description

Get open Alerts statistics by Severity and Time Range

URL

/api/v1/dashboard/severity/alert

Request Method: Get

Request Headers

Key

Value

Required /Optional

Type

Description

companyId <12345>

Required

Integer Company ID in FortiCNP, can be obtained through Get Resource Map

roleId

<12345>

Required

Long

Login user identity, can be obtained through Get Resource Map

Authorization Bearer <Authorization Token>

Required

String Authorization credential generated by FortiCNP

startTime

<1583431870>

Optional

Long

Starting time of filtered open alerts in Unix Epoch timestamp. To convert date and time to Unix Epoch timestamp, refer to https://www.epochconverter.com/.

endTime

<1583431870>

Optional

Long

Ending time of filtered open alerts in Unix Epoch timestamp. To convert date and time to Unix Epoch timestamp, refer to https://www.epochconverter.com/.

Content-Type application/json

Required

String

Sample Request

Request URL

GET https://www.forticnp.com/api/v1/dashboard/severity/alert

Request Header

Authorization: Bearer <Authorization_Token>

roleId: 36241

companyId: 8059334

Content-Type: application/json

starttime: 1583347487553

endtime: 1583433887553

Response Variables

Name

Type

Description

key String classification of alert severity level
value integer Number of alert

Sample Response

[

{

"id":"0",

"key":"Critical",

"value":319

},

{

"id":"1",

"key":"Alert",

"value":204

},

{

"id":"2",

"key":"Warning",

"value":104

},

{

"id":"3",

"key":"Information",

"value":1

}

]