|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
object |
||
| bufferLimit |
integer |
响应缓冲区大小(KB),默认 1000,范围 [1, 1500] |
1000 |
| checkRequest |
boolean |
是否检查请求内容 |
true |
| checkRequestImage |
boolean |
是否检查请求图片 |
false |
| checkResponse |
boolean |
是否检查响应内容 |
true |
| checkResponseImage |
boolean |
是否检查响应图片 |
false |
| consumerConfigBindings |
array |
消费者与安全护栏配置绑定;空数组明确清空待用配置 |
|
|
object |
|||
| matchType |
string |
消费者名称的匹配方式。取值:exact(精确匹配)、prefix(前缀匹配)、regexp(正则表达式匹配)、all(匹配任意消费者)。all 类型的规则必须放在绑定列表最后。 |
exact |
| name |
string |
消费者名称匹配条件。matchType 为 exact 时填写完整消费者名称,为 prefix 时填写名称前缀,为 regexp 时填写正则表达式;上述三种方式不能为空,为 all 时必须为空字符串。 |
example-consumer |
| templateId |
string |
绑定的安全护栏配置 ID,不能为空。可通过 ListAiSecurityGuardConfigs 接口查询,使用返回的 templateId。 |
apig_0123456789abcdef |
| consumerRequestCheckService |
array |
消费者级请求检测服务配置 |
|
|
object |
消费者级请求检测服务配置 |
||
| matchType |
string |
消费者匹配方式 |
exact |
| modalityType |
string |
模态类型 |
Text |
| name |
string |
消费者名称 |
consumer-a |
| requestCheckService |
string |
检测服务 |
query_security_check |
| requestImageCheckService |
string |
图片检测服务 |
img_query_guard |
| consumerResponseCheckService |
array |
消费者级响应检测服务配置 |
|
|
object |
消费者级响应检测服务配置 |
||
| matchType |
string |
消费者匹配方式 |
exact |
| modalityType |
string |
模态类型 |
Text |
| name |
string |
消费者名称 |
consumer-a |
| responseCheckService |
string |
检测服务 |
query_security_check |
| responseImageCheckService |
string |
图片检测服务 |
img_query_guard |
| consumerRiskLevel |
array |
消费者级风险等级配置 |
|
|
object |
消费者级风险等级配置 |
||
| level |
string |
风险等级 |
high |
| matchType |
string |
消费者匹配方式 |
exact |
| name |
string |
消费者名称 |
consumer-a |
| type |
string |
风险维度类型 |
ContentModeration |
| defaultGenerated |
boolean |
是否由本次查询默认补齐整个安全护栏策略。仅合成策略返回 true;已有策略为 false 或不返回。只读字段,提交时忽略,不保存且不影响启停。 |
|
| longTermEnabled |
boolean |
是否使用长期方案;省略或 null 在更新时保留原值 |
|
| pluginStatus | AiPluginStatus |
插件运行状态 |
|
| requestCheckService |
string |
请求文本检测服务 ServiceCode(系统注入默认值) |
query_security_check |
| requestImageCheckService |
string |
请求图片检测服务 ServiceCode(系统注入默认值) |
img_query_guard |
| responseCheckService |
string |
响应文本检测服务 ServiceCode(系统注入默认值) |
response_security_check |
| responseImageCheckService |
string |
响应图片检测服务 ServiceCode(系统注入默认值) |
img_response_guard |
| riskAlertLevel |
string |
全局风险告警等级 |
high |
| riskConfig |
array |
风险维度配置列表(系统注入,由 ConsumerRiskLevel 归一化生成) |
|
|
object |
风险维度配置列表(系统注入,由 ConsumerRiskLevel 归一化生成) |
||
| consumerRules |
object |
消费者级匹配规则 |
|
| matchType |
string |
匹配方式 |
Exact |
| pattern |
string |
消费者匹配模式值 |
consumer-a |
| level |
string |
风险等级 |
high |
| type |
string |
风险维度类型 |
ContentModeration |
| serviceAddress |
string |
安全护栏服务地址(green-cip endpoint)。网关与安全护栏同 region 时使用 VPC 内网地址 |
https://green-cip-vpc.cn-shanghai.aliyuncs.com |