Mengambil detail kebijakan keamanan berdasarkan ID-nya. Operasi ini memerlukan izin administrator tenant DataWorks sekaligus administrator keamanan.
Deskripsi operasi
Permintaan
-
API ini mengambil informasi konfigurasi lengkap untuk kebijakan keamanan berdasarkan ID-nya.
-
API mengembalikan pesan kesalahan jika
Idyang diberikan tidak valid atau tidak ada. -
Respons mencakup informasi dasar kebijakan, seperti nama dan deskripsinya, serta detail kebijakan, seperti item kontrol dan pengaturannya.
-
Catatan: Beberapa field dalam kebijakan default sistem tidak dapat dimodifikasi atau dihapus.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
ID strategi keamanan. |
13 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema respons. |
||
| RequestId |
string |
ID permintaan. |
0bc5df3a17****903790e8e8a |
| SecurityStrategy |
object |
Kebijakan keamanan. |
|
| Id |
integer |
ID kebijakan. |
13 |
| Name |
string |
Nama kebijakan. |
默认数据分析策略 |
| Description |
string |
Deskripsi kebijakan. |
控制数据分析模块的查询结果安全行为 |
| SchemaName |
string |
Nama template skema. |
DataQuerySecurityStrategySchema |
| ControlModule |
string |
Modul kontrol. |
DataQuery |
| ControlSubModule |
string |
Submodul kontrol. |
MyCatalog |
| ControlDwScope |
string |
Cakupan tempat kebijakan berlaku. Nilai yang valid: |
Tenant |
| Workspaces |
array |
Daftar ID workspace yang terkait. |
|
|
integer |
ID workspace. |
4843434 |
|
| Enabled |
boolean |
Apakah kebijakan keamanan diaktifkan. |
true |
| OriginPolicyId |
integer |
ID sumber dari kebijakan sistem default. |
12 |
| Creator |
string |
ID pembuat. |
203322746501002787 |
| Updater |
string |
ID pembaru terakhir. |
203322746501002787 |
| CreateTime |
string |
Waktu saat kebijakan keamanan dibuat. |
2026-05-25T20:46:19 |
| UpdateTime |
string |
Waktu saat kebijakan keamanan terakhir diperbarui. |
2026-05-25T20:46:19 |
| Content |
object |
Konten kebijakan keamanan. Strukturnya didefinisikan oleh |
|
| Name |
string |
The |
DataQuerySecurityStrategySchema |
| DisplayName |
string |
The |
数据分析 |
| DisplayNameEn |
string |
The |
Data Query |
| ControlModule |
string |
The control module. This value corresponds to |
DataQuery |
| ControlSubModule |
string |
The control submodule. This value corresponds to |
MyCatalog |
| ControlDwScope |
string |
The scope where the policy is effective. Valid values: Valid values:
|
Tenant |
| SystemPolicyName |
string |
The name of the system policy. If specified, a default policy is automatically created. |
SYSTEM_GENERATE_DEFAULT_DATA_QUERY |
| SystemPolicyDisplayName |
string |
The display name of the system policy. |
Default system generate data query policy |
| Controllers |
array<object> |
A list of controllers. Note: The available controllers depend on the selected schema. See the documentation for your schema for a list of valid controllers. |
|
|
object |
A controller. |
||
| Controller |
string |
The identifier for the controller. For valid values, see the documentation for the relevant schema. |
viewCount |
| DisplayName |
string |
The display name. |
查询结果-单次展示记录值上限 |
| DisplayNameEn |
string |
The display name in English. |
Query Results - Single Display Record Limit |
| Enable |
boolean |
Whether the controller is enabled. |
true |
| ControllerValueType |
string |
The value type of the controller. Valid values are |
Integer |
| UserConfigValue |
any |
The value configured by the user. The data type of this value is specified by the |
10 |
| BasicEditionDefaultValue |
any |
The default value for Basic Edition. |
10000 |
| StandardEditionDefaultValue |
any |
The default value for Standard Edition. |
10000 |
| ProfessionalEditionDefaultValue |
any |
The default value for Professional Edition. |
10000 |
| EnterpriseEditionDefaultValue |
any |
The default value for Enterprise Edition. |
10000 |
| BasicEditionIntervalValue |
array |
The valid value range for Basic Edition, specified as an array |
|
|
integer |
The start or end value of the range. |
0 |
|
| StandardEditionIntervalValue |
array |
The valid value range for Standard Edition, specified as an array |
|
|
integer |
The start or end value of the range. |
0 |
|
| ProfessionalEditionIntervalValue |
array |
The valid value range for Professional Edition, specified as an array |
|
|
integer |
The start or end value of the range. |
0 |
|
| EnterpriseEditionIntervalValue |
array |
The valid value range for Enterprise Edition, specified as an array |
|
|
integer |
The start or end value of the range. |
0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0bc5df3a17****903790e8e8a",
"SecurityStrategy": {
"Id": 13,
"Name": "默认数据分析策略",
"Description": "控制数据分析模块的查询结果安全行为",
"SchemaName": "DataQuerySecurityStrategySchema",
"ControlModule": "DataQuery",
"ControlSubModule": "MyCatalog",
"ControlDwScope": "Tenant",
"Workspaces": [
4843434
],
"Enabled": true,
"OriginPolicyId": 12,
"Creator": "203322746501002787",
"Updater": "203322746501002787",
"CreateTime": "2026-05-25T20:46:19",
"UpdateTime": "2026-05-25T20:46:19",
"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": "10",
"BasicEditionDefaultValue": "10000",
"StandardEditionDefaultValue": "10000",
"ProfessionalEditionDefaultValue": "10000",
"EnterpriseEditionDefaultValue": "10000",
"BasicEditionIntervalValue": [
0
],
"StandardEditionIntervalValue": [
0
],
"ProfessionalEditionIntervalValue": [
0
],
"EnterpriseEditionIntervalValue": [
0
]
}
]
}
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.