Queries a list of sensitive data detection rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeRules |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the content within the request and response. Valid values:
|
zh |
| PageSize |
integer |
No |
The number of entries to return on each page. |
12 |
| CurrentPage |
integer |
No |
The page number of the paged query. |
1 |
| CustomType |
integer |
No |
The type of the sensitive data detection rule. Valid values:
|
1 |
| Category |
integer |
No |
The type of the content in the sensitive data detection rule. Valid values:
|
2 |
| Name |
string |
No |
The name of the sensitive data detection rule. Fuzzy match is supported. |
***规则 |
| RiskLevelId |
integer |
No |
The sensitivity level ID of the sensitive data detection rule. Valid values:
|
2 |
| RuleType |
integer |
No |
The type of the sensitive data detection rule. Valid values:
|
1 |
| MatchType |
integer |
No |
The match type. Valid values:
|
1 |
| ProductCode |
integer |
No |
The name of the service to which the data asset belongs. Valid values:
|
MaxCompute |
| ProductId |
integer |
No |
The ID of the service to which the data asset belongs. Valid values:
|
1 |
| WarnLevel |
integer |
No |
The threat level.
|
2 |
| ContentCategory |
integer |
No |
The content type. Valid values:
|
1 |
| Status |
integer |
No |
The status. Valid values:
|
1 |
| KeywordCompatible |
boolean |
No |
Specifies whether the keyword is compatible with earlier versions. Valid values:
Note
The value of the Category parameter for the keyword type is 0 in earlier versions and 5 in the current version. Determine whether to enable this parameter based on your business needs. |
true |
| GroupId |
string |
No |
The parent group of the rule. |
4_1 |
| SupportForm |
integer |
No |
The type of data asset that the rule supports. Valid values:
Note
When you query for rules that support structured or unstructured assets, the response also includes rules that support all asset types. |
1 |
| FeatureType |
integer |
No |
This parameter is deprecated. |
2 |
| CooperationChannel |
string |
No |
The source of the external cooperation request. Valid values:
|
DAS |
| Simplify |
boolean |
No |
Specifies whether to return a simplified version of the rule that contains only the rule name. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The page number of the returned page. |
1 |
| RequestId |
string |
The ID of the request. |
769FB3C1-F4C9-42DF-9B72-7077A8989C13 |
| PageSize |
integer |
The number of entries returned per page. |
12 |
| TotalCount |
integer |
The total number of entries returned. |
23 |
| Items |
array<object> |
A list of sensitive data detection rules. |
|
|
object |
The details of the sensitive data detection rule. |
||
| DisplayName |
string |
The display name of the user who created the sensitive data detection rule. |
****test |
| Status |
integer |
The detection status of the sensitive data detection rule. Valid values:
|
1 |
| SupportForm |
integer |
The type of data asset that the rule supports. Valid values:
|
2 |
| WarnLevel |
integer |
The threat level.
|
2 |
| UserId |
integer |
The ID of the user who created the sensitive data detection rule. |
0 |
| StatExpress |
string |
The statistical expression. |
1 |
| GmtModified |
integer |
The time when the sensitive data detection rule was last modified. This value is a UNIX timestamp. Unit: milliseconds. |
1545277010000 |
| RiskLevelId |
integer |
The sensitivity level ID of the sensitive data detection rule. Valid values:
|
2 |
| Description |
string |
The description of the sensitive data detection rule. |
用于识别IP地址 |
| ProductId |
integer |
The ID of the service to which the data asset belongs. Valid values:
|
2 |
| Name |
string |
The name of the sensitive data detection rule. |
IP地址 |
| Content |
string |
The content of the sensitive data detection rule. Note
The content of a built-in rule, for which CustomType is 0, is not returned. |
(?:\\D|^)((?:(?:25[0-4]|2[0-4]\\d|1\\d{2}|[1-9]\\d{1})\\.)(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){2}(?:25[0-5]|2[0-4]\\d|1[0-9]\\d|[1-9]\\d|[1-9]))(?:\\D|$) |
| Target |
string |
The name of the service to which the data asset belongs. Valid values:
|
MaxCompute |
| LoginName |
string |
The logon name of the user who created the sensitive data detection rule. |
det1111 |
| CategoryName |
string |
The name of the content type for the sensitive data detection rule. |
正则表达式 |
| ContentCategory |
string |
The content type. Valid values:
|
1 |
| HitTotalCount |
integer |
The number of times the rule was hit. |
3 |
| GroupId |
string |
The parent group of the rule. |
4_1 |
| CustomType |
integer |
The type of the sensitive data detection rule.
|
1 |
| RiskLevelName |
string |
The name of the sensitivity level for the sensitive data detection rule. Valid values:
|
S2 |
| GmtCreate |
integer |
The time when the sensitive data detection rule was created. This value is a UNIX timestamp. Unit: milliseconds. |
1545277010000 |
| Category |
integer |
The type of the content in the sensitive data detection rule. Valid values:
|
2 |
| MajorKey |
string |
The primary dimension key. |
key |
| Id |
integer |
The unique ID of the sensitive data detection rule. |
20000 |
| ProductCode |
string |
The name of the service to which the data asset belongs. Valid values:
|
MaxCompute |
| MatchType |
integer |
The match type. Valid values:
|
1 |
| TemplateRuleIds |
string |
A collection of template IDs for sensitive data auditing. |
1 |
| ModelRuleIds |
string |
A collection of model IDs for sensitive data auditing. |
1452 |
| ThreatAnalysisStatus |
integer |
0 |
|
| AuditMode |
integer |
0 |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"RequestId": "769FB3C1-F4C9-42DF-9B72-7077A8989C13",
"PageSize": 12,
"TotalCount": 23,
"Items": [
{
"DisplayName": "****test",
"Status": 1,
"SupportForm": 2,
"WarnLevel": 2,
"UserId": 0,
"StatExpress": "1",
"GmtModified": 1545277010000,
"RiskLevelId": 2,
"Description": "用于识别IP地址",
"ProductId": 2,
"Name": "IP地址",
"Content": "(?:\\\\D|^)((?:(?:25[0-4]|2[0-4]\\\\d|1\\\\d{2}|[1-9]\\\\d{1})\\\\.)(?:(?:25[0-5]|2[0-4]\\\\d|[01]?\\\\d?\\\\d)\\\\.){2}(?:25[0-5]|2[0-4]\\\\d|1[0-9]\\\\d|[1-9]\\\\d|[1-9]))(?:\\\\D|$)",
"Target": "MaxCompute",
"LoginName": "det1111",
"CategoryName": "正则表达式",
"ContentCategory": "1",
"HitTotalCount": 3,
"GroupId": "4_1",
"CustomType": 1,
"RiskLevelName": "S2",
"GmtCreate": 1545277010000,
"Category": 2,
"MajorKey": "key",
"Id": 20000,
"ProductCode": "MaxCompute",
"MatchType": 1,
"TemplateRuleIds": "1",
"ModelRuleIds": "1452",
"ThreatAnalysisStatus": 0,
"AuditMode": 0
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.