调用BatchFuzzyMatchDomainSensitiveWord批量检查域名是否包含敏感词。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | BatchFuzzyMatchDomainSensitiveWord |
系统规定参数。取值:BatchFuzzyMatchDomainSensitiveWord。 |
Keyword | String | 是 | example.com,aliyundoc.com |
域名关键字,多个域名关键字之间用英文逗号(,)分隔。 |
Lang | String | 否 | en |
接口返回错误信息语言。取值:
默认为en。 |
UserClientIp | String | 否 | 127.0.0.1 |
用户IP。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | C560A803-B975-481D-A66B-A4395EA863A1 |
请求ID。 |
SensitiveWordMatchResultList | Array of SensitiveWordMatchResult |
批量匹配结果列表。 |
|
SensitiveWordMatchResult | |||
Exist | Boolean | true |
域名是否包含敏感词。取值:
|
Keyword | String | example.com,aliyundoc.com |
传入的域名关键字。 |
MatchedSentiveWords | Array of MatchedSensitiveWord |
匹配结果详情。当Exist参数的取值为false时,匹配结果为空。 |
|
MatchedSensitiveWord | |||
Word | String | xxx |
匹配到的敏感词。 |
示例
请求示例
http(s)://[Endpoint]/?Action=BatchFuzzyMatchDomainSensitiveWord
&Keyword=example.com,aliyundoc.com
&<公共请求参数>
正常返回示例
XML
格式
<RequestId>C560A803-B975-481D-A66B-A4395EA863A1</RequestId>
<SensitiveWordMatchResultList>
<SensitiveWordMatchResult>
<Exist>true</Exist>
<Keyword>example.com</Keyword>
<MatchedSentiveWords>
<MatchedSensitiveWord>
<Word>xxx</Word>
</MatchedSensitiveWord>
</MatchedSentiveWords>
</SensitiveWordMatchResult>
<SensitiveWordMatchResult>
<Exist>true</Exist>
<Keyword>aliyundoc.com</Keyword>
<MatchedSentiveWords>
<MatchedSensitiveWord>
<Word>xxx</Word>
</MatchedSensitiveWord>
</MatchedSentiveWords>
</SensitiveWordMatchResult>
</SensitiveWordMatchResultList>
JSON
格式
{
"RequestId": "C560A803-B975-481D-A66B-A4395EA863A1",
"SensitiveWordMatchResultList": {
"SensitiveWordMatchResult": [
{
"Exist": true,
"Keyword": "example.com",
"MatchedSentiveWords": {
"MatchedSensitiveWord": [
{
"Word": "xxx"
}
]
}
},
{
"Exist": true,
"Keyword": "aliyundoc.com",
"MatchedSentiveWords": {
"MatchedSensitiveWord": [
{
"Word": "xxx"
}
]
}
}
]
}
}
错误码
访问错误中心查看更多错误码。