Queries servers that have undergone a baseline check, including server IDs, risk item statistics, and risk item status.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeWarningMachines |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The source IP address of the request. |
1.2.XX.XX |
| Lang |
string |
No |
The language of the request and response content. Default value: zh. Valid values:
|
zh |
| MachineName |
string |
No |
The name of the server on which the baseline check is performed. |
oracle-win-001**** |
| Uuids |
string |
No |
The UUID of the server on which the baseline check is performed. Separate multiple UUIDs with commas (,). |
9888955c-0076-49da-bd9c-34f5492b**** |
| RiskId |
integer |
Yes |
The ID of the risk item. Note
You can call the DescribeCheckWarningSummary operation to query the IDs of risk items. |
196 |
| StrategyId |
integer |
No |
The ID of the baseline check policy. |
16 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Maximum value: 100. |
10 |
| CurrentPage |
integer |
No |
The number of the page to return. Default value: 1. |
1 |
| ClusterId |
string |
No |
The ID of the container cluster. Note
You can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters. |
c7e3c5b420a7947c2933303144688**** |
| ContainerFieldName |
string |
No |
The field used to search for the container. Valid values:
|
containerId |
| ContainerFieldValue |
string |
No |
The value of the field used to search for the container. |
c8bb3ef0f5ccf45508f0fd1ffc200**** |
| TargetType |
string |
No |
The type of the query condition. Valid values:
|
uuid |
| HaveRisk |
integer |
No |
Whether risks were detected. Valid values:
|
1 |
| GroupId |
integer |
No |
The ID of the asset group. Note
You can call the DescribeAllGroups operation to query the IDs of asset groups. |
123 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries returned per page. Default value: 10. |
10 |
| RequestId |
string |
The request ID. |
6E4CBE87-E887-5AF1-86D2-78EB4AA3E771 |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| Count |
integer |
The number of entries returned on the current page. |
10 |
| WarningMachines |
array<object> |
The information about the servers. |
|
|
object |
The information about the servers on which alerts are generated. |
||
| Status |
integer |
The verification status of the risk item after it is fixed. Valid values:
|
1 |
| InternetIp |
string |
The public IP address of the server. |
1.2.XX.XX |
| InstanceId |
string |
The server ID. |
i-m5ee8b9nr3h30mhb**** |
| HighWarningCount |
integer |
The number of high-risk items on the server. |
10 |
| IntranetIp |
string |
The private IP address of the server. |
1.2.XX.XX |
| RegionId |
string |
The region ID of the server. |
cn-qingdao |
| LowWarningCount |
integer |
The number of low-risk items on the server. |
3 |
| PortOpen |
boolean |
Whether a port on the server is accessible over the Internet. Valid values:
|
true |
| Uuid |
string |
The UUID of the server on which the baseline check is performed. |
9888955c-0076-49da-bd9c-34f5492b**** |
| MediumWarningCount |
integer |
The number of medium-risk items on the server. |
2 |
| PassCount |
integer |
The number of check items that passed the baseline check on the server. |
10 |
| InstanceName |
string |
The name of the server. |
oracle-win-00**** |
| Bind |
boolean |
Whether Security Center is authorized to protect the asset. Valid values:
|
true |
| AuthVersion |
integer |
The edition of Security Center that is authorized to protect the asset. Valid values:
|
7 |
| ContainerId |
string |
The container ID. |
48a6d9a92435a13ad573372c3f3c63b7e04d106458141df9f92155709d****** |
| ContainerName |
string |
The name of the container. |
redis |
| Online |
boolean |
Whether the agent is online. Valid values:
|
true |
| AssetType |
string |
The type of cloud product assets. Note
You can call ListCloudAssetInstances to query the types of cloud product assets. |
0 |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"PageSize": 10,
"RequestId": "6E4CBE87-E887-5AF1-86D2-78EB4AA3E771",
"TotalCount": 1,
"Count": 10,
"WarningMachines": [
{
"Status": 1,
"InternetIp": "1.2.XX.XX",
"InstanceId": "i-m5ee8b9nr3h30mhb****",
"HighWarningCount": 10,
"IntranetIp": "1.2.XX.XX",
"RegionId": "cn-qingdao",
"LowWarningCount": 3,
"PortOpen": true,
"Uuid": "9888955c-0076-49da-bd9c-34f5492b****",
"MediumWarningCount": 2,
"PassCount": 10,
"InstanceName": "oracle-win-00****",
"Bind": true,
"AuthVersion": 7,
"ContainerId": "48a6d9a92435a13ad573372c3f3c63b7e04d106458141df9f92155709d******",
"ContainerName": "redis",
"Online": true,
"AssetType": "0"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ConsoleError | The error message is %s %s. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.