Queries the risk statistics of check items by page.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ListCheckItemWarningSummary | list | *All Resources * |
| none |
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: null, which indicates that 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**** |
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-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 |