Membuat kebijakan kontrol keamanan baru untuk mengonfigurasi berbagai modul dan submodul. Memerlukan izin administrator penyewa DataWorks dan administrator keamanan.
Deskripsi operasi
Request
-
SchemaName: Select a schema that fits your business needs.
-
ControlModule and ControlSubModule: Specify the module and submodule for the policy, ensuring they match the selected schema.
-
ControlDwScope: Set the policy scope to either the tenant or workspace level.
-
Workspaces: If
ControlDwScopeis set toWorkspace, provide the corresponding workspace IDs. -
Content.Controllers: The controllers must match the definitions in the selected schema.
-
This operation cannot create system default policies.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
Nama strategi. |
默认数据分析策略 |
| Description |
string |
No |
Deskripsi strategi. |
控制数据分析模块的查询结果安全行为 |
| SchemaName |
string |
Yes |
Nama templat skema. |
DataQuerySecurityStrategySchema |
| ControlModule |
string |
Yes |
Modul kontrol. |
DataQuery |
| ControlSubModule |
string |
No |
Submodul kontrol. |
MyCatalog |
| ControlDwScope |
string |
Yes |
Cakupan (dalam OAuth) kontrol. Nilai valid: Workspace dan Tenant. |
Tenant |
| Workspaces |
array |
No |
Daftar ID ruang kerja yang terkait. |
|
|
integer |
No |
The workspace ID. |
1853943 |
|
| Content |
object |
Yes |
Konten strategi. Nilai ini dibatasi oleh |
|
| Name |
string |
Yes |
The |
DataQuerySecurityStrategySchema |
| DisplayName |
string |
No |
The |
数据分析 |
| DisplayNameEn |
string |
No |
The |
Data Analysis |
| ControlModule |
string |
Yes |
The control module. This corresponds to the |
DataStudio |
| ControlSubModule |
string |
No |
The control submodule. This corresponds to the |
MyCatalog |
| ControlDwScope |
string |
No |
The control scope. This corresponds to the |
Tenant |
| SystemPolicyName |
string |
No |
The |
SYSTEM_GENERATE_DEFAULT_DATA_QUERY |
| SystemPolicyDisplayName |
string |
No |
The |
Default system generate data query policy |
| Controllers |
array<object> |
No |
A list of controllers. Note: Valid controllers depend on the selected schema. For more information, see the controller definitions and the list of controllers for each schema. |
|
|
object |
No |
A controller. |
||
| Controller |
string |
No |
The controller identifier. For valid values, see the list of controllers for each schema. |
viewCount |
| DisplayName |
string |
No |
The display name. |
查询结果-单次展示记录值上限 |
| DisplayNameEn |
string |
No |
The English display name. |
Query Results - Single Display Record Limit |
| Enable |
boolean |
No |
Specifies whether to enable this controller. |
true |
| ControllerValueType |
string |
No |
The value type. Valid values: |
Integer |
| UserConfigValue |
any |
No |
The user-configured value. The type of this value depends on the |
10 |
| BasicEditionDefaultValue |
any |
No |
The default value for Basic Edition. |
0 |
| StandardEditionDefaultValue |
any |
No |
The default value for Standard Edition. |
100000 |
| ProfessionalEditionDefaultValue |
any |
No |
The default value for Professional Edition. |
200000 |
| EnterpriseEditionDefaultValue |
any |
No |
The default value for Enterprise Edition. |
500000 |
| BasicEditionIntervalValue |
array |
No |
The valid value interval for Basic Edition, in the format |
|
|
integer |
No |
An interval boundary value. |
0 |
|
| StandardEditionIntervalValue |
array |
No |
The valid value interval for Standard Edition, in the format |
|
|
integer |
No |
An interval boundary value. |
100000 |
|
| ProfessionalEditionIntervalValue |
array |
No |
The valid value interval for Professional Edition, in the format |
|
|
integer |
No |
An interval boundary value. |
200000 |
|
| EnterpriseEditionIntervalValue |
array |
No |
The valid value interval for Enterprise Edition, in the format |
|
|
integer |
No |
An interval boundary value. |
500000 |
|
| ClientToken |
string |
No |
Token yang dihasilkan klien untuk memastikan idempotensi permintaan, mencegah operasi duplikat jika Anda mengulang permintaan. |
ABFUOEUOTRTRJKE |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
0bc5df3a17****903790e8e8a |
| Id |
integer |
The security strategy ID. |
12345 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0bc5df3a17****903790e8e8a",
"Id": 12345
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.