获取用户的脱敏配置

最近更新时间: 2026-10-10 00:08:39

1. 接口描述

接口请求域名: cds.api3.fincloud.tencent.com。

获取用户的脱敏配置

默认接口请求频率限制:20次/秒。

接口更新时间:2026-01-28 15:37:02。

接口既验签名又鉴权。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数。

参数名称 必选 允许NULL 类型 描述
Action 是 否 String 公共参数,本接口取值:DescribeSensitiveRules
Version 是 否 String 公共参数,本接口取值:2018-04-20
Region 是 否 String 公共参数,地域信息本接口不需要传递此参数。

3. 输出参数

参数名称 类型 描述
List Array of DesensitizationRule 脱敏规则列表
示例值:查看
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 错误码

以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码。

错误码 描述
InvalidParameter 参数错误。
InternalError 内部错误。
InvalidParameterValue 参数取值错误。

5. 示例

示例1 返回用户脱敏配置项列表

返回用户脱敏配置项列表

输入示例

POST / HTTP/1.1
Host: cds.api3.fincloud.tencent.com
Content-Type: application/json
X-TC-Action: DescribeSensitiveRules
<Common Parameters>

{}

输出示例

{
  "Response": {
    "List": [
      {
        "Algorithm": "Covering and desensitization",
        "Enable": 1,
        "Remark": "Keep the first two digits and the last two digits",
        "RuleId": 14,
        "RuleName": "Social Security Card"
      },
      {
        "Algorithm": "Covering and desensitization",
        "Enable": 1,
        "Remark": "Keep the first four digits and the last four digits",
        "RuleId": 4,
        "RuleName": "Credit Card"
      }
    ],
    "RequestId": "86aa233b-950a-466c-9551-b4eac1f46226"
  }
}