文档

DescribeRiskType - 查询基线类型

更新时间:

查询基线类型。

调试

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

授权信息

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

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

请求参数

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

访问源 IP 地址。

192.168.X.X
Langstring

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

  • zh:中文
  • en:英文
zh
Sourcestring

数据来源。取值:

  • default:主机基线
  • agentless:agentless 基线
agentless

返回参数

名称类型描述示例值
object
RequestIdstring

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

F22037B5-FCE4-5178-A9E7-71798E1F9270
RiskTypesobject []

基线类型信息集合。

TypeNamestring

基线类型名称。

hc_exploit
Aliasstring

基线类型别名。

Redis unauthorized access high exploit vulnerability risk
SubTypesobject []

基线信息集合。

TypeNamestring

基线子类型名称。

hc_exploit_redis
Aliasstring

基线子类型别名。

Redis unauthorized access high exploit vulnerability risk
CheckDetailsobject []

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

CheckIdlong

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

1299
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

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

  • 0:否
  • 1:是
1
RuleDescstring

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

Please customize the password expiration time detection standard as
RuleIdstring

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

audit.audit_policy.auditpolicychange.cus
ParamListobject []

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

ParamDefaultValuestring

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

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

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

0,1,2,3
SupportedOsstring

支持的操作系统。取值:

  • windows
  • linux
linux
AuthFlagboolean

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

  • true:有权限
  • false:无权限
true
AuthFlagboolean

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

  • 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-
403NoPermissioncaller has no permission当前操作未被授权,请联系主账号在RAM控制台进行授权后再执行操作。
500ServerErrorServerError服务故障,请稍后重试!

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

变更历史

变更时间变更内容概要操作
2023-11-21OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    删除错误码:400
出参OpenAPI 返回结构发生变更
2023-08-18OpenAPI 错误码发生变更、OpenAPI 入参发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    删除错误码:400
入参OpenAPI 入参发生变更
    新增入参:Source
  • 本页导读 (1)
文档反馈