Fortinet black logo

online help

Get Resource Risk Level

Copy Link
Copy Doc ID 58cdf477-b7d4-11ea-8b7d-00505692583a:367425

Get Resource Risk Level

Description

Get the total number of the monitored resources with risk level.

URL

/api/v1/dashboard/resource/risk

Request Method: Get

Request Header

Key

Value

Type

Description

companyId <12345> Integer Company ID - Company ID can be obtained through Get Resource Map
Authorization Bearer <Authorization Token> String Authorization credential generated by FortiCWP
Content-Type application/json String

Sample request:

Request URL

GET https://www.forticwp.com/api/v1/dashboard/resource/risk

Request Header

Authorization: Bearer <Authorization_Token>

companyId: <Company_ID>

Content-Type: application/json

Response Variable

Name

Type

Description

service Application Cloud service such as AWS, Google Cloud, etc.
resourceType String Cloud resource type
severity Array Statistics of different risk level and number of resource type
riskLevel String Risk level of monitored resource
count integer Total number of risk resources at risk

Sample Response

[

{

"service":"Azure",

"resourceType":"Azure redis service",

"riskLevelCounts":[

{

"riskLevel":"Pass",

"count":1

}

]

},

{

"service":"GoogleCloud",

"resourceType":"Bucket",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":4

},

{

"riskLevel":"Pass",

"count":18

}

]

},

{

"service":"Azure",

"resourceType":"Azure Virtual Machine",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":4

}

]

},

{

"service":"AWS",

"resourceType":"Load Balancer",

"riskLevelCounts":[

{

"riskLevel":"Alert",

"count":6

},

{

"riskLevel":"Pass",

"count":2

},

{

"riskLevel":"Critical",

"count":2

}

]

},

{

"service":"AWS",

"resourceType":"ElasticSearch Domain",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":1

}

]

},

{

"service":"GoogleCloud",

"resourceType":"Cloud SQL Instance",

"riskLevelCounts":[

{

"riskLevel":"Warning",

"count":1

},

{

"riskLevel":"Critical",

"count":1

}

]

},

{

"service":"AWS",

"resourceType":"ACM Certificate",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":3

}

]

},

{

"service":"GoogleCloud",

"resourceType":"Compute Engine Instance",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":10

}

]

},

{

"service":"Azure",

"resourceType":"Network Watcher",

"riskLevelCounts":[

{

"riskLevel":"Pass",

"count":22

}

]

},

{

"service":"AWS",

"resourceType":"EC2 Instance",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":13

},

{

"riskLevel":"Alert",

"count":2

},

{

"riskLevel":"Pass",

"count":28

}

]

}

]

Get Resource Risk Level

Description

Get the total number of the monitored resources with risk level.

URL

/api/v1/dashboard/resource/risk

Request Method: Get

Request Header

Key

Value

Type

Description

companyId <12345> Integer Company ID - Company ID can be obtained through Get Resource Map
Authorization Bearer <Authorization Token> String Authorization credential generated by FortiCWP
Content-Type application/json String

Sample request:

Request URL

GET https://www.forticwp.com/api/v1/dashboard/resource/risk

Request Header

Authorization: Bearer <Authorization_Token>

companyId: <Company_ID>

Content-Type: application/json

Response Variable

Name

Type

Description

service Application Cloud service such as AWS, Google Cloud, etc.
resourceType String Cloud resource type
severity Array Statistics of different risk level and number of resource type
riskLevel String Risk level of monitored resource
count integer Total number of risk resources at risk

Sample Response

[

{

"service":"Azure",

"resourceType":"Azure redis service",

"riskLevelCounts":[

{

"riskLevel":"Pass",

"count":1

}

]

},

{

"service":"GoogleCloud",

"resourceType":"Bucket",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":4

},

{

"riskLevel":"Pass",

"count":18

}

]

},

{

"service":"Azure",

"resourceType":"Azure Virtual Machine",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":4

}

]

},

{

"service":"AWS",

"resourceType":"Load Balancer",

"riskLevelCounts":[

{

"riskLevel":"Alert",

"count":6

},

{

"riskLevel":"Pass",

"count":2

},

{

"riskLevel":"Critical",

"count":2

}

]

},

{

"service":"AWS",

"resourceType":"ElasticSearch Domain",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":1

}

]

},

{

"service":"GoogleCloud",

"resourceType":"Cloud SQL Instance",

"riskLevelCounts":[

{

"riskLevel":"Warning",

"count":1

},

{

"riskLevel":"Critical",

"count":1

}

]

},

{

"service":"AWS",

"resourceType":"ACM Certificate",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":3

}

]

},

{

"service":"GoogleCloud",

"resourceType":"Compute Engine Instance",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":10

}

]

},

{

"service":"Azure",

"resourceType":"Network Watcher",

"riskLevelCounts":[

{

"riskLevel":"Pass",

"count":22

}

]

},

{

"service":"AWS",

"resourceType":"EC2 Instance",

"riskLevelCounts":[

{

"riskLevel":"Critical",

"count":13

},

{

"riskLevel":"Alert",

"count":2

},

{

"riskLevel":"Pass",

"count":28

}

]

}

]