Queries the risk statistics of check items by page.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RiskType | string | No | The type of the baseline. | weak_password |
CheckType | string | No | The type of the check item. | hc.check.type.attack_defense |
CheckWarningStatus | integer | No | The risk status. Default value is null, meaning check items in all states are queried. Valid values:
| 3 |
CheckLevel | string | No | The risk level. Default value: null, which indicates that check items at all risk levels are queried.Valid values:
| medium |
CheckItemFuzzy | string | No | The name of the check item. Fuzzy match is supported. | password |
ContainerFieldName | string | No | The name of the field that is used to query containers. | clusterId |
ContainerFieldValue | string | No | The value of the field that is used to query containers. | c471f0f61b9c04f8380556e922cf1**** |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
CurrentPage | integer | No | The number of the page to return. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page. Note
We recommend that you do not leave this parameter empty.
| 20 |
GroupId | long | No | The ID of the asset group. Note
You can call the DescribeAllGroups operation to query the IDs of asset groups.
| 1161**** |
Source | string | No | The data source. Default value: default. Valid value:
| agentless |
UuidList | array | No | The UUIDs of the servers. Note
You can call the DescribeCloudCenterInstances operation to query the UUIDs of the servers.
| |
string | No | The UUID of the server. Note
You can call the DescribeCloudCenterInstances operation to query the UUID of the server.
| 4fe8e1cd-3c37-4851-b9de-124da32c**** | |
CheckWarningStatusList | array | No | The list of risk levels. If the CheckWarningStatus parameter is specified, only it takes effect. | |
integer | No | The risk status. Valid values:
| 1 | |
StartTime | long | No | Start of time range for filtering alerts, effective only for querying historically handled alerts. | 1732793158366 |
Response parameters
Examples
Sample success responses
JSON
format
{
"List": [
{
"RiskType": "weak_password",
"Alias": "week_pa****",
"CheckId": 696,
"CheckItem": "Config the Event Audit policys",
"CheckLevel": "high",
"CheckType": "Security audit",
"Advice": "In the Administrative Tools window, double-click Local Security Policy. In the Local Security Policy window that appears, choose Security Settings\\\\Local Policies\\\\Audit Policy, configure all audit policies as: `Success, Failure`.",
"Description": "Config the Event Audit policys",
"Status": 1,
"WarningMachineCount": 20,
"ContainerCheckItem": true,
"AffiliatedRiskTypes": [
"CIS Compliance checks"
],
"AffiliatedRisks": [
"CIS Ubuntu Linux 14 LTS Benchmark"
],
"EnableRisks": [
"CIS Ubuntu Linux 14 LTS Benchmark\n"
]
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 149,
"Count": 4
},
"RequestId": "DC97C9EC-4B7D-5EFF-8A5E-A5CCC9ED****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-11-28 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2024-05-08 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-11-07 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2023-08-18 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-03-22 | The Error code has changed. The response structure of the API has changed | View Change Details |