根據給定條件查詢最匹配的安全策略。
介面說明
請求說明
該 API 用於根據提供的管控模組、子模組及工作空間 ID 查詢最適合的安全策略。如果提供了工作空間 ID,則會優先比對指定工作空間層級的策略;否則,將回傳租戶層級的策略。請注意,系統策略不能被刪除或修改。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ControlModule |
string |
否 |
管控模組,用於比對安全策略類型 枚舉值:
|
DataQuery |
| ControlSubModule |
string |
否 |
管控子模組,用於比對安全策略類型 枚舉值:
|
MyCatalog |
| WorkspaceId |
integer |
否 |
工作空間 ID,用於精確比對工作空間層級策略 |
12345 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
API 請求 ID |
0bc5df3a17***903790e8e8a |
| Data |
object |
資料物件 |
|
| SecurityStrategy |
object |
安全策略 |
|
| Id |
integer |
16 |
|
| Name |
string |
默认数据分析策略 |
|
| Description |
string |
控制数据分析模块的查询结果安全行为 |
|
| SchemaName |
string |
DataQuerySecurityStrategySchema |
|
| ControlModule |
string |
DataQuery |
|
| ControlSubModule |
string |
MyCatalog |
|
| ControlDwScope |
string |
Tenant |
|
| Workspaces |
array |
||
|
integer |
12345 |
||
| Enabled |
boolean |
true |
|
| Content |
object |
||
| Name |
string |
DataQuerySecurityStrategySchema |
|
| DisplayName |
string |
数据分析 |
|
| DisplayNameEn |
string |
Data Query |
|
| ControlModule |
string |
DataQuery |
|
| ControlSubModule |
string |
MyCatalog |
|
| ControlDwScope |
string |
Tenant |
|
| SystemPolicyName |
string |
SYSTEM_GENERATE_DEFAULT_DATA_QUERY |
|
| SystemPolicyDisplayName |
string |
Default system generate data query policy |
|
| Controllers |
array<object> |
||
|
object |
|||
| Controller |
string |
viewCount |
|
| DisplayName |
string |
查询结果-单次展示记录值上限 |
|
| DisplayNameEn |
string |
Query Results - Single Display Record Limit |
|
| Enable |
boolean |
true |
|
| ControllerValueType |
string |
Integer |
|
| UserConfigValue |
any |
20 |
|
| BasicEditionDefaultValue |
any |
0 |
|
| StandardEditionDefaultValue |
any |
10000 |
|
| ProfessionalEditionDefaultValue |
any |
200000 |
|
| EnterpriseEditionDefaultValue |
any |
500000 |
|
| BasicEditionIntervalValue |
array |
||
|
integer |
0 |
||
| StandardEditionIntervalValue |
array |
||
|
integer |
0 |
||
| ProfessionalEditionIntervalValue |
array |
||
|
integer |
0 |
||
| EnterpriseEditionIntervalValue |
array |
||
|
integer |
0 |
||
| OriginPolicyId |
integer |
12 |
|
| Creator |
string |
203322746501002787 |
|
| Updater |
string |
207947397706614297 |
|
| CreateTime |
string |
2026-05-25T20:46:19 |
|
| UpdateTime |
string |
2026-05-25T20:46:19 |
|
| Edition |
string |
購買的 Datawork 版本 |
STANDARD |
| EditionDisplayName |
string |
購買的 Datawork 版本名稱 |
标准版 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "0bc5df3a17***903790e8e8a",
"Data": {
"SecurityStrategy": {
"Id": 16,
"Name": "默认数据分析策略",
"Description": "控制数据分析模块的查询结果安全行为",
"SchemaName": "DataQuerySecurityStrategySchema",
"ControlModule": "DataQuery",
"ControlSubModule": "MyCatalog",
"ControlDwScope": "Tenant",
"Workspaces": [
12345
],
"Enabled": true,
"Content": {
"Name": "DataQuerySecurityStrategySchema",
"DisplayName": "数据分析",
"DisplayNameEn": "Data Query",
"ControlModule": "DataQuery",
"ControlSubModule": "MyCatalog",
"ControlDwScope": "Tenant",
"SystemPolicyName": "SYSTEM_GENERATE_DEFAULT_DATA_QUERY",
"SystemPolicyDisplayName": "Default system generate data query policy",
"Controllers": [
{
"Controller": "viewCount",
"DisplayName": "查询结果-单次展示记录值上限",
"DisplayNameEn": "Query Results - Single Display Record Limit",
"Enable": true,
"ControllerValueType": "Integer",
"UserConfigValue": "20",
"BasicEditionDefaultValue": "0",
"StandardEditionDefaultValue": "10000",
"ProfessionalEditionDefaultValue": "200000",
"EnterpriseEditionDefaultValue": "500000",
"BasicEditionIntervalValue": [
0
],
"StandardEditionIntervalValue": [
0
],
"ProfessionalEditionIntervalValue": [
0
],
"EnterpriseEditionIntervalValue": [
0
]
}
]
},
"OriginPolicyId": 12,
"Creator": "203322746501002787",
"Updater": "207947397706614297",
"CreateTime": "2026-05-25T20:46:19",
"UpdateTime": "2026-05-25T20:46:19"
},
"Edition": "STANDARD",
"EditionDisplayName": "标准版"
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。