用于创建新的安全管控策略,支持多种模块和子模块配置。需要Dataworks 租户管理员与安全管理员权限。
接口说明
请求说明
SchemaName:根据不同的业务需求选择合适的 Schema 名称。
ControlModule 和 ControlSubModule:指定策略应用的模块及子模块,确保与所选 Schema 匹配。
ControlDwScope:定义策略的应用范围(租户或工作空间级别)。
Workspaces:当
ControlDwScope为Workspace时,必须提供关联的工作空间 ID 列表。Content.Controllers:策略内容中的管控项列表需符合所选 Schema 的合法管控项定义。
系统默认策略不允许通过此接口创建。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
是 |
策略名称 |
默认数据分析策略 |
| Description |
string |
否 |
策略描述 |
控制数据分析模块的查询结果安全行为 |
| SchemaName |
string |
是 |
Schema 模板名称 |
DataQuerySecurityStrategySchema |
| ControlModule |
string |
是 |
管控模块 |
DataQuery |
| ControlSubModule |
string |
否 |
管控子模块 |
MyCatalog |
| ControlDwScope |
string |
是 |
管控范围(Workspace/Tenant) |
Tenant |
| Workspaces |
array |
否 |
关联工作空间 ID 列表 |
|
|
integer |
否 |
工作空间 ID |
1853943 |
|
| Content |
object |
是 |
策略内容。内容受 SecurityStrategySchema 约束 |
|
| Name |
string |
是 |
当前策略关联的 SecurityStrategySchema.name |
DataQuerySecurityStrategySchema |
| DisplayName |
string |
否 |
当前策略关联的 SecurityStrategySchema. displayName |
数据分析 |
| DisplayNameEn |
string |
否 |
当前策略关联的 SecurityStrategySchema. displayNameEn |
Data Analysis |
| ControlModule |
string |
是 |
控制模块。当前策略关联的 SecurityStrategySchema.controlModule |
DataStudio |
| ControlSubModule |
string |
否 |
管控子模块。当前策略关联的 SecurityStrategySchema.controlSubModule |
MyCatalog |
| ControlDwScope |
string |
否 |
管控范围。当前策略关联的 SecurityStrategySchema.name |
Tenant |
| SystemPolicyName |
string |
否 |
当前策略关联的 SecurityStrategySchema.name |
SYSTEM_GENERATE_DEFAULT_DATA_QUERY |
| SystemPolicyDisplayName |
string |
否 |
当前策略关联的 SecurityStrategySchema.name |
Default system generate data query policy |
| Controllers |
array<object> |
否 |
管控项列表, 注意:合法管控项取决于所选 Schema,参考 Controller 定义 及 各 Schema 管控项列表 |
|
|
object |
否 |
管控项 |
||
| Controller |
string |
否 |
管控项标识符,取值见 各 Schema 管控项列表 |
viewCount |
| DisplayName |
string |
否 |
显示名称 |
查询结果-单次展示记录值上限 |
| DisplayNameEn |
string |
否 |
英文显示名称 |
Query Results - Single Display Record Limit |
| Enable |
boolean |
否 |
是否启用该管控项 |
true |
| ControllerValueType |
string |
否 |
值类型(Boolean/Integer/Long/String) |
Integer |
| UserConfigValue |
any |
否 |
用户配置值,类型取决于 |
10 |
| BasicEditionDefaultValue |
any |
否 |
基础版默认值 |
0 |
| StandardEditionDefaultValue |
any |
否 |
标准版默认值 |
100000 |
| ProfessionalEditionDefaultValue |
any |
否 |
专业版默认值 |
200000 |
| EnterpriseEditionDefaultValue |
any |
否 |
企业版默认值 |
500000 |
| BasicEditionIntervalValue |
array |
否 |
基础版有效值区间[min, max] |
|
|
integer |
否 |
区间起止值 |
0 |
|
| StandardEditionIntervalValue |
array |
否 |
标准版有效值区间[min, max] |
|
|
integer |
否 |
区间起止值 |
100000 |
|
| ProfessionalEditionIntervalValue |
array |
否 |
专业版有效值区间[min, max] |
|
|
integer |
否 |
区间起止值 |
200000 |
|
| EnterpriseEditionIntervalValue |
array |
否 |
企业版有效值区间[min, max] |
|
|
integer |
否 |
区间起止值 |
500000 |
|
| ClientToken |
string |
否 |
幂等参数。用于避免多次调用导致操作重复。 |
ABFUOEUOTRTRJKE |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
API 请求 ID |
0bc5df3a17****903790e8e8a |
| Id |
integer |
安全策略 ID |
12345 |
示例
正常返回示例
JSON格式
{
"RequestId": "0bc5df3a17****903790e8e8a",
"Id": 12345
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。