GetRiskStats
Retrieves risk posture statistics.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-greenweb:GetRiskStats |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| Type |
string |
Yes |
The type. Valid values:
|
RealTime |
| StartTime |
string |
No |
The start time. Format: YYYY-MM-DD HH:mm:ss. |
2026-01-01 00:00:00 |
| EndTime |
string |
No |
The end time. Format: YYYY-MM-DD HH:mm:ss. |
2026-01-02 00:00:00 |
| Classify |
string |
No |
The category. |
guard-scene |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PortalResponse |
||
| RequestId |
string |
The ID assigned by the backend to uniquely identify a request. You can use this ID to troubleshoot issues. |
AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE**** |
| RiskStats |
array<object> |
The list of risk posture statistics. |
|
|
object |
|||
| Type |
string |
The type. |
prompt_attack |
| RequestCount |
integer |
The total number of requests. |
100 |
| RiskCount |
integer |
The number of detected risks. |
1 |
Examples
Success response
JSON format
{
"RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\n",
"RiskStats": [
{
"Type": "prompt_attack",
"RequestCount": 100,
"RiskCount": 1
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.