Encontra a política de segurança que melhor corresponde às condições fornecidas.
Descrição da operação
Descrição da solicitação
Esta API é usada para encontrar a política de segurança mais adequada com base no módulo de controle, submódulo e ID do workspace fornecidos. Se um ID de workspace for fornecido, a política no nível do workspace especificado será correspondida primeiro; caso contrário, a política no nível do tenant será retornada. Observe que as políticas do sistema não podem ser excluídas ou modificadas.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ControlModule |
string |
Não |
Módulo de controle, usado para corresponder ao tipo de política de segurança. Valores válidos:
|
DataQuery |
| ControlSubModule |
string |
Não |
Submódulo de controle, usado para corresponder ao tipo de política de segurança. Valores válidos:
|
MyCatalog |
| WorkspaceId |
integer |
Não |
ID do workspace, usado para corresponder precisamente às políticas no nível do workspace. |
12345 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Schema da resposta. |
||
| RequestId |
string |
ID da solicitação da API. |
0bc5df3a17***903790e8e8a |
| Data |
object |
Objeto de dados. |
|
| SecurityStrategy |
object |
Política de segurança. |
|
| Id |
integer |
Policy ID |
16 |
| Name |
string |
Policy name |
默认数据分析策略 |
| Description |
string |
Policy description |
控制数据分析模块的查询结果安全行为 |
| SchemaName |
string |
Schema template name |
DataQuerySecurityStrategySchema |
| ControlModule |
string |
Control module |
DataQuery |
| ControlSubModule |
string |
Control sub-module |
MyCatalog |
| ControlDwScope |
string |
Control scope (Workspace/Tenant). |
Tenant |
| Workspaces |
array |
Associated workspace ID list |
|
|
integer |
Workspace ID. |
12345 |
|
| Enabled |
boolean |
Whether enabled |
true |
| Content |
object |
Policy content. Refer to the StrategyContent definition. |
|
| Name |
string |
Schema name |
DataQuerySecurityStrategySchema |
| DisplayName |
string |
Display name |
数据分析 |
| DisplayNameEn |
string |
English display name |
Data Query |
| ControlModule |
string |
Control module |
DataQuery |
| ControlSubModule |
string |
Control sub-module |
MyCatalog |
| ControlDwScope |
string |
Control scope |
Tenant |
| SystemPolicyName |
string |
System policy name (when not empty, the system automatically creates a default policy). |
SYSTEM_GENERATE_DEFAULT_DATA_QUERY |
| SystemPolicyDisplayName |
string |
System policy display name. |
Default system generate data query policy |
| Controllers |
array<object> |
Controller list. Note: Valid controllers depend on the selected Schema. Refer to the Controller definition and the controller list of each Schema. |
|
|
object |
Controller. |
||
| Controller |
string |
Controller identifier. For values, see the controller list of each Schema. |
viewCount |
| DisplayName |
string |
Display name. |
查询结果-单次展示记录值上限 |
| DisplayNameEn |
string |
English display name |
Query Results - Single Display Record Limit |
| Enable |
boolean |
Whether this controller is enabled |
true |
| ControllerValueType |
string |
Value type (Boolean/Integer/Long/String) |
Integer |
| UserConfigValue |
any |
User-configured value. The type depends on ControllerValueType. |
20 |
| BasicEditionDefaultValue |
any |
Basic Edition default value |
0 |
| StandardEditionDefaultValue |
any |
Standard Edition default value |
10000 |
| ProfessionalEditionDefaultValue |
any |
Professional Edition default value. |
200000 |
| EnterpriseEditionDefaultValue |
any |
Enterprise Edition default value. |
500000 |
| BasicEditionIntervalValue |
array |
Basic Edition valid value range [min, max]. |
|
|
integer |
Range start/end value. |
0 |
|
| StandardEditionIntervalValue |
array |
Standard Edition valid value range [min, max]. |
|
|
integer |
Range start/end value. |
0 |
|
| ProfessionalEditionIntervalValue |
array |
Professional Edition valid value range [min, max]. |
|
|
integer |
Range start/end value. |
0 |
|
| EnterpriseEditionIntervalValue |
array |
Enterprise Edition valid value range [min, max]. |
|
|
integer |
Range start/end value. |
0 |
|
| OriginPolicyId |
integer |
System default policy source ID. |
12 |
| Creator |
string |
Creator user ID. |
203322746501002787 |
| Updater |
string |
Last updater user ID. |
207947397706614297 |
| CreateTime |
string |
Creation time. |
2026-05-25T20:46:19 |
| UpdateTime |
string |
Update time. |
2026-05-25T20:46:19 |
| Edition |
string |
Edição adquirida do DataWorks. |
STANDARD |
| EditionDisplayName |
string |
Nome da edição adquirida do DataWorks. |
标准版 |
Exemplos
Resposta de sucesso
JSON formato
{
"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": "标准版"
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.