全部產品
Search
文件中心

Content Moderation:查詢業務情境

更新時間:Jul 06, 2024

本文介紹了如何通過DescribeUserBizTypes介面查詢已建立和自訂的業務情境列表,用於在後台管理業務情境資料。

使用說明

業務介面:DescribeUserBizTypes

您可以調用該介面查詢業務情境(BizType)。關於如何構造HTTP請求,請參見請求結構;您也可以直接選用已構造好的HTTP請求,更多資訊,請參見SDK概覽

計費資訊:該介面為免費介面。

QPS限制

本介面的單使用者QPS限制為10次/秒。超過限制,API調用會被限流,這可能會影響您的業務,請合理調用。

請求參數

無。

返回資料

名稱類型樣本值描述
BizTypeListJSONArray所有業務情境列表。JSON數組中的每個元素是一個結構體,關於具體結構描述,請參見BizType
BizTypeListImportJSONArray可匯入的業務情境列表。JSON數組中的每個元素是一個結構體,關於具體結構描述,請參見BizType
MessageStringOK請求資訊的響應訊息。
RequestIdStringADDBDECA-E1B2-4988-AE3B-956BF51573EC對應的請求ID。
表 1. BizType
名稱類型樣本值描述
SourceBizTypeStringdefault原始BizType,如無特殊需求請忽略該欄位。
BizTypeStringmohongtest2業務情境。
CiteTemplateBooleanfalse是否引入行業模板配置。取值:
  • true:表示引入了行業模板配置。
  • false:表示沒有引入行業模板配置。
IndustryInfoString社交-註冊資訊-頭像行業資訊。
SourceStringcustom業務情境來源。取值:
  • custom:您自訂的資訊。
  • system:Alibaba Content Security Service服務預設配置。
DescriptionString測試業務情境業務情境描述。

樣本

請求樣本

http(s)://green.cn-shanghai.aliyuncs.com/?
Action=DescribeUserBizTypes&ServiceModule=open_api
&<公用請求參數>

正常返回樣本

{
    "BizTypeList":[
        {
            "CiteTemplate":false,
            "BizType":"mohongtest2",
            "Source":"custom",
            "IndustryInfo":"",
      "Description": ""
        }
    ],
    "RequestId":"ADDBDECA-E1B2-4988-AE3B-956BF51573EC",
    "BizTypeListImport":[
        {
            "CiteTemplate":false,
            "BizType":"mohongtest2",
            "Source":"custom",
            "IndustryInfo":"",
      "Description": ""
        }
    ]
}