文档

DescribeStrategyDetail - 获取基线策略详情

更新时间:

获取基线策略的详情。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用背景高亮的方式表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
yundun-sas:DescribeStrategyDetailRead
  • 全部资源
    acs:yundun-sas:*:{#accountId}:*

请求参数

名称类型必填描述示例值
SourceIpstring

访问源的 IP 地址。

192.168.XX.XX
Langstring

设置请求和接收消息的语言类型,默认为 zh。取值:

  • zh:中文
  • en:英文
zh
Idstring

基线策略 ID。

123456

返回参数

名称类型描述示例值
object

基线策略详情返回数据。

RequestIdstring

本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。

C5B28F65-9245-5DC1-B3CF-5F2756A756A8
Strategyobject

策略的信息。

Typeinteger

策略类型。取值:

  • 1:标准策略
  • 2:自定义策略
1
CycleDaysinteger

策略的检测周期。

3
Namestring

策略名称。

TestStrategy
Idinteger

策略 ID。

123
CycleStartTimeinteger

策略的检测周期。取值:

  • 0:0:00~06:00
  • 6:6:00~12:00
  • 12:12:00~18:00
  • 18:18:00~24:00
0
RiskTypeWhiteListQueryResultListobject []

风险项白名单列表。

TypeNamestring

检测项。

hc_exploit
Aliasstring

检测项别名。

Unauthorized Access
Onboolean

风险项是否选中。取值:

  • true:是
  • false:否
false
SubTypesobject []

子风险项的列表。

TypeNamestring

子检测项类型名称。

hc_exploit_redis
Aliasstring

检测项别名。

Redis unauthorized access high exploit vulnerability risk
Onboolean

子风险项是否选中。取值:

  • true:是
  • false:否
false
CheckDetailsobject []

自定义检测项详情列表。

CheckIdlong

检测项 ID。

206
CheckItemstring

检测项。

Ensure password expiration period is set.
CheckDescstring

检测项描述。

Set password expiration time, force regular modification of password, reduce password leakage and guess risk.Use non-password login (e.g. key pair) please ignore this item.
Rulesobject []

规则信息列表。

Optionalinteger

规则是否可选。取值:

  • 1:是
  • 0:否
1
RuleDescstring

规则描述。

Please customize the password expiration time detection standard as
DefaultValueinteger

规则的默认值。

2
RuleIdstring

规则 ID。

login_unlock_deny_pam_faillock.must.cus
ParamListobject []

规则参数列表。

ParamDefaultValuestring

规则参数默认值。

7
Valuestring

规则参数设置值。

7
ParamNamestring

规则参数名称。

range_val
MaxValueinteger

规则参数最大值。

999
ParamTypeinteger

规则参数类型。取值:

  • 1:输入
  • 2:选择
1
ParamDescstring

规则参数描述。

The setting value is 0 means no definition, 1 means success, 2 means failure, 3 means success and failure
MinValueinteger

规则参数最小值。

1
EnumValuestring

规则参数为选择类型时,规则参数的选项。

0,1,2,3
SupportedOsstring

支持的操作系统。取值:

  • windows
  • linux
windows
StartTimestring

基线检查策略开始时间。

02:00:00
EndTimestring

基线检查策略执行结束时间。

03:00:00
CustomTypestring

策略的类型。取值:

  • common:标准策略
  • custom:自定义策略
common
TargetTypestring

策略生效资产的添加方式。取值:

  • groupId:按照资产的分组添加。
  • uuid:按照单个资产添加。
groupId
RiskSubTypeNamestring

基线检测项子类型。

hc_nginx_linux,tomcat7,hc_mysql_ali,hc_docker

示例

正常返回示例

JSON格式

{
  "RequestId": "C5B28F65-9245-5DC1-B3CF-5F2756A756A8",
  "Strategy": {
    "Type": 1,
    "CycleDays": 3,
    "Name": "TestStrategy",
    "Id": 123,
    "CycleStartTime": 0,
    "RiskTypeWhiteListQueryResultList": [
      {
        "TypeName": "hc_exploit",
        "Alias": "Unauthorized Access",
        "On": false,
        "SubTypes": [
          {
            "TypeName": "hc_exploit_redis",
            "Alias": "Redis unauthorized access high exploit vulnerability risk",
            "On": false,
            "CheckDetails": [
              {
                "CheckId": 206,
                "CheckItem": "Ensure password expiration period is set.",
                "CheckDesc": "Set password expiration time, force regular modification of password, reduce password leakage and guess risk.Use non-password login (e.g. key pair) please ignore this item.",
                "Rules": [
                  {
                    "Optional": 1,
                    "RuleDesc": "Please customize the password expiration time detection standard as",
                    "DefaultValue": 2,
                    "RuleId": "login_unlock_deny_pam_faillock.must.cus",
                    "ParamList": [
                      {
                        "ParamDefaultValue": "7",
                        "Value": "7",
                        "ParamName": "range_val",
                        "MaxValue": 999,
                        "ParamType": 1,
                        "ParamDesc": "The setting value is 0 means no definition, 1 means success, 2 means failure, 3 means success and failure",
                        "MinValue": 1,
                        "EnumValue": "0,1,2,3"
                      }
                    ]
                  }
                ]
              }
            ],
            "SupportedOs": "windows"
          }
        ]
      }
    ],
    "StartTime": "02:00:00",
    "EndTime": "03:00:00",
    "CustomType": "common",
    "TargetType": "groupId",
    "RiskSubTypeName": "hc_nginx_linux,tomcat7,hc_mysql_ali,hc_docker"
  }
}

错误码

HTTP status code错误码错误信息描述
403NoPermissioncaller has no permission当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。
500ServerErrorServerError服务故障,请稍后重试!

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
2023-12-07OpenAPI 返回结构发生变更看变更集
变更项变更内容
出参OpenAPI 返回结构发生变更
  • 本页导读 (1)
文档反馈