文档

QueryRecognizeDataByRuleType

更新时间:

调用QueryRecognizeDataByRuleType接口获取数据保护伞的敏感字段识别方式列表。

调试

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

请求参数

名称

类型

是否必选

示例值

描述

Action String QueryRecognizeDataByRuleType

系统规定参数。取值:QueryRecognizeDataByRuleType

RecognizeRulesType String 2

识别规则类型。可调用QueryRecognizeRulesType接口获取规则的类型。

  • 1:正则表达式
  • 2:内置模型
  • 3:样本库
  • 4:自生成模型
TenantId String 10241024

租户ID。您可登录DataWorks控制台,进入数据开发(DataStudio)页面,单击右上方当前登录用户名称,选择菜单 > 用户信息,获取租户ID。

返回数据

名称

类型

示例值

描述

ErrorCode String 9990030003

错误码。

ErrorMessage String 缺少参数

错误信息。

Success Boolean true

调用是否成功。

  • true:成功。
  • false:失败。
Data Any [{"custom": false, "name": "EducationDegree", "localeName": "EducationDegree", "templateJsonStr": "{"_clazz":"com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.EducationDegreeCond"}", "desc": ""}]

返回数据:JSON格式。

HttpStatusCode Integer 200

HTTP状态码。

RequestId String 10000001

请求的ID。用于定位日志,排查问题。

示例

请求示例

http(s)://[Endpoint]/?Action=QueryRecognizeDataByRuleType
&RecognizeRulesType=2
&TenantId=10241024
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<QueryRecognizeDataByRuleTypeResponse>
    <ErrorCode>9990030003</ErrorCode>
    <ErrorMessage>缺少参数</ErrorMessage>
    <Success>true</Success>
    <Data>[{"custom": false,       "name": "EducationDegree",       "localeName": "EducationDegree",       "templateJsonStr": "{&amp;quot;_clazz&amp;quot;:&amp;quot;com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.EducationDegreeCond&amp;quot;}",       "desc": ""}]</Data>
    <HttpStatusCode>200</HttpStatusCode>
    <RequestId>10000001</RequestId>
</QueryRecognizeDataByRuleTypeResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "ErrorCode" : "9990030003",
  "ErrorMessage" : "缺少参数",
  "Success" : true,
  "Data" : "[{\"custom\": false,       \"name\": \"EducationDegree\",       \"localeName\": \"EducationDegree\",       \"templateJsonStr\": \"{&quot;_clazz&quot;:&quot;com.alipay.dsgclient.sdk.dsg.fastscan.engine.cond.EducationDegreeCond&quot;}\",       \"desc\": \"\"}]",
  "HttpStatusCode" : 200,
  "RequestId" : "10000001"
}

错误码

HttpCode

错误码

错误信息

描述

400 BADPARAMETERS Parameters are missing or in the wrong format. 缺少参数

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

  • 本页导读
文档反馈