Queries a paginated list of rules in a data classification template.
Operation description
You can call this operation to query the list of rules in a data classification template. This helps you understand the details of the rules in the template.
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.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeCategoryTemplateRuleList |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. The default value is zh_cn. Valid values:
|
zh_cn |
| PageSize |
integer |
No |
The number of template rules to return on each page. The default value is 10. |
10 |
| CurrentPage |
integer |
No |
The page number. The default value is 1. |
1 |
| Status |
integer |
No |
The status of the template rule. The default value is null. Valid values:
|
1 |
| RiskLevelId |
integer |
No |
The risk level of the template rule. The value ranges from 1 to 11. The default value is null. Valid values:
|
2 |
| FeatureType |
integer |
No |
This parameter is deprecated. |
1 |
Response elements
|
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:
|
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":"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:
|
2 |
| Description |
string |
The description of the rule. |
用于识别身份证号的模板规则 |
| IdentificationRuleIds |
string |
A comma-separated list of IDs of the associated atomic models. |
1001,1002 |
| Name |
string |
The name of the template rule. |
身份证号 |
| Id |
integer |
The unique ID of the template rule. |
100 |
Examples
Success response
JSON format
{
"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": "用于识别身份证号的模板规则",
"IdentificationRuleIds": "1001,1002",
"Name": "身份证号",
"Id": 100
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.