全部产品
Search
文档中心

云安全中心:DescribeRiskType - 查询基线类型

更新时间:Aug 28, 2026

查询基线类型。

调试

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

调试

授权信息

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

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

yundun-sas:DescribeRiskType

get

*全部资源

*

无 无

请求参数

名称

类型

必填

描述

示例值

SourceIp

string

否

访问源 IP 地址。

192.168.X.X

Lang

string

否

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

  • zh:中文

  • en:英文

zh

Source

string

否

数据来源。取值:

  • default:主机基线

  • agentless:agentless 基线

agentless

返回参数

名称

类型

描述

示例值

object

RequestId

string

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

F22037B5-FCE4-5178-A9E7-71798E1F9270

RiskTypes

array<object>

基线类型信息集合。

array<object>

基线类型信息。

TypeName

string

基线类型名称。

hc_exploit

Alias

string

基线类型别名。

Redis unauthorized access high exploit vulnerability risk

SubTypes

array<object>

基线信息集合。

array<object>

基线子类型信息。

TypeName

string

基线子类型名称。

hc_exploit_redis

Alias

string

基线子类型别名。

Redis unauthorized access high exploit vulnerability risk

CheckDetails

array<object>

基线子类型的检查详情集合。

array<object>

基线子类型的检查详情。

CheckId

integer

基线子类型的检测项唯一主键。

1299

CheckItem

string

基线子类型的检测项。

Ensure password expiration period is set.

CheckDesc

string

基线子类型的检测项描述。

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

array<object>

基线子类型的检测项规则详情集合。

array<object>

基线子类型的检测项规则详情。

Optional

integer

基线子类型的检测项是否支持编辑。取值:

  • 0:否

  • 1:是

1

RuleDesc

string

基线子类型的检测项规则描述。

Please customize the password expiration time detection standard as

RuleId

string

基线子类型的检测项规则编号。

audit.audit_policy.auditpolicychange.cus

ParamList

array<object>

基线子类型的检测项的规则参数集合。

object

基线子类型的检测项的规则参数。

ParamDefaultValue

string

自定义检测项支持配置参数的默认值。

7

ParamName

string

基线子类型的检测项的规则参数名称。

range_val

MaxValue

integer

基线子类型的检测项的规则参数的最大值。

999

ParamType

integer

基线子类型的检测项的规则参数的配置类型。取值:

  • 1:输入

  • 2:选择

1

ParamDesc

string

基线子类型的检测项的规则的参数描述。

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

MinValue

integer

基线子类型的检测项的规则的参数最小值。

1

EnumValue

string

paramType 取值为 1 时,此值为空。 paramType 取值为 2 时,此值表示可选项。

0,1,2,3

SupportedOs

string

支持的操作系统。取值:

  • windows

  • linux

linux

AuthFlag

boolean

当前用户版本是否有基线的权限。取值:

  • true:有权限

  • false:无权限

true

AuthFlag

boolean

当前用户版本是否有分类的权限。取值:

  • true:有权限

  • false:无权限

true

示例

正常返回示例

JSON格式

{
  "RequestId": "F22037B5-FCE4-5178-A9E7-71798E1F9270",
  "RiskTypes": [
    {
      "TypeName": "hc_exploit",
      "Alias": "Redis unauthorized access high exploit vulnerability risk",
      "SubTypes": [
        {
          "TypeName": "hc_exploit_redis",
          "Alias": "Redis unauthorized access high exploit vulnerability risk",
          "CheckDetails": [
            {
              "CheckId": 1299,
              "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",
                  "RuleId": "audit.audit_policy.auditpolicychange.cus",
                  "ParamList": [
                    {
                      "ParamDefaultValue": "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": "linux",
          "AuthFlag": true
        }
      ],
      "AuthFlag": true
    }
  ]
}

错误码

HTTP status code

错误码

错误信息

描述

400 -101 %s %s
500 -100 The service is unavailable, please try again later. 服务异常,请稍后重试。
500 ServerError ServerError 服务故障,请稍后重试!
403 NoPermission caller has no permission 当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。

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

变更历史

更多信息,参考变更详情。