Queries the compliance statistics trend for the current account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:ListConfigRuleEvaluationStatistics |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
4FF2B787-347E-5299-A196-2C0448DEA341 |
| EvaluationResults |
array<object> |
The compliance statistics results. |
|
|
object |
|||
| NonCompliantResourceCnt |
integer |
The non-compliant resource count. |
30 |
| TotalResourceCnt |
integer |
The total number of resources. |
91 |
| NonCompliantRuleCnt |
integer |
The number of non-compliant rules. |
5 |
| TotalRuleCnt |
integer |
The total number of rules. |
13 |
| StatisticDate |
string |
The statistics date in the YYYY-MM-DD format. |
2023-06-27 |
Examples
Success response
JSON format
{
"RequestId": "4FF2B787-347E-5299-A196-2C0448DEA341",
"EvaluationResults": [
{
"NonCompliantResourceCnt": 30,
"TotalResourceCnt": 91,
"NonCompliantRuleCnt": 5,
"TotalRuleCnt": 13,
"StatisticDate": "2023-06-27"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid.ResourceOwnerId.Value | The specified ResourceOwnerId is invalid. | The specified ResourceOwnerId is invalid. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | The request has failed due to a temporary failure of the server. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.