用於建立新的安全管控策略,支援多種模組和子模組設定。需要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
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。