UpdateSecurityStrategy

Updated at:

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, Workspaces must not contain any workspaces.

  • For system default policies, only Content.Controllers can be adjusted in the control configuration. When updating control items, Controllers must comply with the schema used by the policy.

  • You can use ClientToken to ensure request idempotence.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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.