Queries the 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 type of the request and response messages. Valid values:
|
zh |
| PageSize |
integer |
No |
The maximum number of entries to return on each page. |
12 |
| CurrentPage |
integer |
No |
The page number for paging in a paged query. |
1 |
| CustomType |
integer |
No |
The type of the sensitive data detection rule. Valid values:
|
1 |
| Category |
integer |
No |
The content type of the sensitive data detection rule. Valid values:
|
2 |
| Name |
string |
No |
The name of the sensitive data detection rule. Fuzzy match is supported. |
***Rule |
| RiskLevelId |
integer |
No |
The ID of the sensitivity level for 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 risk level. Valid values:
|
2 |
| ContentCategory |
integer |
No |
The content type. Valid values:
|
1 |
| Status |
integer |
No |
The status. Valid values:
|
1 |
| KeywordCompatible |
boolean |
No |
Specifies whether the keywords of the legacy and new versions are compatible. Valid values:
Note
In the legacy version, the value of the Category request parameter for the keyword type is 0. In the new version, the value of the Category request parameter for the keyword type is 5. Specify whether compatibility is required based on your business needs. |
true |
| GroupId |
string |
No |
The parent group of the rule. |
4_1 |
| SupportForm |
integer |
No |
The type of data assets supported by the rule. Valid values:
Note
When you query rules that support structured or unstructured assets, the returned data includes rules that support all assets in addition to the queried asset type. |
1 |
| FeatureType |
integer |
No |
[Deprecated] This parameter is deprecated. |
2 |
| CooperationChannel |
string |
No |
The external cooperation source of the request. Valid values:
|
DAS |
| Simplify |
boolean |
No |
Specifies whether to obtain the simplified version of the rules, which includes only the rule names. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The page number of the current page returned. |
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> |
The list of sensitive data detection rules. |
|
|
object |
The details of the sensitive data detection rule. |
||
| DisplayName |
string |
The display name of the account that created the sensitive data detection rule. |
****test |
| Status |
integer |
The detection status of the sensitive data detection rule. Valid values:
|
1 |
| SupportForm |
integer |
The Asset Type supported by the rule. Valid values:
|
2 |
| WarnLevel |
integer |
The risk level. Valid values:
|
2 |
| UserId |
integer |
The ID of the account that created the sensitive data detection rule. |
0 |
| StatExpress |
string |
The statistical expression. |
1 |
| GmtModified |
integer |
The time when the sensitive data detection rule was modified. The value is a UNIX timestamp. Unit: milliseconds. |
1545277010000 |
| RiskLevelId |
integer |
The ID of the sensitivity level for the sensitive data detection rule. Valid values:
|
2 |
| Description |
string |
The description of the sensitive data detection rule. |
Used to identify IP addresses |
| 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 address |
| Content |
string |
The content of the sensitive data detection rule. Note
The content is not returned for built-in detection rules, namely, rules whose CustomType is 0. |
(?:\\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 account that created the sensitive data detection rule. |
det1111 |
| CategoryName |
string |
The name of the content type to which the sensitive data detection rule belongs. |
Regular expression |
| ContentCategory |
string |
The content type. Valid values:
|
1 |
| HitTotalCount |
integer |
The number of hits. |
3 |
| GroupId |
string |
The parent group of the rule. |
4_1 |
| CustomType |
integer |
The type of the sensitive data detection rule. Valid values:
|
1 |
| RiskLevelName |
string |
The name of the risk level for the sensitive data detection rule. Valid values:
|
S2 |
| GmtCreate |
integer |
The time when the sensitive data detection rule was created. The value is a UNIX timestamp. Unit: milliseconds. |
1545277010000 |
| Category |
integer |
The content type of the sensitive data detection rule. Valid values:
|
2 |
| MajorKey |
string |
The key of the primary dimension. |
key |
| Id |
integer |
The unique ID of the saved 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 |
The IDs of the templates associated with the sensitive data audit. |
1 |
| ModelRuleIds |
string |
The IDs of the models associated with the sensitive data audit. |
1452 |
| ThreatAnalysisStatus |
integer |
The status of the threat analysis mode. Valid values: 0: disabled. 1: enabled. Valid values:
|
0 |
| AuditMode |
integer |
The audit mode. |
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": "Used to identify IP addresses",
"ProductId": 2,
"Name": "IP address",
"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": "Regular expression",
"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.