Queries the servers that are affected by baseline risks.
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:ListCheckItemWarningMachine | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CheckId | long | Yes | The ID of the check item. | 8 |
RiskType | string | No | The type of the check item. | cis |
Status | integer | No | The status of the check item. Valid values:
| 3 |
Remark | string | No | The keyword that is used to query servers in fuzzy match mode. | 225 |
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. | ce89cdd0ea732472a8703821b19e**** |
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. Pages start from page 1. 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 ID of the asset group.
| 1161**** |
Source | string | No | The data source. Default value: default. Valid values:
| agentless |
UuidList | array | No | The UUID array of the servers. | |
string | No | The UUID of the servers. Note
You can call the DescribeCloudCenterInstances operation to query the UUIDs of servers.
| 4fe8e1cd-3c37-4851-b9de-124da32c**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"List": [
{
"Status": 1,
"Bind": true,
"AuthVersion": 3,
"PortOpen": true,
"InstanceId": "i-bp1a69mvjujbakxu****",
"IntranetIp": "172.25.XX.XX",
"InternetIp": "8.210.XX.XX",
"InstanceName": "sql-test-0****",
"Uuid": "49e25e0f-bb51-4a5a-a1b3-13a4ddaa****",
"RegionId": "cn-hangzhou",
"Prompt": "There is a weak password (username/password): root/he*****34",
"WarningRiskList": [
{
"RiskId": 72,
"RiskName": "Alibaba Cloud Linux/Aliyun Linux 2 Baseline for China classified protection of cybersecurity-Level II"
}
],
"FixList": [
{
"RiskId": 72,
"RiskName": "Alibaba Cloud Linux/Aliyun Linux 2 Baseline for China classified protection of cybersecurity-Level II"
}
],
"ContainerId": "48a6d9a92435a13ad573372c3f3c63b7e04d106458141df9f9215570********",
"ContainerName": "step-build-ui-build",
"TargetName": "jenkins****",
"TargetId": "30****",
"TargetType": "ECS_IMAGE",
"LastScanTime": 1694692471000,
"LastHandleTime": 1694692471000,
"FixStatus": 1
}
],
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 107,
"Count": 4
},
"RequestId": "22B5615F-700E-575A-A6D5-DC8D7741****"
}
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 |
---|---|---|
2023-12-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. The response structure 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 |