Version:

Version:

Version:

Version:


Table of Contents

Online Help

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 Headers

Key

Value

Type

Description

companyId <12345> Integer Company ID in FortiCWP, can be obtained through Get Resource Map

roleId

<12345>

Long

Login user identity, 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>

roleId: 36241

companyId: 8059334

Content-Type: application/json

Response Variables

Name

Type

Description

service Application Cloud service such as AWS, Google Cloud, etc.
resourceType String Cloud resource type
riskLevelCounts 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 Headers

Key

Value

Type

Description

companyId <12345> Integer Company ID in FortiCWP, can be obtained through Get Resource Map

roleId

<12345>

Long

Login user identity, 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>

roleId: 36241

companyId: 8059334

Content-Type: application/json

Response Variables

Name

Type

Description

service Application Cloud service such as AWS, Google Cloud, etc.
resourceType String Cloud resource type
riskLevelCounts 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

}

]

}

]