内容安全 - green CLI 命令参考

更新时间:
复制 MD 格式

本文列出内容安全 - green 在阿里云 CLI 中的可用命令,并提供各命令的语法和参数说明。

前提条件

  • 已安装阿里云 CLI。安装方法请参见安装/更新 CLI。

  • 执行需要身份认证的命令前,请确认已配置阿里云 CLI 凭证,且凭证对应的身份拥有所需权限。配置方法请参见配置与管理身份凭证。

地域与接入点

凭证配置中的默认地域可用 --region <regionId> 覆盖。

未指定接入地址时,CLI 按产品规则尝试解析,需要指定时可按地域和网络类型查看 Endpoint,再使用 --endpoint <endpoint>。

版本信息

属性

值

CLI 版本

3.5.4

API 版本

2022-03-02

可用命令

单击命令名称,查看命令描述、语法和参数说明。

命令详情

语法逐行列出命令参数:<类型> 是需要替换的值占位符,方括号表示可选参数,# 表示列表项序号;[options] 表示 CLI 通用选项,见“全局选项”。可选对象或列表内标为必填的字段,仅在提供该对象或列表项时必填。完整参数定义见各命令的参数说明。

DescribeFileModerationResult

命令描述

文档审核结果

语法

aliyun green DescribeFileModerationResult --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

文件检测增强版支持的服务

--ServiceParameters

String

否

审核服务需要的参数集,JSON字符串格式。
taskId:必填,待检测对象的URL,请确保该URL能通过公网访问到

示例

aliyun green DescribeFileModerationResult --region cn-hangzhou --Service document_detection --ServiceParameters '{\"taskId\":\"vi_f_hPgx9PFIQISdlfA888hOFG-1yJq8v\"}'

DescribeImageModerationResult

命令描述

获取图片审核增强版审核任务结果

语法

aliyun green DescribeImageModerationResult --version 2022-03-02
    [--ReqId <string>]
    [options]

参数

参数

类型

必填

说明

--ReqId

String

否

图片异步检测接口 ImageAsyncModeration 返回的 Data.ReqId 字段,用于查询本次异步图片检测任务的结果

示例

aliyun green DescribeImageModerationResult --region cn-hangzhou --ReqId 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'

DescribeImageResultExt

命令描述

图片审核增强版辅助信息API用于获取图片审核增强版API接口识别的更多辅助信息,包含图片文字识别结果、自定义图库命中信息等

语法

aliyun green DescribeImageResultExt --version 2022-03-02
    [--InfoType <string>]
    [--ReqId <string>]
    [options]

参数

参数

类型

必填

说明

--InfoType

String

否

需要获取的信息内容,多个值使用英文逗号隔开,取值:
customImage:自定义图库命中信息
textInImage:图片中文字信息

--ReqId

String

否

图片审核增强版API返回的requestId字段

示例

aliyun green DescribeImageResultExt --region cn-hangzhou --ReqId 638EDDC65C82AB39319A9F60 --InfoType 'customImage,textInImage'

DescribeMultimodalModerationResult

命令描述

查询异步多模态检测结果

语法

aliyun green DescribeMultimodalModerationResult --version 2022-03-02
    [--ReqId <string>]
    [options]

参数

参数

类型

必填

说明

--ReqId

String

否

多模态异步检测接口 MultimodalAsyncModeration 返回的 Data.ReqId 字段。本参数实际为必填项,未传入时接口返回 HTTP 400 错误「parameter is null(reqId)」

示例

aliyun green DescribeMultimodalModerationResult --region cn-hangzhou --ReqId 'AAAAA-BBBBB-AIXI-1314-CCCCC'

DescribeUploadToken

命令描述

查询上传token

语法

aliyun green DescribeUploadToken --version 2022-03-02
    [options]

参数

该命令没有专属参数。CLI 通用选项见“全局选项”。

示例

aliyun green DescribeUploadToken --region cn-hangzhou

DescribeUrlModerationResult

命令描述

根据 URL 异步检测返回的 ReqId查询检测结果

语法

aliyun green DescribeUrlModerationResult --version 2022-03-02
    [--ReqId <string>]
    [options]

参数

参数

类型

必填

说明

--ReqId

String

否

URL异步检测接口返回的ReqId字段

示例

aliyun green DescribeUrlModerationResult --region cn-hangzhou --ReqId 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C'

FileModeration

命令描述

文档检测

语法

aliyun green FileModeration --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

文件检测增强版支持的服务

--ServiceParameters

String

否

审核服务需要的参数集,JSON字符串格式。
url:必填,待检测对象的URL,请确保该URL能通过公网访问到。
dataId:选填,检测对象对应的数据ID

示例

aliyun green FileModeration --region cn-hangzhou --Service document_detection --ServiceParameters '{"url":"https://detect-obj.oss-cn-hangzhou.aliyuncs.com/sample/xxxx.pdf"}'

ImageAsyncModeration

命令描述

图片异步检测接口,异步检测任务不会实时返回检测结果,您需要通过callback或者轮询的方式获取检测结果。检测结果最长保留3天

语法

aliyun green ImageAsyncModeration --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

图片检测增强版支持的检测服务。取值:
baselineCheck:通用基线检测
baselineCheck_pro:通用基线检测_专业版
baselineCheck_cb:通用基线检测_海外版
tonalityImprove:内容治理检测
aigcCheck:AIGC图片检测
profilePhotoCheck:头像图片检测
advertisingCheck:营销素材检测
liveStreamCheck:视频\直播截图检测







--ServiceParameters

String

否

内容检测对象的相关参数集,JSON 字符串格式。当传入 imageUrl 时,该地址需可从内容安全服务后端通过公网直接访问,不支持需要鉴权的内网地址、带访问限制的私有链接或临时失效的地址,否则会返回 download error(imageUrl) 错误

示例

aliyun green ImageAsyncModeration --region cn-hangzhou --Service baselineCheck --ServiceParameters '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img123****"}'

ImageBatchModeration

命令描述

图片批量调用

语法

aliyun green ImageBatchModeration --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

图片审核增强版支持的检测类型,多个使用英文逗号隔开。取值:
baselineCheck:通用基线检测
baselineCheck_pro:通用基线检测_专业版
tonalityImprove:内容治理检测
aigcCheck:AIGC图片检测



--ServiceParameters

String

否

内容检测对象的相关参数集

示例

aliyun green ImageBatchModeration --region cn-hangzhou --Service 'baselineCheck,tonalityImprove' --ServiceParameters '{
        "imageUrl": "https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png",
        "dataId": "img123****"
    }'

ImageModeration

命令描述

图片审核

语法

aliyun green ImageModeration --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

图片审核增强版支持的检测类型。取值:
baselineCheck:通用基线检测
baselineCheck_pro:通用基线检测_专业版
baselineCheck_cb:通用基线检测_海外版
tonalityImprove:内容治理检测
aigcCheck:AIGC图片检测
aigcViolationDetection:AIGC图片侵权检测
aigcDetector:图片是否AIGC生成判定
profilePhotoCheck:头像图片检测
postImageCheck:帖子评论图片检测
advertisingCheck:营销素材检测
liveStreamCheck:视频/直播截图检测
generalOcr:通用图文OCR
generalRecognition:图片万物识别
postImageCheckByVL:大小模型融合图片审核服务
postImageCheckByVL_cb:大小模型融合图片审核服务_出海版
baselineCheckByVL:通用图片审核大模型服务















  • 约束:

    • 允许值:["advertisingCheck", "aigcCheck", "aigcDetector", "aigcViolationDetection", "baselineCheck", "baselineCheckByVL", "baselineCheck_cb", "baselineCheck_pro", "generalOcr", "generalRecognition", "liveStreamCheck", "postImageCheck", "postImageCheckByVL", "postImageCheckByVL_cb", "profilePhotoCheck", "tonalityImprove"]

--ServiceParameters

String

否

内容检测对象的相关参数集。JSON字符串格式。
imageUrl:待检测对象的URL,必填。
dataId:检测对象对应的数据ID,可选。
referer:referer请求头,用于防盗链等场景,可选


示例

aliyun green ImageModeration --region cn-hangzhou --Service baselineCheck --ServiceParameters '{"imageUrl":"https://img.alicdn.com/tfs/TB1U4r9AeH2gK0jSZJnXXaT1FXa-2880-480.png","dataId":"img1234567"}'

ManualCallback

命令描述

内容安全人审结果渠道回调接口

语法

aliyun green ManualCallback --version 2022-03-02
    [--Channel <string>]
    [--Checksum <string>]
    [--Code <string>]
    [--Data <string>]
    [--Msg <string>]
    [--ReqId <string>]
    [options]

参数

参数

类型

必填

说明

--Channel

String

否

渠道字段

  • 约束:

    • 允许值:["ant"]

--Checksum

String

否

校验码

--Code

String

否

code码

--Data

String

否

返回数据

--Msg

String

否

提示信息

--ReqId

String

否

平台请求id,用于辅助排查问题

示例

aliyun green ManualCallback --region cn-hangzhou --Msg OK --Checksum abc --Channel ant --ReqId 'B0963D30-BAB4-562F-9ED0-7A23AEC51C7C' --Data '{'"'"'Result'"'"': [{'"'"'Confidence'"'"': 100.0, '"'"'CustomizedHit'"'"': [{'"'"'KeyWords'"'"': u'"'"'\u4fdd\u969c,\u6700\u5927,\u9ad8\u7ea7'"'"', '"'"'LibName'"'"': u'"'"'\u4f18\u8def\u654f\u611f\u8bcd'"'"'}], '"'"'Label'"'"': '"'"'customized'"'"'}]}' --Code 200

ManualModeration

命令描述

内容安全人审提交请求接口

语法

aliyun green ManualModeration --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

服务

--ServiceParameters

String

否

审核服务需要的参数集,JSON字符串格式。
url:待检测对象的URL,请确保该URL能通过公网访问到。
dataId:选填,检测对象对应的数据ID

示例

aliyun green ManualModeration --region cn-hangzhou --Service imageManualCheck --ServiceParameters '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}'

ManualModerationResult

命令描述

获取人审结果

语法

aliyun green ManualModerationResult --version 2022-03-02
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--ServiceParameters

String

否

服务需要的参数集,JSON字符串格式。
taskId:提交任务时返回的任务id

示例

aliyun green ManualModerationResult --region cn-hangzhou --ServiceParameters '\"taskId\":\"m_tx_8oaprwnGUKuuLYNwV21JRf-VQjzQX3\"'

MultiModalAgent

命令描述

多模态AgentAPI同步检测接口

语法

aliyun green MultiModalAgent --version 2022-03-02
    [--AppID <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--AppID

String

否

白板应用唯一标识符。获取白板应用 ID,请参见https://help.aliyun.com/document_detail/204234.html。本参数实际为必填项,未提供时 API 返回 408 错误「no permission(service is invalid:null)」

--ServiceParameters

String

否

审核服务需要的参数集。taskId,即要查询的检测任务的taskId,每次支持输入一个taskId

示例

aliyun green MultiModalAgent --region cn-hangzhou --AppID txt_check_agent_01 --ServiceParameters '{"content":"测试文本","dataId":"img1234567"}'

MultiModalAgentSSE

命令描述

多模态AgentAPI同步检测接口

语法

aliyun green MultiModalAgentSSE --version 2022-03-02
    [--AppID <string>]
    [--ServiceParameters <string>]
    [--Stream <string>]
    [options]

参数

参数

类型

必填

说明

--AppID

String

否

白板应用唯一标识符。获取白板应用ID,请参见https://help.aliyun.com/document_detail/204234.html

--ServiceParameters

String

否

审核服务需要的参数集,JSON字符串格式。文本内容入参是content(String),自定义数据ID DataId(String),缓存类型CacheType(String,可选值ephemeral)

--Stream

String

否

是否使用流式输出

示例

aliyun green MultiModalAgentSSE --region cn-hangzhou --AppID txt_check_pro_agent_01 --Stream true --ServiceParameters '{
    "content": "这里待审核的文本内容",
    "DataId": "data123***",
    "CacheType":"ephemeral"
    }'

MultiModalGuard

命令描述

AI安全护栏多模态同步检测接口,包括内容合规检测、敏感内容检测、提示词攻击检测、恶意文件检测、恶意URL检测等全方位检测能力

语法

aliyun green MultiModalGuard --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

审核服务分类,包括:
query_security_check_pro:AI输入内容安全检测_pro版
response_security_check_pro:AI生成内容安全检测_pro版
img_query_security_check:AIGC输入图片安全检测
img_response_security_check:AIGC输出图片安全检测
text_img_mix_guard:多模态(文本+图片)混合安全检测
file_security_sync_check:AIGC输入或输出文件安全检测
text_file_sec_sync_check:多模态(文本+文件)实时安全检测






--ServiceParameters

String

否

审核服务需要的参数集,JSON字符串格式。文本内容入参是content(String),图片内容入参是imageUrls(JSONArray),文件内容入参是fileUrls(JSONArray),

示例

aliyun green MultiModalGuard --region cn-hangzhou --Service query_security_check_pro --ServiceParameters='- 文本:
{
  "content": "test"
}

- 图片:
{
  "imageUrls": ["https://example.com/image.png"]
}

- 文件:
{
  "fileUrls": ["https://example.com/file.pdf"]
}'

MultiModalGuardAsync

命令描述

AI安全护栏多模态异步检测接口,支持音频、视频模态,包括内容合规检测、敏感内容检测、提示词攻击检测、恶意文件检测、恶意URL检测等全方位检测能力

语法

aliyun green MultiModalGuardAsync --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

审核服务类型,包括:audio_security_check、video_security_check

--ServiceParameters

String

否

审核服务需要的参数集

示例

aliyun green MultiModalGuardAsync --region cn-hangzhou --Service audio_security_check --ServiceParameters '{"url": "https://testxxx.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}'

MultiModalGuardAsyncResult

命令描述

AI安全护栏多模态异步结果查询接口,支持音频、视频模态

语法

aliyun green MultiModalGuardAsyncResult --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

审核服务service

--ServiceParameters

String

否

审核服务需要的参数集。JSON字符串格式

示例

aliyun green MultiModalGuardAsyncResult --region cn-hangzhou --Service audio_security_check --ServiceParameters '{
  "taskId": "au_f_xxxxx"
}'

MultiModalGuardForBase64

命令描述

多模态同步检测接口,支持图片base64字符串

语法

aliyun green MultiModalGuardForBase64 --version 2022-03-02
    [--FileBase64Str <string>]
    [--ImageBase64Str <string>]
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--FileBase64Str

String

否

文档的base64字符串

--ImageBase64Str

String

否

图片的base64字符串

--Service

String

否

Service

--ServiceParameters

String

否

Service参数

示例

aliyun green MultiModalGuardForBase64 --region cn-hangzhou --FileBase64Str '{base64}' --ImageBase64Str '{base64}' --Service query_security_check --ServiceParameters '{"content":"test"}'

MultiModalGuardWs

命令描述

支持websocket协议的AI安全护栏多模态检测接口,包括内容合规检测、敏感内容检测、提示词攻击检测、恶意文件检测、恶意URL检测等全方位检测能力

语法

aliyun green MultiModalGuardWs --version 2022-03-02
    [--ModelType <string>]
    [--ProtocolType <string>]
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--ModelType

String

否

模型类型
LLM

--ProtocolType

String

否

协议类型
OpenAI
DashScope
Anthropic


--Service

String

否

审核服务分类,包括:
query_security_check_pro:AI输入内容安全检测_pro版
response_security_check_pro:AI生成内容安全检测_pro版
img_query_security_check:AIGC输入图片安全检测
img_response_security_check:AIGC输出图片安全检测
text_img_mix_guard:多模态(文本+图片)混合安全检测
file_security_sync_check:AIGC输入或输出文件安全检测
text_file_sec_sync_check:多模态(文本+文件)实时安全检测






--ServiceParameters

String

否

审核服务需要的参数集,JSON 字符串格式。不同 Service 类型对应不同入参字段:文本检测使用 content(String,待检测的文本内容);图片检测使用 imageUrls(JSONArray,待检测图片 URL 列表);文件检测使用 fileUrls(JSONArray,待检测文件 URL 列表)

示例

aliyun green MultiModalGuardWs --region cn-hangzhou --ProtocolType DashScope --Service query_security_check_pro --ModelType LLM --ServiceParameters='- 文本:
{
  "content": "test"
}

- 图片:
{
  "imageUrls": ["https://example.com/image.png"]
}

- 文件:
{
  "fileUrls": ["https://example.com/file.pdf"]
}'

MultimodalAsyncModeration

命令描述

多模态-异步检测

语法

aliyun green MultimodalAsyncModeration --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

审核服务类型。取值:
post_text_image_detection:帖子图文多模态检测
profile_text_image_detection:头像昵称图文多模态检测

--ServiceParameters

String

否

审核服务需要的参数集。JSON字符串格式

示例

aliyun green MultimodalAsyncModeration --region cn-hangzhou --Service post_text_image_detection --ServiceParameters '{"mainData":{"mainContent":"testMainContent","mainTitle":"testMainTitle","mainImages":[{"imageUrl":"https://xxxx.com/001.jpg"}]}}'

TextModeration

命令描述

采用动态策略和模型强化变异对抗性,提供多种业务场景的审核服务,识别出多种违规风险

语法

aliyun green TextModeration --version 2022-03-02
    --Service <string>
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

是

审核服务类型,包括:
nickname_detection:用户昵称
chat_detection:聊天互动
comment_detection:动态评论
pgc_detection:教学物料PGC



  • 约束:

    • 允许值:["ad_compliance_detection", "ai_art_detection", "chat_detection", "comment_detection", "comment_multilingual_pro", "nickname_detection", "pgc_detection"]

--ServiceParameters

String

否

审核服务需要的参数集。JSON字符串格式,关于每个字符串的描述

示例

aliyun green TextModeration --region cn-hangzhou --Service nickname_detection --ServiceParameters '{"content":"地图还是黑的"}'

TextModerationPlus

命令描述

文本审核增强版升级PLUS服务,面向大语言模型的输入指令和生成文字分别提供审核服务,特定的模型输入指令支持检索标准回答,同时开放审核标签的开启和关闭功能

语法

aliyun green TextModerationPlus --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

审核服务类型

  • 约束:

    • 允许值:["ad_compliance_detection_pro", "aigc_moderation_byllm", "chat_detection_pro", "comment_detection_pro", "llm_query_moderation", "llm_response_moderation", "nickname_detection_pro", "ugc_moderation_byllm"]

--ServiceParameters

String

否

审核服务需要的参数集。JSON字符串格式

示例

aliyun green TextModerationPlus --region cn-hangzhou --Service ugc_moderation_byllm --ServiceParameters '{
        "content": "测试内容"
    }'

UrlAsyncModeration

命令描述

URL异步检测服务,识别URL链接是否存在欺诈、色情、赌博等风险,守护平台内容生态

语法

aliyun green UrlAsyncModeration --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

服务名称:URL风险链接检测

--ServiceParameters

String

否

内容检测对象的相关参数集,JSON字符串格式,请参见ServiceParameters说明

示例

aliyun green UrlAsyncModeration --region cn-hangzhou --Service 'URL风险链接检测:url_detection_pro' --ServiceParameters '{
        "url": "https://help.aliyun.com/",
        "dataId": "url123******"
}'

VideoModeration

命令描述

内容安全视频审核增强版,帮助您检测视频文件中的风险或违规内容。本接口为检测任务提交接口

语法

aliyun green VideoModeration --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

视频审核ServiceCode

  • 约束:

    • 允许值:["liveStreamDetection", "liveStreamDetection_cb", "videoDetection", "videoDetection_cb"]

--ServiceParameters

String

否

审核服务需要的参数集,JSON字符串格式。
url:必填,待检测对象的URL,请确保该URL能通过公网访问到。
dataId:选填,检测对象对应的数据ID。
更多信息,请参见ServiceParameter (https://help.aliyun.com/document_detail/2505810.html)


示例

aliyun green VideoModeration --region cn-hangzhou --Service videoDetection --ServiceParameters '{"url": "https://talesofai.oss-cn-shanghai.aliyuncs.com/xxx.mp4", "dataId": "data1234"}'

VideoModerationCancel

命令描述

取消视频直播审核任务

语法

aliyun green VideoModerationCancel --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

审核服务类型

  • 约束:

    • 允许值:["liveStreamDetection", "liveStreamDetectionByVL", "liveStreamDetection_cb", "videoDetection", "videoDetection_cb"]

--ServiceParameters

String

否

待取消任务TaskId

示例

aliyun green VideoModerationCancel --region cn-hangzhou --Service videoDetection --ServiceParameters '{\"taskId\":\"vi_s_4O9gp7GfNQdx9GOqdekFmk-1z2RJT\"}'

VideoModerationResult

命令描述

获取视频审核增强版审核任务结果

语法

aliyun green VideoModerationResult --version 2022-03-02
    [--Service <string>]
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

否

视频审核ServiceCode

  • 约束:

    • 允许值:["liveStreamDetection", "liveStreamDetection_cb", "videoDetection", "videoDetection_cb"]

--ServiceParameters

String

否

审核服务需要的参数集。taskId,即要查询的检测任务的taskId,每次支持输入一个taskId

示例

aliyun green VideoModerationResult --region cn-hangzhou --Service videoDetection --ServiceParameters '{"taskId":"au_f_8PoWiZKoLbczp5HRn69VdT-1y8@U5"}'

VoiceModeration

命令描述

提交语音审核增强版检测任务

语法

aliyun green VoiceModeration --version 2022-03-02
    --Service <string>
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

是

语音审核ServiceCode

--ServiceParameters

String

否

审核服务需要的参数集,JSON字符串格式。
url:必填,待检测对象的URL,请确保该URL能通过公网访问到。
dataId:选填,检测对象对应的数据ID。
更多信息,请参见ServiceParameter


示例

aliyun green VoiceModeration --region cn-hangzhou --Service audio_media_detection --ServiceParameters '{"url": "http://aliyundoc.com/test.flv", "dataId": "data1234"}'

VoiceModerationCancel

命令描述

语音审核增强版取消任务接口

语法

aliyun green VoiceModerationCancel --version 2022-03-02
    --Service <string>
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

是

审核服务类型,包括:
nickname_detection:用户昵称
待定

--ServiceParameters

String

否

待取消任务TaskId

示例

aliyun green VoiceModerationCancel --region cn-hangzhou --Service nickname_detection --ServiceParameters '{
        "taskId": "xxxxx-xxxx"
    }'

VoiceModerationResult

命令描述

语音审核增强版检测结果获取接口

语法

aliyun green VoiceModerationResult --version 2022-03-02
    --Service <string>
    [--ServiceParameters <string>]
    [options]

参数

参数

类型

必填

说明

--Service

String

是

审核服务类型,包括:
nickname_detection:用户昵称
待定

--ServiceParameters

String

否

网关向后端服务发送API请求的参数描述。
更多信息,请参见https://help.aliyun.com/document_detail/43988.html

示例

aliyun green VoiceModerationResult --region cn-hangzhou --Service nickname_detection --ServiceParameters '{"taskId":"AAAAA-BBBBB"}'

全局选项

以下为 CLI 通用选项,各选项的适用范围以说明为准。

选项

说明

--cli-dry-run

使用 --cli-dry-run 在执行校验后以人类可读格式输出请求详情,跳过实际运行

--cli-input-json

使用 --cli-input-json foo.json 从 JSON 对象读取产品 API 参数,命令行显式参数覆盖文件值

--cli-output

设置宿主 CLI Help、本地错误和更新检查的输出格式(json)

--cli-query

使用 --cli-query <jmespath> 通过 JMESPath 表达式过滤输出结果

--cli-sign-version

短横线命令的 OpenAPI 签名版本:当前仅支持 v4;设为空值可清空并恢复默认签名(aliyun configure set 可写入 Profile)

--language

使用 --language [en|zh] 来指定语言

--output -o

使用 --output cols=Field1,Field1 [rows=jmesPath] 使用表格方式打印输出

--profile -p

使用 --profile <profileName> 指定操作的配置集

--region

使用 --region <regionId> 来指定访问大区

--version --api-version

使用 --version <YYYY-MM-DD> 来指定访问的API版本

--yes -y

跳过安全策略的确认提示(用于非交互式/Agent 场景)