All Products
Search
Document Center

DataWorks:GetSecurityStrategy

Last Updated:Jun 11, 2026

Mengambil detail kebijakan keamanan berdasarkan ID-nya. Operasi ini memerlukan izin administrator tenant DataWorks sekaligus administrator keamanan.

Deskripsi operasi

Permintaan

  • API ini mengambil informasi konfigurasi lengkap untuk kebijakan keamanan berdasarkan ID-nya.

  • API mengembalikan pesan kesalahan jika Id yang diberikan tidak valid atau tidak ada.

  • Respons mencakup informasi dasar kebijakan, seperti nama dan deskripsinya, serta detail kebijakan, seperti item kontrol dan pengaturannya.

  • Catatan: Beberapa field dalam kebijakan default sistem tidak dapat dimodifikasi atau dihapus.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

Id

integer

Yes

ID strategi keamanan.

13

Elemen respons

Element

Type

Description

Example

object

Skema respons.

RequestId

string

ID permintaan.

0bc5df3a17****903790e8e8a

SecurityStrategy

object

Kebijakan keamanan.

Id

integer

ID kebijakan.

13

Name

string

Nama kebijakan.

默认数据分析策略

Description

string

Deskripsi kebijakan.

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

SchemaName

string

Nama template skema.

DataQuerySecurityStrategySchema

ControlModule

string

Modul kontrol.

DataQuery

ControlSubModule

string

Submodul kontrol.

MyCatalog

ControlDwScope

string

Cakupan tempat kebijakan berlaku. Nilai yang valid: Workspace atau Tenant.

Tenant

Workspaces

array

Daftar ID workspace yang terkait.

integer

ID workspace.

4843434

Enabled

boolean

Apakah kebijakan keamanan diaktifkan.

true

OriginPolicyId

integer

ID sumber dari kebijakan sistem default.

12

Creator

string

ID pembuat.

203322746501002787

Updater

string

ID pembaru terakhir.

203322746501002787

CreateTime

string

Waktu saat kebijakan keamanan dibuat.

2026-05-25T20:46:19

UpdateTime

string

Waktu saat kebijakan keamanan terakhir diperbarui.

2026-05-25T20:46:19

Content

object

Konten kebijakan keamanan. Strukturnya didefinisikan oleh SecurityStrategySchema.

Name

string

The name field from the associated SecurityStrategySchema.

DataQuerySecurityStrategySchema

DisplayName

string

The displayName field from the associated SecurityStrategySchema.

数据分析

DisplayNameEn

string

The displayNameEn field from the associated SecurityStrategySchema.

Data Query

ControlModule

string

The control module. This value corresponds to controlModule in the associated SecurityStrategySchema.

DataQuery

ControlSubModule

string

The control submodule. This value corresponds to controlSubModule in the associated SecurityStrategySchema.

MyCatalog

ControlDwScope

string

The scope where the policy is effective. Valid values:

Valid values:

  • Tenant :

    Applies at the tenant level.

  • Workspace :

    Applies at the workspace level.

Tenant

SystemPolicyName

string

The name of the system policy. If specified, a default policy is automatically created.

SYSTEM_GENERATE_DEFAULT_DATA_QUERY

SystemPolicyDisplayName

string

The display name of the system policy.

Default system generate data query policy

Controllers

array<object>

A list of controllers.

Note: The available controllers depend on the selected schema. See the documentation for your schema for a list of valid controllers.

object

A controller.

Controller

string

The identifier for the controller. For valid values, see the documentation for the relevant schema.

viewCount

DisplayName

string

The display name.

查询结果-单次展示记录值上限

DisplayNameEn

string

The display name in English.

Query Results - Single Display Record Limit

Enable

boolean

Whether the controller is enabled.

true

ControllerValueType

string

The value type of the controller. Valid values are Boolean, Integer, Long, and String.

Integer

UserConfigValue

any

The value configured by the user. The data type of this value is specified by the ControllerValueType parameter.

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 range for Basic Edition, specified as an array [min, max].

integer

The start or end value of the range.

0

StandardEditionIntervalValue

array

The valid value range for Standard Edition, specified as an array [min, max].

integer

The start or end value of the range.

0

ProfessionalEditionIntervalValue

array

The valid value range for Professional Edition, specified as an array [min, max].

integer

The start or end value of the range.

0

EnterpriseEditionIntervalValue

array

The valid value range for Enterprise Edition, specified as an array [min, max].

integer

The start or end value of the range.

0

Contoh

Respons sukses

JSONformat

{
  "RequestId": "0bc5df3a17****903790e8e8a",
  "SecurityStrategy": {
    "Id": 13,
    "Name": "默认数据分析策略",
    "Description": "控制数据分析模块的查询结果安全行为",
    "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": "数据分析",
      "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": "查询结果-单次展示记录值上限",
          "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
          ]
        }
      ]
    }
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.