Queries the statistical information about baseline check results. The information includes the number of servers on which a baseline check is performed, the number of baseline check items, and the pass rate of check items in the last baseline check.
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:DescribeCheckWarningSummary | get |
|
| 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 content within the request and the response. Valid values:
| zh |
TypeName | string | No | The level-1 type of check items. Note
You can call the DescribeRiskType operation to query the level-1 types of check items.
| 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 risk item. | Redis |
StrategyId | long | No | The ID of the baseline check policy. | 1 |
Uuids | string | No | The UUID of the asset. Note
You can call the DescribeCloudCenterInstances operation to query the UUIDs of assets.
| f03259d8-1e81-4fae-bcbb-275fb5**** |
PageSize | integer | No | The number of entries to return on each page. | 10 |
CurrentPage | integer | No | The number of the page to return. | 1 |
ClusterId | string | No | The ID of the container cluster. Note
You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
| c80dae73bd1be442699766b14ffd0**** |
ContainerFieldName | string | No | The name of the container field. Valid values:
| namespace |
ContainerFieldValue | string | No | The value of the container field. | c819391d2d520485fa3e81e2dc2ea**** |
TargetType | string | No | The type of the query condition. Valid values:
| uuid |
GroupId | long | No | The ID of the asset group. Note
You can call the DescribeAllGroups operation to query the IDs of asset groups.
| 123 |
Response parameters
Examples
Sample success responses
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. | - |
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 |
---|---|---|
2023-03-22 | The Error code has changed. The response structure of the API has changed | View Change Details |