GetSecurityStrategy

Updated at:

Retrieves the details of a security policy based on the provided security policy ID.

Operation description

Request description

  • This API retrieves all configuration information of a specific security policy by using the specified security policy ID.

  • Ensure that the provided Id parameter value is valid and exists. Otherwise, an error message is returned.

  • The returned data structure includes the basic information of the policy, such as the name and description, and the detailed policy content, such as control items and their settings.

  • Note: Some fields of system default policies may be protected from modification or deletion.

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:GetSecurityStrategy

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Id

integer

Yes

The security policy ID.

13

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The API request ID.

0bc5df3a17****903790e8e8a

SecurityStrategy

object

The security policy.

Id

integer

The policy ID.

13

Name

string

The policy name.

Default Data Analysis policy

Description

string

The policy description.

Controls the security behavior of query results in the Data Analysis module

SchemaName

string

The schema template name.

Valid values:

  • DataStudioMyCatalogSecurityStrategySchema :

    The Data Studio personal data catalog security policy schema.

  • DataQuerySecurityStrategySchema :

    The Data Analysis security policy schema.

  • DataStudioSecurityStrategySchema :

    The Data Studio security policy schema.

DataQuerySecurityStrategySchema

ControlModule

string

The control module.

Valid values:

  • DataStudio :

    Data Studio.

  • DataQuery :

    Data Analysis.

DataQuery

ControlSubModule

string

The control sub-module.

Valid values:

  • MyCatalog :

    Personal data catalog.

MyCatalog

ControlDwScope

string

The control scope (Workspace/Tenant).

Valid values:

  • Tenant :

    Tenant.

  • Workspace :

    Workspace.

Tenant

Workspaces

array

The list of associated workspace IDs.

integer

The workspace ID.

4843434

Enabled

boolean

Specifies whether the policy is enabled.

true

OriginPolicyId

integer

The source ID of the system default policy.

12

Creator

string

The user ID of the creator.

203322746501002787

Updater

string

The user 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:

  • DataStudioMyCatalogSecurityStrategySchema :

    The Data Studio personal data catalog security policy schema.

  • DataQuerySecurityStrategySchema :

    The Data Analysis security policy schema.

  • DataStudioSecurityStrategySchema :

    The Data Studio security policy schema.

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:

  • DataStudio :

    Data Studio.

  • DataQuery :

    Data Analysis.

DataQuery

ControlSubModule

string

The control sub-module. The SecurityStrategySchema.controlSubModule associated with the current policy.

Valid values:

  • MyCatalog :

    Personal data catalog.

MyCatalog

ControlDwScope

string

The effective scope.

Valid values:

  • Tenant :

    Tenant

  • Workspace :

    Workspace

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.

Note: 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 control item identifier. 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

Specifies whether the control item is enabled.

true

ControllerValueType

string

The value type (Boolean/Integer/Long/String).

Integer

UserConfigValue

any

The user-configured value. The type depends on ControllerValueType.

10

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 interval [min, max] for Basic Edition.

integer

The start and end values of the interval.

0

StandardEditionIntervalValue

array

The valid value interval [min, max] for Standard Edition.

integer

The start and end values of the interval.

0

ProfessionalEditionIntervalValue

array

The valid value interval [min, max] for Professional Edition.

integer

The start and end values of the interval.

0

EnterpriseEditionIntervalValue

array

The valid value interval [min, max] for Enterprise Edition.

integer

The start and end values of the interval.

0

Examples

Success response

JSON format

{
  "RequestId": "0bc5df3a17****903790e8e8a",
  "SecurityStrategy": {
    "Id": 13,
    "Name": "Default data analytics policy",
    "Description": "Controls the security behavior of query results in the data analytics module",
    "SchemaName": "DataQuerySecurityStrategySchema",
    "ControlModule": "DataQuery",
    "ControlSubModule": "MyCatalog",
    "ControlDwScope": "Tenant",
    "Workspaces": [
      4843434
    ],
    "Enabled": true,
    "OriginPolicyId": 12,
    "Creator": "203322746501002787",
    "Updater": "203322746501002787",
    "CreateTime": "2026-05-25T20:46:19",
    "UpdateTime": "2026-05-25T20:46:19",
    "Content": {
      "Name": "DataQuerySecurityStrategySchema",
      "DisplayName": "Data analytics",
      "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": true,
          "ControllerValueType": "Integer",
          "UserConfigValue": "10",
          "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.