ListSecurityStrategies
Retrieves a paginated list of security policies in the system based on specified conditions. This operation requires DataWorks tenant administrator and security administrator permissions.
Operation description
Request description
This operation retrieves the configured security policies in the system in pages.
You can use the
ControlModuleandControlSubModuleparameters to filter policies under specific modules or submodules.The pagination parameters include
PageNumandPageSize, which indicate the page number and the number of entries per page. The default values are 1 and 20.If you need further pagination control, you can use the
MaxResultsandNextTokenparameters (private parameters).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListSecurityStrategies |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ControlModule |
string |
No |
The control module. Valid values:
|
DataQuery |
| ControlSubModule |
string |
No |
The control submodule. Valid values:
|
MyCatalog |
| PageNumber |
integer |
No |
The page number. Pages start from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 20. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
0bc5df3a17****903790e8e8a |
| PagingInfo |
object |
The pagination information. |
|
| PageNumber |
integer |
The page number. Default value: 1. |
1 |
| PageSize |
integer |
The number of entries per page. Default value: 20. |
10 |
| TotalCount |
integer |
The total number of records. |
12 |
| SecurityStrategies |
array<object> |
The list of security policies. |
|
|
array<object> |
The security policy. |
||
| Id |
string |
The ID of the policy. |
12345 |
| Name |
string |
The policy name. |
Default Data Analysis policy |
| Description |
string |
The description of the policy. |
Controls the security behavior of query results in the Data Analysis module |
| SchemaName |
string |
The name of the schema template. Valid values:
|
DataQuerySecurityStrategySchema |
| ControlModule |
string |
The control module. Valid values:
|
DataQuery |
| ControlSubModule |
string |
The control submodule. Valid values:
|
MyCatalog |
| ControlDwScope |
string |
The control scope (Workspace/Tenant). Valid values:
|
Tenant |
| Workspaces |
array |
The list of associated workspace IDs. |
|
|
integer |
The workspace ID. |
343434 |
|
| Enabled |
boolean |
Indicates whether the policy is enabled. |
false |
| OriginPolicyId |
integer |
The source ID of the system default policy. |
12 |
| Creator |
string |
The ID of the creator. |
203322746501002787 |
| Updater |
string |
The ID of the last updater. |
203322746501002787 |
| CreateTime |
string |
The creation time. The format is YYYY-MM-DDTHH:mm:ss. The time zone is not specified in the current document. |
2026-05-25T20:46:19 |
| UpdateTime |
string |
The update time. The format is YYYY-MM-DDTHH:mm:ss. The time zone is not specified in the current document. |
2026-05-25T20:46:19 |
| Content |
object |
The policy content. The content is constrained by SecurityStrategySchema. |
|
| Name |
string |
The SecurityStrategySchema.name associated with the current policy. Valid values:
|
DataQuerySecurityStrategySchema |
| DisplayName |
string |
The SecurityStrategySchema.displayName associated with the current policy. |
Data Analysis |
| DisplayNameEn |
string |
The SecurityStrategySchema.displayNameEn associated with the current policy. |
Data Query |
| ControlModule |
string |
The control module. The SecurityStrategySchema.controlModule associated with the current policy. Valid values:
|
DataQuery |
| ControlSubModule |
string |
The control submodule. The SecurityStrategySchema.controlSubModule associated with the current policy. Valid values:
|
MyCatalog |
| ControlDwScope |
string |
The control scope. Valid values:
|
Tenant |
| SystemPolicyName |
string |
The system policy name. If this parameter is not empty, the system performs automatic creation of a default policy. |
SYSTEM_GENERATE_DEFAULT_DATA_QUERY |
| SystemPolicyDisplayName |
string |
The display name of the system policy. |
Default system generate data query policy |
| Controllers |
array<object> |
The list of control items. Valid control items depend on the selected schema. Refer to the controller definition and the control item list for each schema. |
|
|
object |
The control item. |
||
| Controller |
string |
The identifier of the control item. For valid values, see the control item list for each schema. |
viewCount |
| DisplayName |
string |
The display name. |
Query results - Maximum number of records displayed at a time |
| DisplayNameEn |
string |
The English display name. |
Query Results - Single Display Record Limit |
| Enable |
boolean |
Indicates whether the control item is enabled. |
|
| ControllerValueType |
string |
The value type (Boolean/Integer/Long/String). |
Integer |
| UserConfigValue |
any |
The user-configured value. The type depends on ControllerValueType. |
20 |
| 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 [min, max]. |
|
|
integer |
The start and end values of the range. |
0 |
|
| StandardEditionIntervalValue |
array |
The valid value range for Standard Edition [min, max]. |
|
|
integer |
The start and end values of the range. |
0 |
|
| ProfessionalEditionIntervalValue |
array |
The valid value range for Professional Edition [min, max]. |
|
|
integer |
The start and end values of the range. |
0 |
|
| EnterpriseEditionIntervalValue |
array |
The valid value range for Enterprise Edition [min, max]. |
|
|
integer |
The start and end values of the range. |
0 |
Examples
Success response
JSON format
{
"RequestId": "0bc5df3a17****903790e8e8a",
"PagingInfo": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 12,
"SecurityStrategies": [
{
"Id": "12345",
"Name": "Default data analysis policy",
"Description": "Controls the security behavior of query results in the data analysis module",
"SchemaName": "DataQuerySecurityStrategySchema",
"ControlModule": "DataQuery",
"ControlSubModule": "MyCatalog",
"ControlDwScope": "Tenant",
"Workspaces": [
343434
],
"Enabled": false,
"OriginPolicyId": 12,
"Creator": "203322746501002787",
"Updater": "203322746501002787",
"CreateTime": "2026-05-25T20:46:19",
"UpdateTime": "2026-05-25T20:46:19",
"Content": {
"Name": "DataQuerySecurityStrategySchema",
"DisplayName": "Data analysis",
"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": "Query results - Maximum number of records displayed at a time",
"DisplayNameEn": "Query Results - Single Display Record Limit",
"Enable": false,
"ControllerValueType": "Integer",
"UserConfigValue": "20",
"BasicEditionDefaultValue": "10000",
"StandardEditionDefaultValue": "10000",
"ProfessionalEditionDefaultValue": "10000",
"EnterpriseEditionDefaultValue": "10000",
"BasicEditionIntervalValue": [
0
],
"StandardEditionIntervalValue": [
0
],
"ProfessionalEditionIntervalValue": [
0
],
"EnterpriseEditionIntervalValue": [
0
]
}
]
}
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.