查询指定风险项和指定服务器下的检查项信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:DescribeCheckWarnings |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SourceIp |
string |
否 |
访问源的 IP 地址。 |
1.2.XX.XX |
| Lang |
string |
否 |
设置请求和接收消息的语言类型,默认为 zh。取值:
|
zh |
| Uuid |
string |
是 |
执行基线检查的服务器的 ID。 说明
查询指定风险项和指定服务器下的检查项信息,需要提供执行基线检查的服务器的 ID,该 ID 可调用 DescribeWarningMachines 接口获取。 |
d42f938c-d962-48a0-90f9-05**** |
| RiskId |
integer |
否 |
风险项 ID。该参数为必填参数。 说明
查询指定风险项和指定服务器下的检查项信息,需要提供风险项 ID,该 ID 可调用 DescribeCheckWarningSummary 接口获取。 |
10354 |
| PageSize |
integer |
否 |
设置分页查询时,每页显示的检查项信息的数量。默认值为 20,表示每页显示 20 条检查项信息。 |
20 |
| CurrentPage |
integer |
否 |
设置从返回结果的第几页开始显示查询结果。默认值为 1,表示从第 1 页开始显示。 |
1 |
| CheckId |
integer |
否 |
检查项的 ID。 |
2546 |
| CheckType |
string |
否 |
检查项类型。取值:
|
hc.check.type.attack_defense |
| RiskStatus |
integer |
否 |
风险检测状态。取值:
|
1 |
| ContainerName |
string |
否 |
容器名称。 |
/redis |
| ResourceDirectoryAccountId |
integer |
否 |
资源目录成员账号主账号 ID。 说明
调用 DescribeMonitorAccounts 接口可以获取该参数。 |
1232428423234**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| CurrentPage |
integer |
分页查询时,当前页的页码。 |
1 |
| PageSize |
integer |
分页查询时,每页显示的检查项信息的数量。默认值为 20,表示每页显示 20 条检查项信息。 |
20 |
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
0DFCADBA-7065-42DA-AF17-6868B9C2A8CF |
| TotalCount |
integer |
查询到的检查项信息的总数量。 |
100 |
| Count |
integer |
当前页显示检查项信息的数量。 |
10 |
| CheckWarnings |
array<object> |
查询到的检查项信息的详情。 |
|
|
object |
检查项信息的详情。 |
||
| Status |
integer |
检查项的状态。取值:
|
1 |
| CheckWarningId |
integer |
基线检查的告警数据 ID。 |
212251441 |
| Type |
string |
检查项类型。 |
hc.check.type.identity_auth |
| Uuid |
string |
执行基线检查的服务器的 ID。 |
d42f938c-d962-48a0-90f9-**** |
| ContainerName |
string |
容器名称。 |
/svn-host |
| ContainerId |
string |
容器 ID。 |
8de456b00ff0a2009ee8ef7fc59fd0457fa44f20b8282af3e79c2a0e2492**** |
| Item |
string |
检查项名称。 |
passwordExpire |
| CheckId |
integer |
检查项的 ID。 |
2546 |
| Level |
string |
基线检查风险项的危险等级。取值:
|
high |
| Reason |
string |
备注。 |
ignore |
| FixStatus |
integer |
是否支持修复。取值:
|
0 |
| ExecErrorMessage |
string |
告警数据检查中的错误信息。 |
ScriptKilledOfCpuHigh |
| LastHandleTime |
integer |
该机器的检查项风险的最新处理的时间戳,单位为毫秒。 |
1704937755000 |
示例
正常返回示例
JSON格式
{
"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
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。