云安全中心(响应编排) - sophonsoar CLI 命令参考
本文列出云安全中心(响应编排) - sophonsoar 在阿里云 CLI 中的可用命令,并提供各命令的语法和参数说明。
前提条件
地域与接入点
凭证配置中的默认地域可用 --region <regionId> 覆盖。
未指定接入地址时,CLI 按产品规则尝试解析,需要指定时可按地域和网络类型查看 Endpoint,再使用 --endpoint <endpoint>。
版本信息
属性 | 值 |
CLI 版本 | 3.5.4 |
API 版本 | 2022-07-28, 2025-09-03 |
不同版本的命令和参数通过页签分别展示。执行命令时,请使用对应页签中的语法。
可用命令
单击命令名称,查看命令描述、语法和参数说明。
2025-09-03
响应编排
命令 | 说明 |
创建组件对应的资产 | |
创建剧本 | |
删除组件资产 | |
用于删除指定的自定义剧本 | |
执行剧本中的组件,并输出组件的运行结果 | |
获取剧本详情 | |
获取组件对应的资产列表 | |
查询剧本列表 | |
更新组件资产 | |
更新剧本 |
其他
命令 | 说明 |
停止执行剧本及其子剧本 | |
获取组件列表 |
2022-07-28
剧本编排
命令 | 说明 |
用于比较发布的两个版本的剧本配置信息 | |
转换剧本流程图配置格式,由xml转为x6。用于兼容历史数据,早期版本中配置剧本使用的xml格式,之后改为了x6格式 | |
剧本复制 | |
用于创建一个初始化的剧本 | |
用于调试运行剧本 | |
用于删除组件配置的资产信息 | |
用于删除指定的自定义剧本 | |
用于获取组件的资产元信息,即资产信息是由哪些字段组成的 | |
用于获取某一组件的资产信息列表 | |
用于获取用户可使用的普通组件的列表 | |
用于获取用户可以使用的预定义组件列表 | |
用于获取组件的JS文件,组件会以返回的JS文件来进行页面的渲染 | |
获取去重后的剧本发布的版本信息列表 | |
用于获取产品需要的一些枚举信息 | |
用于配置自动响应计划时,获取可执行的剧本列表 | |
用于获取产品全局的,通用的配置信息 | |
用于根据剧本最新一次的执行记录,动态生成剧本各节点的输出结构信息 | |
用于编排剧本时,组件输入的可引用路径 | |
用于获取剧本的xml配置信息 | |
用于获取剧本的输入参数与输出参数的配置信息 | |
获取某一剧本的元信息,包括名字、描述、运行次数、失败率等 | |
用于获取组件输出的历史数据 | |
用于获取响应编排产品的统计信息,包含剧本数量、启用数量等内容 | |
用于获取剧本发布的线上版本的信息列表 | |
用于获取剧本列表 | |
用于获取OpenAPI的接口详情 | |
用于获取剧本任务中,某一组件执行动作时,输出的数据列表 | |
当用户执行剧本任务后,通过该接口可获取组件动作的输入数据与输出数据 | |
用于获取剧本的执行记录列表 | |
用于获取剧本的一次运行过程中,组件的执行记录列表 | |
在提交pyhton脚本的任务后,通过返回的requestUuid来获取运行日志 | |
当一个组件需要配置资产时,该接口用户修改组件的资产信息 | |
用于修改剧本的配置信息 | |
用于修改剧本的输入参数与输出参数 | |
用于把剧本配置发布线上,发布后,剧本会以新的逻辑来运行 | |
用于一次性获取所有的剧本列表 | |
用于回滚剧本到指定的版本,同时可以指定回滚时是否发布该版本 | |
用于提交一段python3的代码片段并执行,只能用于数据处理 | |
用于触发已启用的自定义剧本或预定义剧本 | |
用于触发运行剧本或响应命令 | |
校验剧本的配置是否正确,编排的逻辑是否合理 | |
校验Python代码片段的语法是否正确 |
处置任务
命令 | 说明 |
获取统计信息 | |
通过实体UUID查询关联的处置任务数 | |
用于获取处置任务的列表信息 | |
用于获取处置实体的命令 | |
用户在使用响应编排的功能进行事件处置时,处置中心会生成相应的处置任务,该接口用于对生成的处置任务执行后续的解除封禁、重试封禁、解除隔离等动作 |
其他
命令 | 说明 |
获取阿里云产品的分组列表信息 | |
查询通知消息模版列表 | |
获取产品接口的详情 | |
获取产品的接口列表 | |
查询云厂商OpenApi列表 | |
执行通知组件-email发送消息 | |
执行通知组件-消息中心发送消息 | |
执行通知组件-webhook发送消息 |
命令详情
语法逐行列出命令参数:<类型> 是需要替换的值占位符,方括号表示可选参数,# 表示列表项序号;[options] 表示 CLI 通用选项,见“全局选项”。可选对象或列表内标为必填的字段,仅在提供该对象或列表项时必填。完整参数定义见各命令的参数说明。
AbortPlaybookExecution
API 版本:2025-09-03
命令描述
停止执行剧本及其子剧本
语法
aliyun sophonsoar AbortPlaybookExecution --version 2025-09-03
[--Lang <string>]
--PlaybookExecutionUuid <string>
--PlaybookUuid <string>
[--RoleFor <int>]
[--RoleType <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 接收消息的语言类型。取值: |
--PlaybookExecutionUuid | String | 是 | 剧本执行ID |
--PlaybookUuid | String | 是 | 剧本的标识。实际取值为描述性标识字符串(例如system_aliyun_firewall_process_book),可通过ListPlaybooks接口获取 |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型。取值: |
ComparePlaybooks
API 版本:2022-07-28
命令描述
用于比较发布的两个版本的剧本配置信息
语法
aliyun sophonsoar ComparePlaybooks --version 2022-07-28
[--Lang <string>]
--NewPlaybookReleaseId <int>
--OldPlaybookReleaseId <int>
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
--NewPlaybookReleaseId | Integer | 是 | 用于比较的第二个发布版本UUID。 |
--OldPlaybookReleaseId | Integer | 是 | 用于比较的第一个发布版本UUID。 |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar ComparePlaybooks --region cn-hangzhou --PlaybookUuid 'f916b93e-e814-459f-9662-xxxxx' --OldPlaybookReleaseId 1 --NewPlaybookReleaseId 1
ConvertPlaybook
API 版本:2022-07-28
命令描述
转换剧本流程图配置格式,由xml转为x6。用于兼容历史数据,早期版本中配置剧本使用的xml格式,之后改为了x6格式
语法
aliyun sophonsoar ConvertPlaybook --version 2022-07-28
[--Lang <string>]
[--RoleFor <int>]
[--RoleType <string>]
--Taskflow <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型。取值: |
--Taskflow | String | 是 | 剧本编排的XML配置信息 |
示例
aliyun sophonsoar ConvertPlaybook --region cn-hangzhou --Taskflow '<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<bpmn:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" id=\"Definitions_1\" targetNamespace=\"http://bpmn.io/schema/bpmn\">
<bpmn:process id=\"Process_1\" isExecutable=\"false\">
<bpmn:startEvent id=\"StartEvent_1\" />
</bpmn:process>
<bpmndi:BPMNDiagram id=\"BPMNDiagram_1\">
<bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Process_1\">
<bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_2\" bpmnElement=\"StartEvent_1\">
<dc:Bounds x=\"173\" y=\"102\" width=\"36\" height=\"36\" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
'
CopyPlaybook
API 版本:2022-07-28
命令描述
剧本复制
语法
aliyun sophonsoar CopyPlaybook --version 2022-07-28
[--Description <string>]
--DisplayName <string>
[--Lang <string>]
[--ReleaseVersion <string>]
[--RoleFor <int>]
[--RoleType <string>]
--SourcePlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Description | String | 否 | 剧本的描述 |
--DisplayName | String | 是 | 剧本展示名称 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--ReleaseVersion | String | 否 | 要复制剧本的发布版本,默认为0。 取值: |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型。取值: |
--SourcePlaybookUuid | String | 是 | 要复制的剧本UUID。 |
示例
aliyun sophonsoar CopyPlaybook --region cn-hangzhou --SourcePlaybookUuid '94bc318c-****-4cba-****-801ccb0d739f' --DisplayName playbook_xxx
CreateComponentAsset
API 版本:2025-09-03
命令描述
创建组件对应的资产
语法
aliyun sophonsoar CreateComponentAsset --version 2025-09-03
--ComponentAssetName <string>
--ComponentAssetValues <array>
--ComponentName <string>
[--Lang <string>]
[--RoleFor <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ComponentAssetName | String | 是 | 资产名称 |
--ComponentAssetValues | List | 是 | 资产的配置信息 |
--ComponentName | String | 是 | 组件的名称 |
--Lang | String | 否 | 接收消息的语言类型。取值: |
--RoleFor | Integer | 否 | 资源目录成员账号ID |
CreatePlaybook
2025-09-03
命令描述
创建剧本
语法
aliyun sophonsoar CreatePlaybook --version 2025-09-03
[--Lang <string>]
[--PlaybookDescription <string>]
[--PlaybookInputConfigs <array>]
--PlaybookName <string>
[--PlaybookOutputConfigs <array>]
[--PlaybookParamType <string>]
[--PlaybookTaskFlow <string>]
[--RoleFor <int>]
[--SrcPlaybookUuid <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 接收消息的语言类型。取值: |
--PlaybookDescription | String | 否 | 剧本描述
|
--PlaybookInputConfigs | List | 否 | 剧本的输入参数配置 |
--PlaybookName | String | 是 | 剧本的名称,不包含特殊字符
|
--PlaybookOutputConfigs | List | 否 | 剧本的输出参数配置 |
--PlaybookParamType | String | 否 | 剧本的参数类型,取值如下: |
--PlaybookTaskFlow | String | 否 | 剧本的工作流 |
--RoleFor | Integer | 否 | 资源目录成员账号ID |
--SrcPlaybookUuid | String | 否 | 复制场景下需要填入的源剧本的UUID,该参数存在值时,除剧本名称和剧本描述外其余参数无效 |
2022-07-28
命令描述
用于创建一个初始化的剧本
语法
aliyun sophonsoar CreatePlaybook --version 2022-07-28
[--Description <string>]
--DisplayName <string>
[--InputParams <string>]
[--Lang <string>]
[--OutputParams <string>]
[--TaskflowType <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Description | String | 否 | 剧本的描述信息 |
--DisplayName | String | 是 | 剧本的名称 |
--InputParams | String | 否 | 剧本输入配置 |
--Lang | String | 否 | 接收消息的语言类型。取值: |
--OutputParams | String | 否 | 剧本输出配置 |
--TaskflowType | String | 否 | 剧本的配置格式。 |
示例
aliyun sophonsoar CreatePlaybook --region cn-hangzhou --DisplayName test09
DebugPlaybook
API 版本:2022-07-28
命令描述
用于调试运行剧本
语法
aliyun sophonsoar DebugPlaybook --version 2022-07-28
[--Lang <string>]
--PlaybookUuid <string>
[--Record <string>]
--Taskflow <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
--Record | String | 否 | 调试剧本时的输入参数,由用户自定义 |
--Taskflow | String | 是 | 剧本的xml配置。 |
示例
aliyun sophonsoar DebugPlaybook --region cn-hangzhou --PlaybookUuid 'f916b93e-e814-459f-9662-xxxxx' --Taskflow '<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>
'
DeleteComponentAsset
2025-09-03
命令描述
删除组件资产
语法
aliyun sophonsoar DeleteComponentAsset --version 2025-09-03
--ComponentAssetUuid <string>
[--Lang <string>]
[--RoleFor <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ComponentAssetUuid | String | 是 | 资产UUID |
--Lang | String | 否 | 设置请求和接收消息的语言类型,默认为zh。取值: |
--RoleFor | Integer | 否 | 资源目录成员账号ID |
2022-07-28
命令描述
用于删除组件配置的资产信息
语法
aliyun sophonsoar DeleteComponentAsset --version 2022-07-28
--AssetId <int>
[--Lang <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--AssetId | Integer | 是 | 组件的资产ID。 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
示例
aliyun sophonsoar DeleteComponentAsset --region cn-hangzhou --AssetId 10
DeletePlaybook
2025-09-03
命令描述
用于删除指定的自定义剧本
语法
aliyun sophonsoar DeletePlaybook --version 2025-09-03
[--Lang <string>]
--PlaybookUuid <string>
[--RoleFor <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--PlaybookUuid | String | 是 | 剧本的UUID。仅user类型(自定义)剧本可删除,preset(系统预置)剧本不可删除;可通过ListPlaybooks(PlaybookType=user)获取可删除剧本列表 |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
2022-07-28
命令描述
用于删除指定的自定义剧本
语法
aliyun sophonsoar DeletePlaybook --version 2022-07-28
[--Lang <string>]
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar DeletePlaybook --region cn-hangzhou --PlaybookUuid 'e99dab31-499b-4307-9248-xxxxxx'
DescribeComponentAssetForm
API 版本:2022-07-28
命令描述
用于获取组件的资产元信息,即资产信息是由哪些字段组成的
语法
aliyun sophonsoar DescribeComponentAssetForm --version 2022-07-28
--ComponentName <string>
[--Lang <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ComponentName | String | 是 | 组件的名称 |
--Lang | String | 否 | 接收消息的语言类型。取值: |
示例
aliyun sophonsoar DescribeComponentAssetForm --region cn-hangzhou --ComponentName python3
DescribeComponentAssets
API 版本:2022-07-28
命令描述
用于获取某一组件的资产信息列表
语法
aliyun sophonsoar DescribeComponentAssets --version 2022-07-28
--ComponentName <string>
[--Lang <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ComponentName | String | 是 | 组件的名称 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
示例
aliyun sophonsoar DescribeComponentAssets --region cn-hangzhou --ComponentName python3
DescribeComponentList
API 版本:2022-07-28
命令描述
用于获取用户可使用的普通组件的列表
语法
aliyun sophonsoar DescribeComponentList --version 2022-07-28
[--Lang <string>]
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar DescribeComponentList --region cn-hangzhou --PlaybookUuid 'b724d2b0-3c3b-4223-9bfd-xxxxx'
DescribeComponentPlaybook
API 版本:2022-07-28
命令描述
用于获取用户可以使用的预定义组件列表
语法
aliyun sophonsoar DescribeComponentPlaybook --version 2022-07-28
[--Lang <string>]
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar DescribeComponentPlaybook --region cn-hangzhou --PlaybookUuid 'ac343acc-1a61-4084-9a1cxxxxx'
DescribeComponentsJs
API 版本:2022-07-28
命令描述
用于获取组件的JS文件,组件会以返回的JS文件来进行页面的渲染
语法
aliyun sophonsoar DescribeComponentsJs --version 2022-07-28
[--Lang <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
示例
aliyun sophonsoar DescribeComponentsJs --region cn-hangzhou --Lang zh
DescribeDistinctReleases
API 版本:2022-07-28
命令描述
获取去重后的剧本发布的版本信息列表
语法
aliyun sophonsoar DescribeDistinctReleases --version 2022-07-28
[--Lang <string>]
--PlaybookUuid <string>
[--TaskflowMd5 <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
--TaskflowMd5 | String | 否 | 剧本XML配置的MD5值 |
示例
aliyun sophonsoar DescribeDistinctReleases --region cn-hangzhou --PlaybookUuid 'bc0b8424-535c-4ed5-bd94-xxxxxx'
DescribeEnumItems
API 版本:2022-07-28
命令描述
用于获取产品需要的一些枚举信息
语法
aliyun sophonsoar DescribeEnumItems --version 2022-07-28
--EnumType <string>
[--Lang <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--EnumType | String | 是 | 枚举值的类型,支持的取值: |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
示例
aliyun sophonsoar DescribeEnumItems --region cn-hangzhou --EnumType process
DescribeExecutePlaybooks
API 版本:2022-07-28
命令描述
用于配置自动响应计划时,获取可执行的剧本列表
语法
aliyun sophonsoar DescribeExecutePlaybooks --version 2022-07-28
[--InputMode <string>]
[--Lang <string>]
[--ParamType <string>]
[--PlaybookName <string>]
[--Uuid <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--InputMode | String | 否 | 剧本入参的实体类型,当要想询多个实体类型时,以逗号分隔。 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--ParamType | String | 否 | 剧本的入参类型。 |
--PlaybookName | String | 否 | 剧本的名称,支持模糊搜索 |
--Uuid | String | 否 | 剧本的UUID。 |
示例
aliyun sophonsoar DescribeExecutePlaybooks --region cn-hangzhou --InputMode 'ip,file,process,host' --Uuid 'f916b93e-e814-459f-9662-xxxxxx' --Lang zh --PlaybookName demo_test --ParamType custom
DescribeField
API 版本:2022-07-28
命令描述
用于获取产品全局的,通用的配置信息
语法
aliyun sophonsoar DescribeField --version 2022-07-28
[--Lang <string>]
--QueryKey <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--QueryKey | String | 是 | 全局配置的KEY值,取值: |
示例
aliyun sophonsoar DescribeField --region cn-hangzhou --QueryKey soar_filed_tags
DescribeGroupProductions
API 版本:2022-07-28
命令描述
获取阿里云产品的分组列表信息
语法
aliyun sophonsoar DescribeGroupProductions --version 2022-07-28
[--Lang <string>]
[--RoleFor <int>]
[--RoleType <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 接收消息的语言类型。取值: |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型。取值: |
示例
aliyun sophonsoar DescribeGroupProductions --region cn-hangzhou --RoleType 0 --Lang zh --RoleFor 1182415050980
DescribeLatestRecordSchema
API 版本:2022-07-28
命令描述
用于根据剧本最新一次的执行记录,动态生成剧本各节点的输出结构信息
语法
aliyun sophonsoar DescribeLatestRecordSchema --version 2022-07-28
[--Lang <string>]
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 设置请求和接收消息的语言类型,默认为zh。取值: |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar DescribeLatestRecordSchema --region cn-hangzhou --PlaybookUuid 'c5c88b5e-97ca-435d-8c20-xxxxxx'
DescribeNodeParamTags
API 版本:2022-07-28
命令描述
用于编排剧本时,组件输入的可引用路径
语法
aliyun sophonsoar DescribeNodeParamTags --version 2022-07-28
[--Lang <string>]
--NodeName <string>
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
--NodeName | String | 是 | 组件节点名称 |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar DescribeNodeParamTags --region cn-hangzhou --PlaybookUuid 'ac343acc-1a61-4084-9a1c-xxxxxxx' --NodeName python3_2
DescribeNotifyTemplateList
API 版本:2022-07-28
命令描述
查询通知消息模版列表
语法
aliyun sophonsoar DescribeNotifyTemplateList --version 2022-07-28
[--Lang <string>]
[--RoleFor <int>]
[--RoleType <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型,默认为0。取值: |
示例
aliyun sophonsoar DescribeNotifyTemplateList --region cn-hangzhou --RoleType 0 --Lang zh --RoleFor 1376024258726
DescribeOpenApiInfo
API 版本:2022-07-28
命令描述
获取产品接口的详情
语法
aliyun sophonsoar DescribeOpenApiInfo --version 2022-07-28
--ApiName <string>
--ApiVersion <string>
[--Lang <string>]
--PopCode <string>
[--RoleFor <int>]
[--RoleType <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ApiName | String | 是 | API的名称 |
--ApiVersion | String | 是 | API的版本号。 |
--Lang | String | 否 | 接收消息的语言类型。取值: |
--PopCode | String | 是 | 阿里云产品接口的POP CODE |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型。取值: |
示例
aliyun sophonsoar DescribeOpenApiInfo --region cn-hangzhou --ApiVersion '2018-12-03' --ApiName DescribePopApiItemList --PopCode Sas
DescribeOpenApiList
API 版本:2022-07-28
命令描述
获取产品的接口列表
语法
aliyun sophonsoar DescribeOpenApiList --version 2022-07-28
[--ApiName <string>]
--ApiVersion <string>
[--Lang <string>]
--PopCode <string>
[--RoleFor <int>]
[--RoleType <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ApiName | String | 否 | API的名称 |
--ApiVersion | String | 是 | API的版本号。 |
--Lang | String | 否 | 请求和接收消息的语言类型,默认值为zh。取值: |
--PopCode | String | 是 | 阿里云产品接口的POP CODE |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型,默认为0。取值: |
示例
aliyun sophonsoar DescribeOpenApiList --region cn-hangzhou --ApiVersion '2021-10-01' --PopCode Sas
DescribePlaybook
API 版本:2022-07-28
命令描述
用于获取剧本的xml配置信息
语法
aliyun sophonsoar DescribePlaybook --version 2022-07-28
[--DebugFlag <int>]
[--Lang <string>]
--PlaybookUuid <string>
[--TaskflowMd5 <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--DebugFlag | Integer | 否 | 线上版本与调试版本的标记,取值: |
--Lang | String | 否 | 设置请求和接收消息的语言类型,默认为zh。取值: |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
--TaskflowMd5 | String | 否 | 剧本配置的MD5值 |
示例
aliyun sophonsoar DescribePlaybook --region cn-hangzhou --PlaybookUuid '9030076b-6733-4842-b05a-xxxxx'
DescribePlaybookInputOutput
API 版本:2022-07-28
命令描述
用于获取剧本的输入参数与输出参数的配置信息
语法
aliyun sophonsoar DescribePlaybookInputOutput --version 2022-07-28
[--Lang <string>]
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 设置请求和接收消息的语言类型,默认为zh。取值: |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar DescribePlaybookInputOutput --region cn-hangzhou --PlaybookUuid 'b724d2b0-3c3b-4223-9bfd-xxxxxxx'
DescribePlaybookMetrics
API 版本:2022-07-28
命令描述
获取某一剧本的元信息,包括名字、描述、运行次数、失败率等
语法
aliyun sophonsoar DescribePlaybookMetrics --version 2022-07-28
[--Lang <string>]
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 设置请求和接收消息的语言类型,默认为zh。取值: |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar DescribePlaybookMetrics --region cn-hangzhou --PlaybookUuid '2a687089-d4dd-47d4-9709-xxxxxx'
DescribePlaybookNodesOutput
API 版本:2022-07-28
命令描述
用于获取组件输出的历史数据
语法
aliyun sophonsoar DescribePlaybookNodesOutput --version 2022-07-28
[--Lang <string>]
--NodeName <string>
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 设置请求和接收消息的语言类型,默认为zh。取值: |
--NodeName | String | 是 | 组件节点名称 |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar DescribePlaybookNodesOutput --region cn-hangzhou --PlaybookUuid 'ac343acc-1a61-4084-9a1c-xxxxx' --NodeName DataFormat_1
DescribePlaybookNumberMetrics
API 版本:2022-07-28
命令描述
用于获取响应编排产品的统计信息,包含剧本数量、启用数量等内容
语法
aliyun sophonsoar DescribePlaybookNumberMetrics --version 2022-07-28
[--Lang <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
示例
aliyun sophonsoar DescribePlaybookNumberMetrics --region cn-hangzhou --Lang zh
DescribePlaybookReleases
API 版本:2022-07-28
命令描述
用于获取剧本发布的线上版本的信息列表
语法
aliyun sophonsoar DescribePlaybookReleases --version 2022-07-28
[--Lang <string>]
[--PageNumber <int>]
[--PageSize <int>]
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 设置请求和接收消息的语言类型,默认为zh。取值: |
--PageNumber | Integer | 否 | 设置从返回结果的第几页开始显示查询结果。默认值为1,表示从第1页开始显示 |
--PageSize | Integer | 否 | 指定分页查询时,每页显示的数据最大条数。每页默认显示的数据条数为20条,PageSize参数值为空时,将默认返回10条数据。 |
--PlaybookUuid | String | 是 | 剧本的UUID |
示例
aliyun sophonsoar DescribePlaybookReleases --region cn-hangzhou --PlaybookUuid 'ac343acc-1a61-4084-9a1c-xxxx'
DescribePlaybooks
API 版本:2022-07-28
命令描述
用于获取剧本列表
语法
aliyun sophonsoar DescribePlaybooks --version 2022-07-28
[--Active <int>]
[--EndMillis <int>]
[--Lang <string>]
[--Name <string>]
[--Order <string>]
[--OwnType <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--ParamTypes <string>]
[--PlaybookUuid <string>]
[--PlaybookUuids <string>]
[--Sort <int>]
[--StartMillis <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Active | Integer | 否 | 剧本的启用状态,取值: |
--EndMillis | Integer | 否 | 查询的结束时间,格式:13位的时间戳 |
--Lang | String | 否 | 指定请求和接收消息的语言类型,默认为zh。取值: |
--Name | String | 否 | 剧本的名称 |
--Order | String | 否 | 排序逻辑,默认为desc,取值: |
--OwnType | String | 否 | 剧本的类型,取值: |
--PageNumber | Integer | 否 | 设置从返回结果的第几页开始显示查询结果。默认值为1,表示从第1页开始显示 |
--PageSize | Integer | 否 | 指定分页查询时,每页显示的数据最大条数。每页默认显示的数据条数为20条,PageSize参数值为空时,将默认返回10条数据。 |
--ParamTypes | String | 否 | 剧本触发方式,默认为查询所有。取值: |
--PlaybookUuid | String | 否 | 剧本的UUID。 |
--PlaybookUuids | String | 否 | 剧本的UUID的集合,最多支持100个,多个用逗号隔开 |
--Sort | Integer | 否 | 排序依据,默认为1。取值: |
--StartMillis | Integer | 否 | 查询的开始时间,格式:13位的时间戳 |
示例
aliyun sophonsoar DescribePlaybooks --region cn-hangzhou --EndMillis 1683858064361 --Order desc --PageSize 10 --Lang zh --Name demo_playbook --PlaybookUuid '8baa6cff-319e-4ede-97bc-1xxxxxx' --ParamTypes 'template-alert' --Active 1 --OwnType user --PageNumber 1 --Sort 1 --StartMillis 1683526277415 --PlaybookUuids '8baa6cff-319e-4ede-97bc-1xxxxxx,8rrt6cff-319e-4ede-97bc-1xxxxxx'
DescribePopApi
API 版本:2022-07-28
命令描述
用于获取OpenAPI的接口详情
语法
aliyun sophonsoar DescribePopApi --version 2022-07-28
--ApiName <string>
--ApiVersion <string>
--PopCode <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ApiName | String | 是 | 阿里云产品API名称 |
--ApiVersion | String | 是 | API的版本号 |
--PopCode | String | 是 | 阿里云产品接口的POP CODE |
示例
aliyun sophonsoar DescribePopApi --region cn-hangzhou --ApiVersion '2021-10-01' --ApiName DescribeInstanceInfo --PopCode Sas
DescribeProcessStatistics
API 版本:2022-07-28
命令描述
获取统计信息
语法
aliyun sophonsoar DescribeProcessStatistics --version 2022-07-28
[--Lang <string>]
[--ProcessActionEnd <int>]
[--ProcessActionStart <int>]
[--RoleFor <string>]
[--RoleType <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 接收消息的语言类型。取值: |
--ProcessActionEnd | Integer | 否 | 处置任务的查询结束时间,格式:13位的时间戳 |
--ProcessActionStart | Integer | 否 | 处置任务的查询开始时间,格式:13位的时间戳 |
--RoleFor | String | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型。取值: |
示例
aliyun sophonsoar DescribeProcessStatistics --region cn-hangzhou --ProcessActionEnd 1756177435 --RoleType 0 --ProcessActionStart 1700083572 --Lang zh --RoleFor 1709821xxxxx3093
DescribeProcessTaskCount
API 版本:2022-07-28
命令描述
通过实体UUID查询关联的处置任务数
语法
aliyun sophonsoar DescribeProcessTaskCount --version 2022-07-28
--EntityUuidList <array>
[--Lang <string>]
[--RoleFor <int>]
[--RoleType <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--EntityUuidList | List | 是 | 实体的UUID集合 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型。 |
示例
aliyun sophonsoar DescribeProcessTaskCount --region cn-hangzhou --EntityUuidList.1 'a680c9ae-****-4c39-****-0302****fc8e'
DescribeProcessTasks
API 版本:2022-07-28
命令描述
用于获取处置任务的列表信息
语法
aliyun sophonsoar DescribeProcessTasks --version 2022-07-28
[--AlertId <string>]
[--Direction <string>]
[--EntityName <string>]
[--EntityType <string>]
[--EntityUuid <string>]
[--EventUuid <string>]
[--ExecuteUuid <string>]
[--OrderField <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--ParamContent <string>]
[--ProcessActionEnd <int>]
[--ProcessActionStart <int>]
[--ProcessRemoveEnd <int>]
[--ProcessRemoveStart <int>]
[--ProcessStrategyUuid <string>]
[--ReqUuid <string>]
[--ResponseRuleId <string>]
[--SceneCode <string>]
[--Scope <string>]
[--Source <string>]
[--TaskId <string>]
[--TaskStatus <string>]
[--TriggerSource <string>]
[--YunCode <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--AlertId | String | 否 | 告警 ID |
--Direction | String | 否 | 排序方向,取值: |
--EntityName | String | 否 | 处置的实体的名称 |
--EntityType | String | 否 | 处置的实体类型,取值: |
--EntityUuid | String | 否 | 实体UUID |
--EventUuid | String | 否 | 事件UUID |
--ExecuteUuid | String | 否 | 流程任务执行记录的 UUID |
--OrderField | String | 否 | 结果的排序字段。 |
--PageNumber | Integer | 否 | 设置从返回结果的第几页开始显示查询结果。默认值为1,表示从第1页开始显示 |
--PageSize | Integer | 否 | 指定分页查询时,每页显示的数据最大条数。每页默认显示的数据条数为20条,PageSize参数值为空时,将默认返回10条数据。 |
--ParamContent | String | 否 | 模糊匹配,会查询实体、处置场景、处置参数字段 |
--ProcessActionEnd | Integer | 否 | 处置时间的查询结束时间,格式:13位的时间戳 |
--ProcessActionStart | Integer | 否 | 处置时间的查询开始时间,格式:13位的时间戳 |
--ProcessRemoveEnd | Integer | 否 | 解封时间的查询结束时间,格式:13位的时间戳 |
--ProcessRemoveStart | Integer | 否 | 解封时间的查询开始时间,格式:13位的时间戳 |
--ProcessStrategyUuid | String | 否 | 处置策略的UUID。 |
--ReqUuid | String | 否 | 剧本触发ID |
--ResponseRuleId | String | 否 | 响应规则 ID |
--SceneCode | String | 否 | 处置任务的场景CODE。 |
--Scope | String | 否 | 处置的阿里云账户ID |
--Source | String | 否 | 处置任务的触发来源,为数组字符串格式,取值: |
--TaskId | String | 否 | 处置任务的唯一标识。 |
--TaskStatus | String | 否 | 处置任务的状态列表,为数据字符串的格式,取值: |
--TriggerSource | String | 否 | 处置任务的触发来源,取值: |
--YunCode | String | 否 | 处置任务关联的云产品,为数据字符串格式,取值: |
示例
aliyun sophonsoar DescribeProcessTasks --region cn-hangzhou --ProcessActionEnd 1700031183572 --TaskId 150xxxxxxxxx95066 --EntityName '127.0.0.1' --PageSize 10 --SceneCode event_xxx_whole_process --EventUuid 'c1020ce1-d6a5-11e8-8298-00163e10****' --Direction desc --Source '["system"]' --ProcessRemoveStart 1700031183572 --ParamContent '12.x.x.x' --PageNumber 1 --ProcessActionStart 1700031183572 --ResponseRuleId 'example-string' --TriggerSource system --ProcessStrategyUuid '92af3c79-1754-4646-9366-9ddbd1e45536_****' --YunCode '["WAF"]' --ReqUuid 'b73d0b08-f1bd-4e8f-967a-8e2982c9****' --TaskStatus '["11","21"]' --OrderField gmtCreate --EntityType ip --AlertId 'example-string' --EntityUuid '69d189e2-ec17-4676-a2fe-02969234****
' --Scope 125xxxxx9870 --ExecuteUuid '550e8400-e29b-41d4-a716-4466***0000' --ProcessRemoveEnd 1700031183572
DescribeSoarRecordActionOutputList
API 版本:2022-07-28
命令描述
用于获取剧本任务中,某一组件执行动作时,输出的数据列表
语法
aliyun sophonsoar DescribeSoarRecordActionOutputList --version 2022-07-28
--ActionUuid <string>
[--Lang <string>]
--PageNumber <int>
--PageSize <int>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ActionUuid | String | 是 | 组件动作的UUID。 |
--Lang | String | 否 | 请求和接收消息的语言类型,默认值为zh。取值: |
--PageNumber | Integer | 是 | 设置从返回结果的第几页开始显示查询结果。默认值为1,表示从第1页开始显示 |
--PageSize | Integer | 是 | 指定分页查询时,每页显示的数据最大条数。每页默认显示的数据条数为20条,PageSize参数值为空时,将默认返回10条数据。 |
示例
aliyun sophonsoar DescribeSoarRecordActionOutputList --region cn-hangzhou --ActionUuid '2202c90d-fa93-4726-bc32-xxxxxx' --PageSize 10 --PageNumber 1
DescribeSoarRecordInOutput
API 版本:2022-07-28
命令描述
当用户执行剧本任务后,通过该接口可获取组件动作的输入数据与输出数据
语法
aliyun sophonsoar DescribeSoarRecordInOutput --version 2022-07-28
--ActionUuid <string>
[--Lang <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ActionUuid | String | 是 | 组件动作的UUID。 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
示例
aliyun sophonsoar DescribeSoarRecordInOutput --region cn-hangzhou --ActionUuid '0531ff66-dd05-4f24-84bf-xxxxxxxx'
DescribeSoarRecords
API 版本:2022-07-28
命令描述
用于获取剧本的执行记录列表
语法
aliyun sophonsoar DescribeSoarRecords --version 2022-07-28
[--CompletedBeginTime <int>]
[--CompletedEndTime <int>]
[--EndMillis <int>]
[--Lang <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--PlaybookUuid <string>]
[--QueryValue <string>]
[--RequestUuid <string>]
[--StartMillis <int>]
[--TaskStatus <string>]
[--TaskflowMd5 <string>]
[--TriggerType <string>]
[--TriggerUser <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--CompletedBeginTime | Integer | 否 | 任务完成的开始时间,格式:13位的时间戳 |
--CompletedEndTime | Integer | 否 | 任务完成的结束时间,格式:13位的时间戳 |
--EndMillis | Integer | 否 | 任务运行的结束时间,格式:13位的时间戳 |
--Lang | String | 否 | 设置请求和接收消息的语言类型,默认为zh。取值: |
--PageNumber | Integer | 否 | 设置从返回结果的第几页开始显示查询结果。默认值为1,表示从第1页开始显示 |
--PageSize | Integer | 否 | 指定分页查询时,每页显示的数据最大条数。每页默认显示的数据条数为20条,PageSize参数值为空时,将默认返回10条数据。 |
--PlaybookUuid | String | 否 | 剧本的UUID。 |
--QueryValue | String | 否 | 剧本输入参数 |
--RequestUuid | String | 否 | 剧本任务执行的UUID。 |
--StartMillis | Integer | 否 | 任务运行的开始时间,格式:13位的时间戳 |
--TaskStatus | String | 否 | 任务的运行状态,取值: |
--TaskflowMd5 | String | 否 | 剧本配置的MD5值 |
--TriggerType | String | 否 | 任务触发类型,取值: |
--TriggerUser | String | 否 | 执行剧本任务的阿里云账户ID |
示例
aliyun sophonsoar DescribeSoarRecords --region cn-hangzhou --EndMillis 1683772744953 --TriggerType debug --PageSize 10 --Lang zh --TaskStatus inprogress --QueryValue input --PlaybookUuid '8f55e76d-b5d5-4720-9cd7-xxxxx' --TriggerUser 127xxxx4392 --CompletedBeginTime 1755676363777 --PageNumber 1 --StartMillis 1683526284584 --CompletedEndTime 1683526284584 --RequestUuid '6d412cfa-0905-4567-8a83-xxxxxx' --TaskflowMd5 be0a4ef084dd174abe478df52xxxxx
DescribeSoarTaskAndActions
API 版本:2022-07-28
命令描述
用于获取剧本的一次运行过程中,组件的执行记录列表
语法
aliyun sophonsoar DescribeSoarTaskAndActions --version 2022-07-28
[--Lang <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--QueryType <string>]
[--QueryValue <string>]
[--RequestUuid <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
--PageNumber | Integer | 否 | 设置从返回结果的第几页开始显示查询结果。默认值为 1,表示从第 1 页开始显示 |
--PageSize | Integer | 否 | 指定分页查询时,每页显示的数据最大条数。每页默认显示的数据条数为 20 条,PageSize 参数值为空时,将默认返回 10 条数据。 |
--QueryType | String | 否 | 任务触发类型,取值: |
--QueryValue | String | 否 | 剧本输入参数 |
--RequestUuid | String | 否 | 剧本任务的UUID |
示例
aliyun sophonsoar DescribeSoarTaskAndActions --region cn-hangzhou --PageSize 10 --PageNumber 1 --Lang zh --RequestUuid '1077f2f9-25e8-42d9-bfdf-1528e1313f6d' --QueryValue input --QueryType debug
DescribeSophonCommands
API 版本:2022-07-28
命令描述
用于获取处置实体的命令
语法
aliyun sophonsoar DescribeSophonCommands --version 2022-07-28
[--Name <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Name | String | 否 | 命令名称,支持模糊搜索 |
示例
aliyun sophonsoar DescribeSophonCommands --region cn-hangzhou --Name waf_process
DescribeVendorApiList
API 版本:2022-07-28
命令描述
查询云厂商OpenApi列表
语法
aliyun sophonsoar DescribeVendorApiList --version 2022-07-28
[--ApiName <string>]
[--KeyWord <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--ProductCode <string>]
[--VendorCode <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ApiName | String | 否 | 阿里云产品接口的名称,支持模糊搜索 |
--KeyWord | String | 否 | 关键字 |
--PageNumber | Integer | 否 | 当前分页的页码数。默认值为1 |
--PageSize | Integer | 否 | 分页展示时,每个分页包含的列表条目数。默认为10 |
--ProductCode | String | 否 | 厂商的产品标识: |
--VendorCode | String | 否 | 厂商code: |
示例
aliyun sophonsoar DescribeVendorApiList --region cn-hangzhou --PageSize 10 --PageNumber 1 --ProductCode waf --ApiName AddAssetCleanConfig --KeyWord Create --VendorCode Azure
DescriberPython3ScriptLogs
API 版本:2022-07-28
命令描述
在提交pyhton脚本的任务后,通过返回的requestUuid来获取运行日志
语法
aliyun sophonsoar DescriberPython3ScriptLogs --version 2022-07-28
[--Lang <string>]
--RequestUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
--RequestUuid | String | 是 | 运行python3脚本时,返回的UUID。 |
示例
aliyun sophonsoar DescriberPython3ScriptLogs --region cn-hangzhou --RequestUuid '69edc2b4-c95c-424f-9114-xxxxxxx'
ExecuteComponent
API 版本:2025-09-03
命令描述
执行剧本中的组件,并输出组件的运行结果
语法
aliyun sophonsoar ExecuteComponent --version 2025-09-03
[--ComponentActionName <string>]
[--ComponentAssetUuid <string>]
[--ComponentInput <string>]
[--ComponentName <string>]
[--Lang <string>]
[--PlayBookNodeName <string>]
[--PlaybookUuid <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ComponentActionName | String | 否 | 组件的动作名称 |
--ComponentAssetUuid | String | 否 | 资产UUID |
--ComponentInput | String | 否 | 组件输入参数 |
--ComponentName | String | 否 | 组件的名称 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--PlayBookNodeName | String | 否 | 当前组件在剧本中对应的节点名称 |
--PlaybookUuid | String | 否 | 剧本的UUID。 |
GetPlaybook
API 版本:2025-09-03
命令描述
获取剧本详情
语法
aliyun sophonsoar GetPlaybook --version 2025-09-03
[--Lang <string>]
--PlaybookUuid <string>
[--PlaybookVersion <string>]
[--PlaybookVersionType <string>]
[--RoleFor <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
--PlaybookUuid | String | 是 | 剧本的UUID |
--PlaybookVersion | String | 否 | 剧本的版本ID,仅在PlayboookVersionType为History时生效 |
--PlaybookVersionType | String | 否 | 剧本对应的版本类型,取值如下: |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
ListComponentAssets
API 版本:2025-09-03
命令描述
获取组件对应的资产列表
语法
aliyun sophonsoar ListComponentAssets --version 2025-09-03
[--ComponentAssetUuid <string>]
[--ComponentName <string>]
[--Lang <string>]
[--MaxResults <int>]
[--NextToken <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--RoleFor <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ComponentAssetUuid | String | 否 | 资产UUID |
--ComponentName | String | 否 | 组件的名称 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--MaxResults | Integer | 否 | 允许返回的最大结果数目。 取值范围:0~100个 |
--NextToken | String | 否 | 是否拥有下一次查询的令牌(Token)。取值:第一次查询和没有下一次查询时,均无需填写。如果有下一次查询,取值为上一次API调用返回的NextToken值 |
--PageNumber | Integer | 否 | 分页查询时的页码,默认值为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页行数。取值范围:1~100 |
--RoleFor | Integer | 否 | 资源目录成员账号ID |
ListComponents
API 版本:2025-09-03
命令描述
获取组件列表
语法
aliyun sophonsoar ListComponents --version 2025-09-03
[--ComponentName <string>]
[--Lang <string>]
[--MaxResults <int>]
[--NextToken <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--RoleFor <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ComponentName | String | 否 | 组件的名称 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--MaxResults | Integer | 否 | 分页大小。取值范围:1~100。默认值:10 |
--NextToken | String | 否 | 下一页查询开始的Token |
--PageNumber | Integer | 否 | 分页查询时的页码,默认值为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页行数。取值范围:1~100 |
--RoleFor | Integer | 否 | 资源目录成员账号ID |
ListPlaybooks
API 版本:2025-09-03
命令描述
查询剧本列表
语法
aliyun sophonsoar ListPlaybooks --version 2025-09-03
[--Lang <string>]
[--MaxResults <int>]
[--NextToken <string>]
[--Order <string>]
[--OrderField <string>]
[--PageNumber <int>]
[--PageSize <int>]
[--PlaybookExecutionEndTime <int>]
[--PlaybookExecutionStartTime <int>]
[--PlaybookName <string>]
[--PlaybookParamTypes <array>]
[--PlaybookStatus <int>]
[--PlaybookType <string>]
[--PlaybookUuids <array>]
[--RoleFor <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
--MaxResults | Integer | 否 | 单次请求返回结果的最大条数。取值范围:1~100 |
--NextToken | String | 否 | 下一个查询开始的Token |
--Order | String | 否 | 排序逻辑,默认为desc,取值: |
--OrderField | String | 否 | 排序字段。取值: |
--PageNumber | Integer | 否 | 分页查询时的页码,默认值为1 |
--PageSize | Integer | 否 | 分页查询时设置的每页行数。取值范围:1~100
|
--PlaybookExecutionEndTime | Integer | 否 | 剧本最新执行的结束时间 |
--PlaybookExecutionStartTime | Integer | 否 | 剧本最新执行的开始时间 |
--PlaybookName | String | 否 | 剧本的名称,支持模糊搜索 |
--PlaybookParamTypes | List | 否 | 剧本输入参数类型集合 |
--PlaybookStatus | Integer | 否 | 剧本的发布状态,取值如下: |
--PlaybookType | String | 否 | 剧本类型,取值如下: |
--PlaybookUuids | List | 否 | 剧本的UUID的集合 |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
ModifyComponentAsset
API 版本:2022-07-28
命令描述
当一个组件需要配置资产时,该接口用户修改组件的资产信息
语法
aliyun sophonsoar ModifyComponentAsset --version 2022-07-28
--AssetConfig <string>
[--Lang <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--AssetConfig | String | 是 | 组件资产的配置,为JSONObject格式 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
示例
aliyun sophonsoar ModifyComponentAsset --region cn-hangzhou --AssetConfig '{
"name": "test asset",
"componentName": "SLS",
"params": [
{
"name": "end_point",
"value": "xxx"
},
{
"name": "sub_id",
"value": "xxxx"
},
{
"name": "access_key",
"value": "xxxx"
}
]
}'
ModifyPlaybook
API 版本:2022-07-28
命令描述
用于修改剧本的配置信息
语法
aliyun sophonsoar ModifyPlaybook --version 2022-07-28
[--Description <string>]
--DisplayName <string>
[--Lang <string>]
--PlaybookUuid <string>
[--Taskflow <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Description | String | 否 | 剧本的描述 |
--DisplayName | String | 是 | 剧本的展示名称 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
--Taskflow | String | 否 | 剧本的xml配置 |
示例
aliyun sophonsoar ModifyPlaybook --region cn-hangzhou --PlaybookUuid '8baa6cff-319e-4ede-97bc-1586c35e61f8' --DisplayName aliyun_waf_test_playbook
ModifyPlaybookInputOutput
API 版本:2022-07-28
命令描述
用于修改剧本的输入参数与输出参数
语法
aliyun sophonsoar ModifyPlaybookInputOutput --version 2022-07-28
[--ExeConfig <string>]
--InputParams <string>
[--Lang <string>]
--OutputParams <string>
[--ParamType <string>]
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ExeConfig | String | 否 | 剧本的执行方式,为JSONObject格式 |
--InputParams | String | 是 | 剧本的入参配置,为JSONArray格式 |
--Lang | String | 否 | 请求和接收消息的语言类型。 |
--OutputParams | String | 是 | 剧本暂不支持出参配置,固定为空值 |
--ParamType | String | 否 | 剧本的入参类型。 |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar ModifyPlaybookInputOutput --region cn-hangzhou --PlaybookUuid '8baa6cff-319e-4ede-97bc-xxxxxxx' --InputParams '[
{
"typeName": "String",
"dataClass": "normal",
"dataType": "String",
"description": "period",
"example": "",
"name": "period",
"required": false
}
]' --OutputParams '[]'
PublishPlaybook
API 版本:2022-07-28
命令描述
用于把剧本配置发布线上,发布后,剧本会以新的逻辑来运行
语法
aliyun sophonsoar PublishPlaybook --version 2022-07-28
[--Description <string>]
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Description | String | 否 | 本次发布版本的描述
|
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar PublishPlaybook --region cn-hangzhou --PlaybookUuid 'ac343acc-1a61-4084-9a1c-xxxxxxx'
QueryTreeData
API 版本:2022-07-28
命令描述
用于一次性获取所有的剧本列表
语法
aliyun sophonsoar QueryTreeData --version 2022-07-28
[--Lang <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 接收消息的语言类型。取值: |
示例
aliyun sophonsoar QueryTreeData --region cn-hangzhou --Lang zh
RevertPlaybookRelease
API 版本:2022-07-28
命令描述
用于回滚剧本到指定的版本,同时可以指定回滚时是否发布该版本
语法
aliyun sophonsoar RevertPlaybookRelease --version 2022-07-28
[--IsPublish <bool>]
--PlayReleaseId <int>
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--IsPublish | Boolean | 否 | 回滚版本后,是否直接发布。 |
--PlayReleaseId | Integer | 是 | 剧本发布版本的ID。 |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar RevertPlaybookRelease --region cn-hangzhou --PlaybookUuid '185295a1-c987-4b64-8796-xxxxxxxx' --PlayReleaseId 32372
RunNotifyComponentWithEmail
API 版本:2022-07-28
命令描述
执行通知组件-email发送消息
语法
aliyun sophonsoar RunNotifyComponentWithEmail --version 2022-07-28
--ActionName <string>
[--AssetId <string>]
--ComponentName <string>
--Content <string>
[--Lang <string>]
--NodeName <string>
--PlaybookUuid <string>
--Receivers <array>
[--RoleFor <int>]
[--RoleType <string>]
--Subject <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ActionName | String | 是 | 组件的动作名称 |
--AssetId | String | 否 | 邮件发送方的资源实例ID。 |
--ComponentName | String | 是 | 剧本的组件名称 |
--Content | String | 是 | 邮件正文 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--NodeName | String | 是 | 剧本的节点名称 |
--PlaybookUuid | String | 是 | 剧本UUID。 |
--Receivers | List | 是 | 邮箱地址列表 |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型。取值: |
--Subject | String | 是 | 邮件标题 |
示例
aliyun sophonsoar RunNotifyComponentWithEmail --region cn-hangzhou --PlaybookUuid 'e99dab31-499b-4307-9248-xxxxxx' --Receivers.1 '123xxx@163.com' --ActionName notifyByCustom --NodeName notify_message_1 --Content 'email content' --ComponentName NotifyMessage --Subject title
RunNotifyComponentWithMessageCenter
API 版本:2022-07-28
命令描述
执行通知组件-消息中心发送消息
语法
aliyun sophonsoar RunNotifyComponentWithMessageCenter --version 2022-07-28
--ActionName <string>
--Aliuid <string>
[--AssetId <string>]
[--ChannelTypeList <array>]
--ComponentName <string>
--EventId <string>
[--Lang <string>]
--NodeName <string>
[--Params <string>]
--PlaybookUuid <string>
[--RoleFor <int>]
[--RoleType <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ActionName | String | 是 | 剧本的动作名称 |
--Aliuid | String | 是 | 接收消息的用户ID |
--AssetId | String | 否 | 资源实例ID。当前此参数已废弃,不再使用 |
--ChannelTypeList | List | 否 | 通道类型集合,不传则默认发送所有通道,默认不传 |
--ComponentName | String | 是 | 剧本的组件名称 |
--EventId | String | 是 | 云鸽的消息事件ID。取值: |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--NodeName | String | 是 | 剧本的节点名称 |
--Params | String | 否 | 消息事件的模版参数。 |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型。取值: |
示例
aliyun sophonsoar RunNotifyComponentWithMessageCenter --region cn-hangzhou --PlaybookUuid 'c5c88b5e-97ca-435d-8c20-xxxxxx' --ActionName notifyByMessageCenter --NodeName notify_message --EventId yundun_soar_incident_generate --ComponentName NotifyMessage --Aliuid 146789xxxx733152
RunNotifyComponentWithWebhook
API 版本:2022-07-28
命令描述
执行通知组件-webhook发送消息
语法
aliyun sophonsoar RunNotifyComponentWithWebhook --version 2022-07-28
--ActionName <string>
[--AssetId <string>]
--ComponentName <string>
--Content <string>
[--Lang <string>]
--MsgType <string>
--NodeName <string>
--PlaybookUuid <string>
[--RoleFor <int>]
[--RoleType <string>]
[--Secret <string>]
--Webhook <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ActionName | String | 是 | 剧本的动作名称 |
--AssetId | String | 否 | 资源实例ID。当前此参数已废弃,不再使用 |
--ComponentName | String | 是 | 剧本的组件名称 |
--Content | String | 是 | 钉钉群机器人webhook发送的消息正文 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--MsgType | String | 是 | webhook消息类型。取值: |
--NodeName | String | 是 | 剧本的节点名称 |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
--RoleType | String | 否 | 视图类型。取值: |
--Secret | String | 否 | 钉钉群机器人webhook消息秘钥。当前此参数已废弃,不再使用 |
--Webhook | String | 是 | 消息中心-机器人接收管理页面配置的机器人ID集合,目前只支持钉钉机器人类型 |
示例
aliyun sophonsoar RunNotifyComponentWithWebhook --region cn-hangzhou --PlaybookUuid '94bc318c-****-4cba-****-801ccb0d739f' --ActionName notifyByCustom --NodeName notify_message_node --Content '{
"at": {
"atMobiles":[
"180xxxxxx"
],
"atUserIds":[
"user123"
],
"isAtAll": false
},
"text": {
"content":"1234"
},
"msgtype":"text"
}' --Webhook '[\"10651\"]' --ComponentName NotifyMessage --MsgType text
RunPython3Script
API 版本:2022-07-28
命令描述
用于提交一段python3的代码片段并执行,只能用于数据处理
语法
aliyun sophonsoar RunPython3Script --version 2022-07-28
[--NodeName <string>]
[--Params <string>]
[--PlaybookUuid <string>]
[--PythonScript <string>]
[--PythonVersion <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--NodeName | String | 否 | 剧本的节点名称 |
--Params | String | 否 | python3脚本的入参 |
--PlaybookUuid | String | 否 | 剧本的UUID。 |
--PythonScript | String | 否 | python3的脚本 |
--PythonVersion | String | 否 | python版本 |
示例
aliyun sophonsoar RunPython3Script --region cn-hangzhou --PlaybookUuid '8baa6cff-319e-4ede-97bc-xxxxxxx' --NodeName python3_3 --PythonVersion 'python2.0' --Params '{
"input1": "xx.xx.xx.xx",
"input2": "7d"
}' --PythonScript 'import logging
def execute (params):
#ip = params['"'"'ip'"'"']
#logging.info("enter execute,ip is "+ip)
success=True
message='"'"'OK'"'"'
data=[]
return (success,message,data)'
TriggerPlaybook
API 版本:2022-07-28
命令描述
用于触发已启用的自定义剧本或预定义剧本
语法
aliyun sophonsoar TriggerPlaybook --version 2022-07-28
--InputParam <string>
--PlaybookUuid <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--InputParam | String | 是 | 剧本的输入参数 |
--PlaybookUuid | String | 是 | 剧本的UUID。 |
示例
aliyun sophonsoar TriggerPlaybook --region cn-hangzhou --PlaybookUuid '2a687089-d4dd-47d4-9709-xxxxxxxx' --InputParam '{
"input1": "xx.xx.xx.xx",
"input2": "7d"
}
'
TriggerProcessTask
API 版本:2022-07-28
命令描述
用户在使用响应编排的功能进行事件处置时,处置中心会生成相应的处置任务,该接口用于对生成的处置任务执行后续的解除封禁、重试封禁、解除隔离等动作
语法
aliyun sophonsoar TriggerProcessTask --version 2022-07-28
--ActionType <string>
--TaskId <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ActionType | String | 是 | 处置动作的类型,取值如下: |
--TaskId | String | 是 | 处置任务的唯一标识。 |
示例
aliyun sophonsoar TriggerProcessTask --region cn-hangzhou --TaskId 15355xxxxxx82894882 --ActionType remove
TriggerSophonPlaybook
API 版本:2022-07-28
命令描述
用于触发运行剧本或响应命令
语法
aliyun sophonsoar TriggerSophonPlaybook --version 2022-07-28
[--ClientToken <string>]
[--CommandName <string>]
--InputParams <string>
[--SophonTaskId <string>]
[--TriggerType <string>]
[--Uuid <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ClientToken | String | 否 | 用于保证请求幂等性的客户端令牌 |
--CommandName | String | 否 | 想要触发的命令名称。 |
--InputParams | String | 是 | 触发命令或剧本的输入参数 |
--SophonTaskId | String | 否 | 业务的自定义ID,如果触发剧本时不指定,会产生一个随机的ID,用于排查与定位问题 |
--TriggerType | String | 否 | 触发类型,取值: |
--Uuid | String | 否 | 剧本的UUID。 |
示例
aliyun sophonsoar TriggerSophonPlaybook --region cn-hangzhou --InputParams '{
"param1": "xx.xx.xx.xx",
"param2": "7d"
}'
UpdateComponentAsset
API 版本:2025-09-03
命令描述
更新组件资产
语法
aliyun sophonsoar UpdateComponentAsset --version 2025-09-03
[--ComponentAssetName <string>]
--ComponentAssetUuid <string>
[--ComponentAssetValues <array>]
[--Lang <string>]
[--RoleFor <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--ComponentAssetName | String | 否 | 资产名称 |
--ComponentAssetUuid | String | 是 | 资产UUID |
--ComponentAssetValues | List | 否 | 资产的配置信息 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--RoleFor | Integer | 否 | 资源目录成员账号ID |
UpdatePlaybook
API 版本:2025-09-03
命令描述
更新剧本
语法
aliyun sophonsoar UpdatePlaybook --version 2025-09-03
[--Lang <string>]
[--PlaybookDescription <string>]
[--PlaybookInputConfigs <array>]
[--PlaybookName <string>]
[--PlaybookOutputConfigs <array>]
[--PlaybookParamType <string>]
[--PlaybookTaskFlow <string>]
--PlaybookUuid <string>
[--RoleFor <int>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Lang | String | 否 | 请求和接收消息的语言类型。取值: |
--PlaybookDescription | String | 否 | 剧本描述 |
--PlaybookInputConfigs | List | 否 | 剧本的输入参数配置列表 |
--PlaybookName | String | 否 | 剧本的名称 |
--PlaybookOutputConfigs | List | 否 | 剧本的输出参数配置列表 |
--PlaybookParamType | String | 否 | 剧本的入参类型。 |
--PlaybookTaskFlow | String | 否 | 剧本内容 |
--PlaybookUuid | String | 是 | 剧本的UUID |
--RoleFor | Integer | 否 | 管理员切换成其他成员视角的用户ID |
VerifyPlaybook
API 版本:2022-07-28
命令描述
校验剧本的配置是否正确,编排的逻辑是否合理
语法
aliyun sophonsoar VerifyPlaybook --version 2022-07-28
[--PlaybookUuid <string>]
[--TaskFlow <string>]
[options]
参数
参数 | 类型 | 必填 | 说明 |
--PlaybookUuid | String | 否 | 剧本的UUID。 |
--TaskFlow | String | 否 | 剧本的xml配置 |
示例
aliyun sophonsoar VerifyPlaybook --region cn-hangzhou --PlaybookUuid '9fcd3829-80ff-4681-be1e-4d2662c35fed' --TaskFlow '<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" targetNamespace="http://bpmn.io/schema/bpmn" id="Definitions_1"><bpmn:process id="Process_1" isExecutable="false"><bpmn:startEvent id="StartEvent_1"/></bpmn:process><bpmndi:BPMNDiagram id="BPMNDiagram_1"><bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"><bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"><dc:Bounds height="36.0" width="36.0" x="173.0" y="102.0"/></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>'
VerifyPythonFile
API 版本:2022-07-28
命令描述
校验Python代码片段的语法是否正确
语法
aliyun sophonsoar VerifyPythonFile --version 2022-07-28
--Content <string>
[options]
参数
参数 | 类型 | 必填 | 说明 |
--Content | String | 是 | 要校验的python代码片段 |
示例
aliyun sophonsoar VerifyPythonFile --region cn-hangzhou --Content 'import logging
def execute (params):
success=True
message='"'"'OK'"'"'
data=[]
return (success,message,data)'
全局选项
以下为 CLI 通用选项,各选项的适用范围以说明为准。
选项 | 说明 |
--cli-dry-run | 使用 |
--cli-input-json | 使用 |
--cli-output | 设置宿主 CLI Help、本地错误和更新检查的输出格式(json) |
--cli-query | 使用 |
--cli-sign-version | 短横线命令的 OpenAPI 签名版本:当前仅支持 v4;设为空值可清空并恢复默认签名( |
--language | 使用 |
--output -o | 使用 |
--profile -p | 使用 |
--region | 使用 |
--version --api-version | 使用 |
--yes -y | 跳过安全策略的确认提示(用于非交互式/Agent 场景) |