Queries check item information for a specified risk item and a specified server.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeCheckWarnings |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceIp |
string |
No |
The IP address of the access source. |
1.2.XX.XX |
| Lang |
string |
No |
The language type of the request and response. Default value: zh. Valid values:
|
zh |
| Uuid |
string |
Yes |
The ID of the server on which the baseline check is performed. Note
To query check item information for a specified risk item and a specified server, you must provide the ID of the server on which the baseline check is performed. You can call the DescribeWarningMachines operation to obtain this ID. |
d42f938c-d962-48a0-90f9-05**** |
| RiskId |
integer |
No |
The risk item ID. This parameter is required. Note
To query check item information for a specified risk item and a specified server, you must provide the risk item ID. You can call the DescribeCheckWarningSummary operation to obtain this ID. |
10354 |
| PageSize |
integer |
No |
The number of check items to display on each page in a paged query. Default value: 20, which indicates that 20 check items are displayed on each page. |
20 |
| CurrentPage |
integer |
No |
The page number of the page to return. Default value: 1, which indicates that the first page is returned. |
1 |
| CheckId |
integer |
No |
The ID of the check item. |
2546 |
| CheckType |
string |
No |
The type of the check item. Valid values:
|
hc.check.type.attack_defense |
| RiskStatus |
integer |
No |
The risk detection status. Valid values:
|
1 |
| ContainerName |
string |
No |
The container name. |
/redis |
| ResourceDirectoryAccountId |
integer |
No |
The Alibaba Cloud account ID of the member accounts in the resource folder. Note
You can invoke the DescribeMonitorAccounts operation to obtain this parameter. |
1232428423234**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The page number of the current page in a paged query. |
1 |
| PageSize |
integer |
The number of check items displayed on each page in a paged query. Default value: 20, which indicates that 20 check items are displayed on each page. |
20 |
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
0DFCADBA-7065-42DA-AF17-6868B9C2A8CF |
| TotalCount |
integer |
The total number of check items returned. |
100 |
| Count |
integer |
The number of check items displayed on the current page. |
10 |
| CheckWarnings |
array<object> |
The details of the check items returned. |
|
|
object |
The details of a check item. |
||
| Status |
integer |
The status of the check item. Valid values:
|
1 |
| CheckWarningId |
integer |
The alert data ID of the baseline check. |
212251441 |
| Type |
string |
The type of the check item. |
hc.check.type.identity_auth |
| Uuid |
string |
The ID of the server on which the baseline check is performed. |
d42f938c-d962-48a0-90f9-**** |
| ContainerName |
string |
The container name. |
/svn-host |
| ContainerId |
string |
The container ID. |
8de456b00ff0a2009ee8ef7fc59fd0457fa44f20b8282af3e79c2a0e2492**** |
| Item |
string |
The name of the check item. |
passwordExpire |
| CheckId |
integer |
The ID of the check item. |
2546 |
| Level |
string |
The risk level of the baseline check risk item. Valid values:
|
high |
| Reason |
string |
The remarks. |
ignore |
| FixStatus |
integer |
Indicates whether the fix is supported. Valid values:
|
0 |
| ExecErrorMessage |
string |
The error message during the alert data check. |
ScriptKilledOfCpuHigh |
| LastHandleTime |
integer |
The timestamp of the most recent handling of the check item risk on the server. Unit: milliseconds. |
1704937755000 |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"PageSize": 20,
"RequestId": "0DFCADBA-7065-42DA-AF17-6868B9C2A8CF",
"TotalCount": 100,
"Count": 10,
"CheckWarnings": [
{
"Status": 1,
"CheckWarningId": 212251441,
"Type": "hc.check.type.identity_auth",
"Uuid": "d42f938c-d962-48a0-90f9-****",
"ContainerName": "/svn-host",
"ContainerId": "8de456b00ff0a2009ee8ef7fc59fd0457fa44f20b8282af3e79c2a0e2492****",
"Item": "passwordExpire",
"CheckId": 2546,
"Level": "high",
"Reason": "ignore",
"FixStatus": 0,
"ExecErrorMessage": "ScriptKilledOfCpuHigh",
"LastHandleTime": 1704937755000
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | UnknownError | UnknownError | |
| 400 | ConsoleError | The error message is %s %s. | |
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | |
| 500 | RdCheckInnerError | Resource directory account service internal error. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.