UpdateSecurityStrategy

更新时间:
复制 MD 格式

To modify the configuration of an existing security policy, you must be both a DataWorks tenant administrator and a security administrator.

Operation description

Usage

  • Use this API to update a specified security policy, including its name, description, associated workspace IDs, and policy content.

  • You cannot modify some properties of default system policies, such as the schema name and control module.

  • When ControlDwScope is set to Workspace, use the Workspaces parameter to associate the policy with specific workspaces.

  • When updating the policy content (Content), ensure that the provided controllers (Controllers) conform to the requirements of the selected schema.

  • The optional ClientToken parameter ensures 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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Id

integer

Yes

The policy ID.

13

Name

string

No

The policy name.

默认数据分析策略

Description

string

No

The policy description.

控制数据分析模块的查询结果安全行为

Workspaces

array

No

A list of associated workspace IDs.

integer

No

A workspace ID.

12343

Content

object

Yes

The policy content, which is constrained by the SecurityStrategySchema.

Controllers

array<object>

Yes

A list of controllers.

Note: The valid controllers depend on the selected schema. For more information, see the controller definition 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

Indicates whether the controller is enabled.

true

ControllerValueType

string

No

The data type of the controller's value. Valid values: Boolean, Integer, Long, and String.

Integer

UserConfigValue

any

No

The user-configured value. The type of this value is determined by the ControllerValueType parameter.

20

BasicEditionDefaultValue

any

No

The default value for the Basic edition.

10000

StandardEditionDefaultValue

any

No

The default value for the Standard edition.

10000

ProfessionalEditionDefaultValue

any

No

The default value for the Professional edition.

10000

EnterpriseEditionDefaultValue

any

No

The default value for the Enterprise edition.

10000

BasicEditionIntervalValue

array

No

The value range for the Basic edition, specified as [min, max].

integer

No

The minimum or maximum value of the range.

0

StandardEditionIntervalValue

array

No

The value range for the Standard edition, specified as [min, max].

integer

No

The minimum or maximum value of the range.

0

ProfessionalEditionIntervalValue

array

No

The value range for the Professional edition, specified as [min, max].

integer

No

The minimum or maximum value of the range.

0

EnterpriseEditionIntervalValue

array

No

The value range for the Enterprise edition, specified as [min, max].

integer

No

The minimum or maximum value of the range.

0

ClientToken

string

No

A client token to ensure request idempotence.

1AFAE64E-D1BE-432B-A9*****

Response elements

Element

Type

Description

Example

object

Indicates the error code if the request fails.

RequestId

string

The 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.