All Products
Search
Document Center

Data Security Center:DescribeCategoryTemplateRuleList

Last Updated:Jun 10, 2026

Mengkueri daftar aturan berhalaman dalam templat klasifikasi data.

Deskripsi operasi

Retrieves the rules in a data classification template to help you review the rule details.

QPS limit

The queries per second (QPS) limit for a single user on this operation is 10 calls per second. If you exceed this limit, API calls are throttled. This may affect your business. Plan your calls accordingly.

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

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

yundun-sddp:DescribeCategoryTemplateRuleList

list

*全部资源

*

  • acs:ResourceGroupId
None

Parameter permintaan

Parameter

Type

Required

Description

Example

Lang

string

No

Bahasa permintaan dan tanggapan. Nilai default adalah zh_cn. Nilai valid:

  • zh_cn: Bahasa Tionghoa Sederhana.

  • en_us: Bahasa Inggris AS.

zh_cn

PageSize

integer

No

Jumlah aturan templat yang dikembalikan pada setiap halaman. Nilai default adalah 10.

10

CurrentPage

integer

No

Nomor halaman. Nilai default adalah 1.

1

Status

integer

No

Status aturan templat. Nilai default adalah null. Nilai valid:

  • 0: Aturan dinonaktifkan.

  • 1: Aturan diaktifkan.

  • null: Semua aturan dikembalikan, terlepas dari statusnya.

1

RiskLevelId

integer

No

Tingkat risiko aturan templat. Nilai berkisar dari 1 hingga 11. Nilai default adalah null. Nilai valid:

  • 1: Tidak ada risiko.

  • 2: S1.

  • 3: S2.

  • 4: S3.

  • 5: S4.

  • 6: S5.

  • 7: S6.

  • 8: S7.

  • 9: S8.

  • 10: S9.

  • 11: S10.

  • null: Semua tingkat risiko, termasuk Tidak ada risiko, S1, S2, S3, S4, S5, S6, S7, S8, S9, dan S10.

2

FeatureType

integer

No

Parameter ini tidak digunakan lagi.

1

Elemen respons

Element

Type

Description

Example

object

CurrentPage

integer

The page number.

1

RequestId

string

The ID of the request.

136082B3-B21F-5E9D-B68E-991FFD205D24

PageSize

integer

The number of template rules returned on each page.

10

TotalCount

integer

The total number of rules in the template.

10

Items

array<object>

A list of template rules.

object

Status

integer

The status of the template rule. Valid values:

  • 0: disabled.

  • 1: enabled.

  • null: Represents all statuses, including enabled and disabled.

1

IdentificationScope

string

The scope of data that the template rule scans. This parameter is a string converted from a JSON array. Each element in the JSON array represents a data scanning scope and contains the following fields:

  • Asset: A string that indicates the asset type. Valid values include RDS, DRDS, PolarDB, OTS, ADB, OceanBase, and ODPS.

  • Content: The specific scope of the asset to scan. This is an array of objects, where each object contains the following fields:

    • Range: A string that indicates the matching range. Valid values include instance, database, table, column, project (for MaxCompute assets only), bucket (for OSS assets only), and object (for OSS assets only).

    • Operator: A string that indicates the matching condition. Valid values include equals, regex (regular expression), prefix, and suffix.

    • Value: A string that indicates the content to match.

[{"Asset":"RDS","Content":[{"Range":"database","Operator":"regex","Value":"register"}]},{"Asset":"RDS","Content":[{"Range":"table","Operator":"regex","Value":"register"}]},{"Asset":"RDS","Content":[{"Range":"column","Operator":"regex","Value":"register"}]},{"Asset":"ODPS","Content":[{"Range":"project","Operator":"regex","Value":"register"}]},{"Asset":"ODPS","Content":[{"Range":"table","Operator":"regex","Value":"register"}]},{"Asset":"ODPS","Content":[{"Range":"column","Operator":"regex","Value":"register"}]}]

RiskLevelId

integer

The risk level of the template rule. The value ranges from 1 to 11. Valid values:

  • 1: No risk.

  • 2: S1.

  • 3: S2.

  • 4: S3.

  • 5: S4.

  • 6: S5.

  • 7: S6.

  • 8: S7.

  • 9: S8.

  • 10: S9.

  • 11: S10.

  • null: Indicates all risk levels, including No risk, S1, S2, S3, S4, S5, S6, S7, S8, S9, and S10.

2

Description

string

The description of the rule.

Template rule for identifying ID card numbers

IdentificationRuleIds

string

A comma-separated list of IDs of the associated atomic models.

1001,1002

Name

string

The name of the template rule.

ID card

Id

integer

The unique ID of the template rule.

100

Contoh

Respons sukses

JSONformat

{
  "CurrentPage": 1,
  "RequestId": "136082B3-B21F-5E9D-B68E-991FFD205D24",
  "PageSize": 10,
  "TotalCount": 10,
  "Items": [
    {
      "Status": 1,
      "IdentificationScope": "[{\"Asset\":\"RDS\",\"Content\":[{\"Range\":\"database\",\"Operator\":\"regex\",\"Value\":\"register\"}]},{\"Asset\":\"RDS\",\"Content\":[{\"Range\":\"table\",\"Operator\":\"regex\",\"Value\":\"register\"}]},{\"Asset\":\"RDS\",\"Content\":[{\"Range\":\"column\",\"Operator\":\"regex\",\"Value\":\"register\"}]},{\"Asset\":\"ODPS\",\"Content\":[{\"Range\":\"project\",\"Operator\":\"regex\",\"Value\":\"register\"}]},{\"Asset\":\"ODPS\",\"Content\":[{\"Range\":\"table\",\"Operator\":\"regex\",\"Value\":\"register\"}]},{\"Asset\":\"ODPS\",\"Content\":[{\"Range\":\"column\",\"Operator\":\"regex\",\"Value\":\"register\"}]}]",
      "RiskLevelId": 2,
      "Description": "Template rule for identifying ID card numbers",
      "IdentificationRuleIds": "1001,1002",
      "Name": "ID card",
      "Id": 100
    }
  ]
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.