查询基线检查策略。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:DescribeStrategy |
get |
*BaselineStrategy
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SourceIp |
string |
否 |
访问源 IP 地址。 |
1.2.X.X |
| Lang |
string |
否 |
设置请求和接收消息的语言类型,默认为 zh。取值:
|
zh |
| StrategyIds |
string |
否 |
要查询的策略的 ID。多个 ID 之间使用半角逗号(,)隔开。 |
8164248 |
| CustomType |
string |
否 |
要查询的策略的类型。取值:
|
custom |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
基线检查策略返回信息。 |
||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
75C127E6-76CD-59A7-B6E4-1CBBDC98F2EB |
| Strategies |
array<object> |
策略的详细信息集合。 |
|
|
array<object> |
策略的详细信息。 |
||
| Type |
integer |
策略的来源类型。取值:
|
2 |
| ExecStatus |
integer |
基线检查策略的执行状态。取值:
|
1 |
| PassRate |
integer |
执行基线检查策略发现的存在风险的基线的占比。 |
0 |
| CycleStartTime |
integer |
基线检查开始的时间。取值:
|
0 |
| CustomType |
string |
策略的类型。取值:
|
custom |
| EcsCount |
integer |
策略生效的资产的数量。 |
50 |
| ProcessRate |
integer |
已完成基线检查的资产的数量。 |
20 |
| CycleDays |
integer |
基线检查的周期。取值:
|
1 |
| RiskCount |
integer |
策略包含的基线检查项的数量。 |
23 |
| Name |
string |
策略的名称。 |
text2 |
| Id |
integer |
策略的 ID。 |
8164248 |
| ConfigTargets |
array<object> |
策略生效资产的信息集合。 |
|
|
object |
策略生效资产的信息。 |
||
| Flag |
string |
策略是否对该资产分组生效。取值:
|
add |
| Target |
string |
策略生效的资产的分组 ID 或者 UUID。 |
10099713 |
| TargetType |
string |
策略生效资产的添加方式。取值:
|
groupId |
| StartTime |
string |
基线检查策略执行开始时间。格式为 HH:mm:ss。 |
00:00:00 |
| EndTime |
string |
基线检查策略执行结束时间。格式为 HH:mm:ss。 |
03:00:00 |
| Percent |
string |
检查中基线的检查进度,仅 ExecStatus = 2 的基线会返回该参数。 |
50% |
| UserModifyTime |
integer |
基线检测策略的上次修改时间,格式为 YYYY-MM-DD HH:mm:ss。 |
2025-01-07 10:46:43 |
| ExecutionType |
string |
基线扫描的触发方式。取值:
|
Manual |
示例
正常返回示例
JSON格式
{
"RequestId": "75C127E6-76CD-59A7-B6E4-1CBBDC98F2EB",
"Strategies": [
{
"Type": 2,
"ExecStatus": 1,
"PassRate": 0,
"CycleStartTime": 0,
"CustomType": "custom",
"EcsCount": 50,
"ProcessRate": 20,
"CycleDays": 1,
"RiskCount": 23,
"Name": "text2",
"Id": 8164248,
"ConfigTargets": [
{
"Flag": "add",
"Target": "10099713",
"TargetType": "groupId"
}
],
"StartTime": "00:00:00",
"EndTime": "03:00:00",
"Percent": "50%",
"UserModifyTime": 0,
"ExecutionType": "Manual"
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ConsoleError | The error message is %s %s. | |
| 500 | ServerError | ServerError | 服务故障,请稍后重试! |
| 403 | NoPermission | caller has no permission | 当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。