Queries the statistics of baseline check results, such as the number of servers checked, the number of check items, and the latest check pass rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeCheckWarningSummary |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the request. |
219.133.XX.XX |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
zh |
| TypeName |
string |
No |
The level-1 type of the baseline. Note
Call the DescribeRiskType operation to obtain this parameter. |
database |
| Status |
string |
No |
The status of the check item. Valid values:
|
1 |
| RiskStatus |
integer |
No |
The status of the baseline check. Valid values:
|
1 |
| RiskName |
string |
No |
The name of the baseline check risk item. |
Redis |
| StrategyId |
integer |
No |
The ID of the baseline check policy. |
1 |
| Uuids |
string |
No |
The UUID of the asset. Note
Call the DescribeCloudCenterInstances operation to obtain this parameter. |
f03259d8-1e81-4fae-bcbb-275fb5**** |
| PageSize |
integer |
No |
The maximum number of entries per page for a paged query. |
10 |
| CurrentPage |
integer |
No |
The page number for a paged query. |
1 |
| ClusterId |
string |
No |
The ID of the container cluster to query. Note
Call the DescribeGroupedContainerInstances operation to obtain this parameter. |
c80dae73bd1be442699766b14ffd0**** |
| ContainerFieldName |
string |
No |
The container field. Valid values:
|
namespace |
| ContainerFieldValue |
string |
No |
The value of the container field. |
c819391d2d520485fa3e81e2dc2ea**** |
| TargetType |
string |
No |
The query type. Valid values:
|
uuid |
| GroupId |
integer |
No |
The group ID of the server to query. Note
Call the DescribeAllGroups operation to obtain the group ID of the server. |
123 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The current page number of the returned results. |
1 |
| PageSize |
integer |
The maximum number of entries per page for a paged query. |
10 |
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use it to troubleshoot issues. |
00BD7CE2-284A-4534-BD09-FB69836DD750 |
| TotalCount |
integer |
The total number of baseline check items. |
100 |
| Count |
integer |
The number of check items displayed on the current page. |
10 |
| WarningSummarys |
array<object> |
The statistics of check items. |
|
|
object |
The statistics of check items. |
||
| LowWarningCount |
integer |
The number of low-risk check items. |
3 |
| CheckCount |
integer |
The number of baseline check items. |
10 |
| MediumWarningCount |
integer |
The number of medium-risk check items. |
2 |
| LastFoundTime |
string |
The time when the last baseline check was performed. |
2019-01-01 12:23:00 |
| RiskId |
integer |
The ID of the risk item. |
118 |
| SubTypeAlias |
string |
The level-2 category of the risk item. |
Redis |
| WarningMachineCount |
integer |
The number of assets on which baseline risks are detected. |
11 |
| HighWarningCount |
integer |
The number of high-risk check items. |
1 |
| TypeAlias |
string |
The category of the baseline check item, such as database, system, weak password detection, and middleware. |
databases |
| RiskName |
string |
The name of the baseline check risk item. |
Redis |
| Level |
string |
The risk level of the baseline check risk item. Valid values:
|
high |
| CheckExploit |
boolean |
Indicates whether the risk item is exploitable. Valid values:
|
false |
| DatabaseRisk |
boolean |
Indicates whether the risk item is a database risk. Valid values:
|
false |
| ContainerRisk |
boolean |
Indicates whether the baseline belongs to the container runtime category. Valid values:
|
false |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"PageSize": 10,
"RequestId": "00BD7CE2-284A-4534-BD09-FB69836DD750",
"TotalCount": 100,
"Count": 10,
"WarningSummarys": [
{
"LowWarningCount": 3,
"CheckCount": 10,
"MediumWarningCount": 2,
"LastFoundTime": "2019-01-01 12:23:00",
"RiskId": 118,
"SubTypeAlias": "Redis",
"WarningMachineCount": 11,
"HighWarningCount": 1,
"TypeAlias": "databases",
"RiskName": "Redis",
"Level": "high",
"CheckExploit": false,
"DatabaseRisk": false,
"ContainerRisk": false
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | no permission | |
| 400 | ConsoleError | The error message is %s %s. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.