UpdateSecurityStrategy
Updates the configuration of an existing security policy. Requires DataWorks tenant administrator and security administrator permissions.
Operation description
Before you begin
Activate DataWorks in the target region and use an identity with tenant-level security policy management permissions to call this operation. Obtain the policy ID of the current tenant from PagingInfo.SecurityStrategies[].Id in the response of ListSecurityStrategies, and then verify the scope and configuration of the existing policy by calling GetSecurityStrategy.
Update rules
For workspace-level policies, submit the updated complete list of workspace IDs in
Workspaces. To retain the existing scope, pass back the original list. For tenant-level policies,Workspacesmust not contain any workspaces.For system default policies, only
Content.Controllerscan be adjusted in the control configuration. When updating control items,Controllersmust comply with the schema used by the policy.You can use
ClientTokento ensure request idempotence.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:UpdateSecurityStrategy |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The policy ID. |
13 |
| Name |
string |
No |
The policy name. |
Default DataAnalysis policy |
| Description |
string |
No |
The policy description. |
Controls the security behavior of query results in the DataAnalysis module |
| Workspaces |
array |
No |
The list of associated workspace IDs. |
|
|
integer |
No |
The workspace ID. |
12343 |
|
| Content |
object |
Yes |
The policy content. The content is constrained by SecurityStrategySchema. |
|
| Controllers |
array<object> |
Yes |
The list of control items. Note: Valid control items depend on the selected schema. Refer to the controller definition and the control item list for each schema. |
|
|
object |
No |
The control item. |
||
| Controller |
string |
No |
The control item identifier. For valid values, see 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 controller value type (Boolean, Integer, Long, or String). |
Integer |
| UserConfigValue |
any |
No |
The user-configured value. The data type depends on ControllerValueType. |
20 |
| BasicEditionDefaultValue |
any |
No |
The default value for Basic Edition. |
10000 |
| StandardEditionDefaultValue |
any |
No |
The default value for Standard Edition. |
10000 |
| ProfessionalEditionDefaultValue |
any |
No |
The default value for Professional Edition. |
10000 |
| EnterpriseEditionDefaultValue |
any |
No |
The default value for Enterprise Edition. |
10000 |
| BasicEditionIntervalValue |
array |
No |
The valid value interval [min, max] for Basic Edition. |
|
|
integer |
No |
The start and end values of the interval. |
0 |
|
| StandardEditionIntervalValue |
array |
No |
The valid value interval [min, max] for Standard Edition. |
|
|
integer |
No |
The start and end values of the interval. |
0 |
|
| ProfessionalEditionIntervalValue |
array |
No |
The valid value interval [min, max] for Professional Edition. |
|
|
integer |
No |
The start and end values of the interval. |
0 |
|
| EnterpriseEditionIntervalValue |
array |
No |
The valid value interval [min, max] for Enterprise Edition. |
|
|
integer |
No |
The start and end values of the interval. |
0 |
|
| ClientToken |
string |
No |
The idempotence parameter. Used to prevent duplicate operations caused by multiple calls. |
1AFAE64E-D1BE-432B-A9***** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The error code in the API response. It is not empty when an error occurs during the call. |
||
| RequestId |
string |
The API request ID. |
0bc5df3a17***903790e8e8a |
Examples
Success response
JSON format
{
"RequestId": "0bc5df3a17***903790e8e8a"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.