Fortinet black logo

Online Help

Post Dashboard Risk

Post Dashboard Risk

Description

Get all risk trend data of all monitoring accounts in the business unit.

URL

/api/v1/dashboard/risk

Method: Post

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiCASB
Content-Type application/json String

buId

<Account Number>

Long

The targeted business unit ID on FortiCASB. Business unit ID can be obtained through . Alternatively, it can also be obtained from the REST API Get Resource Map

timeZone

<Time Zone>

String

Numeric representation of time zone of the user, ex. +0800

companyId <Company ID> Integer Company ID of which the business unit is under, can be obtained through Get Resource Map.

roleId

<User ID>

Integer

Login user ID, can be obtained through Get Resource Map.

Request Body Parameters

Name

Required

Type

Description

startTime Required long Timestamp, starting time of filtered open alerts
endTime Required long Timestamp, ending time of filtered open alerts

Sample Request

Request URL

POST https://www.forticasb.com/api/v1/dashboard/risk

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

roleId: 36241

companyId: 62598

buid: 6384

timezone: -0700

Request Body

{

"startTime":1585518361548,

"endTime":1585604761548

}

Response Variables

Name

Type

Description

name String Cloud service name
id String Risk sequence number
key String The time that the risk was detected
value long The risk number on this date

Sample Response

{

"data":[

{

"name":"Box",

"values":[

{

"id":"0",

"key":"2020-03-10T18:00:00+0000",

"value":0

},

{

"id":"1",

"key":"2020-03-10T18:30:00+0000",

"value":0

}

]

},

{

"name":"Salesforce",

"values":[

{

"id":"0",

"key":"2020-03-10T18:00:00+0000",

"value":0

},

{

"id":"1",

"key":"2020-03-10T18:30:00+0000",

"value":0

}

]

},

{

"name":"Dropbox",

"values":[

{

"id":"0",

"key":"2020-03-10T18:00:00+0000",

"value":0

},

{

"id":"1",

"key":"2020-03-10T18:30:00+0000",

"value":0

}

]

},

{

"name":"Google",

"values":[

{

"id":"0",

"key":"2020-03-10T18:00:00+0000",

"value":0

},

{

"id":"1",

"key":"2020-03-10T18:30:00+0000",

"value":0

}

]

},

{

"name":"Office365",

"values":[

{

"id":"0",

"key":"2020-03-10T18:00:00+0000",

"value":0

},

{

"id":"1",

"key":"2020-03-10T18:30:00+0000",

"value":0

}

]

}

]

}

Post Dashboard Risk

Description

Get all risk trend data of all monitoring accounts in the business unit.

URL

/api/v1/dashboard/risk

Method: Post

Request Headers

Key

Value

Type

Description

Authorization Bearer <Authorization Token> String Authorization credential generated by FortiCASB
Content-Type application/json String

buId

<Account Number>

Long

The targeted business unit ID on FortiCASB. Business unit ID can be obtained through . Alternatively, it can also be obtained from the REST API Get Resource Map

timeZone

<Time Zone>

String

Numeric representation of time zone of the user, ex. +0800

companyId <Company ID> Integer Company ID of which the business unit is under, can be obtained through Get Resource Map.

roleId

<User ID>

Integer

Login user ID, can be obtained through Get Resource Map.

Request Body Parameters

Name

Required

Type

Description

startTime Required long Timestamp, starting time of filtered open alerts
endTime Required long Timestamp, ending time of filtered open alerts

Sample Request

Request URL

POST https://www.forticasb.com/api/v1/dashboard/risk

Request Header

Authorization: Bearer <Authorization_Token>

Content-Type: application/json

roleId: 36241

companyId: 62598

buid: 6384

timezone: -0700

Request Body

{

"startTime":1585518361548,

"endTime":1585604761548

}

Response Variables

Name

Type

Description

name String Cloud service name
id String Risk sequence number
key String The time that the risk was detected
value long The risk number on this date

Sample Response

{

"data":[

{

"name":"Box",

"values":[

{

"id":"0",

"key":"2020-03-10T18:00:00+0000",

"value":0

},

{

"id":"1",

"key":"2020-03-10T18:30:00+0000",

"value":0

}

]

},

{

"name":"Salesforce",

"values":[

{

"id":"0",

"key":"2020-03-10T18:00:00+0000",

"value":0

},

{

"id":"1",

"key":"2020-03-10T18:30:00+0000",

"value":0

}

]

},

{

"name":"Dropbox",

"values":[

{

"id":"0",

"key":"2020-03-10T18:00:00+0000",

"value":0

},

{

"id":"1",

"key":"2020-03-10T18:30:00+0000",

"value":0

}

]

},

{

"name":"Google",

"values":[

{

"id":"0",

"key":"2020-03-10T18:00:00+0000",

"value":0

},

{

"id":"1",

"key":"2020-03-10T18:30:00+0000",

"value":0

}

]

},

{

"name":"Office365",

"values":[

{

"id":"0",

"key":"2020-03-10T18:00:00+0000",

"value":0

},

{

"id":"1",

"key":"2020-03-10T18:30:00+0000",

"value":0

}

]

}

]

}