查询镜像基线策略。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:DescribeImageBaselineStrategy |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| StrategyId |
integer |
否 |
基线检测策略 ID。 |
8037 |
| Lang |
string |
否 |
请求和接收消息的语言类型。
|
zh |
| Source |
string |
否 |
数据来源,为空时默认查询镜像基线策略。取值:
|
agentless |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
本次请求的 ID。 |
9F85AC10-A1FE-54D7-935A-F28D5256**** |
| Strategy |
object |
基线检查策略信息。 |
|
| Type |
string |
基线检查策略类型。取值:
|
default |
| StrategyName |
string |
策略名称。 |
default |
| StrategyId |
integer |
基线检查策略 ID。 |
8257 |
| SelectedItemCount |
integer |
选择的基线检查项数量。 |
10 |
| TotalItemCount |
integer |
基线检查项总数 |
100 |
| BaselineItemList |
array<object> |
基线项列表。 |
|
|
object |
基线项列表。 |
||
| NameKey |
string |
基线主项的名称 key。 |
identification |
| ItemKey |
string |
基线子项的 key。 |
duplicate_pwd_hash |
| ClassKey |
string |
基线主项的分类 key。 |
identification |
| BaselineItem |
string |
无代理检测基线检查策略。 |
hc_win2008_cis_rules |
| ImageVulClean |
integer |
基线风险保留时长,单位是天。 |
90 |
示例
正常返回示例
JSON格式
{
"RequestId": "9F85AC10-A1FE-54D7-935A-F28D5256****",
"Strategy": {
"Type": "default",
"StrategyName": "default",
"StrategyId": 8257,
"SelectedItemCount": 10,
"TotalItemCount": 100,
"BaselineItemList": [
{
"NameKey": "identification",
"ItemKey": "duplicate_pwd_hash",
"ClassKey": "identification"
}
],
"BaselineItem": "hc_win2008_cis_rules",
"ImageVulClean": 90
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 500 | ServerError | ServerError | 服务故障,请稍后重试! |
| 403 | NoPermission | caller has no permission | 当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。