CreateSecurityStrategy
Creates a new security control policy and supports the configuration of multiple modules and submodules. Requires the permissions of a DataWorks tenant administrator and a security administrator.
Operation description
Request description
SchemaName: Select an appropriate schema name based on your business requirements.
ControlModule and ControlSubModule: Specify the module and submodule to which the policy applies. Make sure that they match the selected schema.
ControlDwScope: Define the application scope of the policy, which can be the tenant level or the workspace level.
Workspaces: If
ControlDwScopeis set toWorkspace, you must provide a list of associated workspace IDs.Content.Controllers: The list of control items in the policy content must comply with the valid control item definitions of the selected schema.
System default policies cannot be created by calling this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:CreateSecurityStrategy |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The policy name. |
Default data analysis policy |
| Description |
string |
No |
The description of the policy. |
Controls the security behavior of query results in the data analysis module |
| SchemaName |
string |
Yes |
The name of the schema template. Valid values:
|
DataQuerySecurityStrategySchema |
| ControlModule |
string |
Yes |
The control module. Valid values:
|
DataQuery |
| ControlSubModule |
string |
No |
The control submodule. Valid values:
|
MyCatalog |
| ControlDwScope |
string |
Yes |
The control scope. Valid values:
|
Tenant |
| Workspaces |
array |
No |
The list of associated workspace IDs. |
|
|
integer |
No |
The workspace ID. |
1853943 |
|
| Content |
object |
Yes |
The policy content. The content is constrained by SecurityStrategySchema. |
|
| Name |
string |
Yes |
The name of the SecurityStrategySchema associated with the current policy. Valid values:
|
DataQuerySecurityStrategySchema |
| DisplayName |
string |
No |
The display name of the SecurityStrategySchema associated with the current policy. |
Data analysis |
| DisplayNameEn |
string |
No |
The English display name of the SecurityStrategySchema associated with the current policy. |
Data Analysis |
| ControlModule |
string |
Yes |
The control module. This is the controlModule of the SecurityStrategySchema associated with the current policy. Valid values:
|
DataStudio |
| ControlSubModule |
string |
No |
The control submodule. This is the controlSubModule of the SecurityStrategySchema associated with the current policy. Valid values:
|
MyCatalog |
| ControlDwScope |
string |
No |
The control scope. This is the name of the SecurityStrategySchema associated with the current policy. Valid values:
|
Tenant |
| SystemPolicyName |
string |
No |
The name of the SecurityStrategySchema associated with the current policy. |
SYSTEM_GENERATE_DEFAULT_DATA_QUERY |
| SystemPolicyDisplayName |
string |
No |
The name of the SecurityStrategySchema associated with the current policy. |
Default system generate data query policy |
| Controllers |
array<object> |
No |
The list of control items. Note: Valid control items depend on the selected schema. Refer to the controller definitions and the control item list for each schema. |
|
|
object |
No |
The control item. |
||
| Controller |
string |
No |
The identifier of the control item. For valid values, refer to the control item list for each schema. |
viewCount |
| DisplayName |
string |
No |
The display name. |
Query results - Maximum number of records displayed per query |
| DisplayNameEn |
string |
No |
The English display name. |
Query Results - Single Display Record Limit |
| Enable |
boolean |
No |
Specifies whether to enable the control item. |
true |
| ControllerValueType |
string |
No |
The value type. Valid values: Boolean, Integer, Long, and String. |
Integer |
| UserConfigValue |
any |
No |
The user-configured value. The type depends on |
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 range for Basic Edition, in the format of [min, max]. |
|
|
integer |
No |
The start and end values of the range. |
0 |
|
| StandardEditionIntervalValue |
array |
No |
The valid value range for Standard Edition, in the format of [min, max]. |
|
|
integer |
No |
The start and end values of the range. |
100000 |
|
| ProfessionalEditionIntervalValue |
array |
No |
The valid value range for Professional Edition, in the format of [min, max]. |
|
|
integer |
No |
The start and end values of the range. |
200000 |
|
| EnterpriseEditionIntervalValue |
array |
No |
The valid value range for Enterprise Edition, in the format of [min, max]. |
|
|
integer |
No |
The start and end values of the range. |
500000 |
|
| ClientToken |
string |
No |
The idempotency parameter. This parameter is used to prevent duplicate operations caused by multiple calls. |
ABFUOEUOTRTRJKE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The API request ID. |
0bc5df3a17****903790e8e8a |
| Id |
integer |
The security policy ID. |
12345 |
Examples
Success response
JSON format
{
"RequestId": "0bc5df3a17****903790e8e8a",
"Id": 12345
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.