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 | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of 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 page to return. |
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 search is supported. |
***规则 |
| 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 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.
Note
The value of the Category parameter for the keyword type is 0 in earlier versions and 5 in the current version. Enable this compatibility as needed. |
true |
| GroupId |
string |
No |
The parent group of the rule. |
4_1 |
| SupportForm |
integer |
No |
The type of data assets 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 assets. |
1 |
| FeatureType |
integer |
No |
This parameter is deprecated. |
2 |
| CooperationChannel |
string |
No |
The source of the external request.
|
DAS |
| Simplify |
boolean |
No |
Specifies whether to return a simplified version of the rule. A simplified version contains only the rule name.
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The 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 on each page. |
12 |
| TotalCount |
integer |
The total number of entries. |
23 |
| Items |
array<object> |
A list of sensitive data detection rules. |
|
|
object |
The details of a sensitive data detection rule. |
||
| DisplayName |
string |
The display name of the user who created the sensitive data detection rule. |
****test |
| Status |
integer |
The status of the sensitive data detection rule. Valid values:
|
1 |
| SupportForm |
integer |
The type of data assets 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 ID of the sensitivity level for 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 (where 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. |
正则表达式 |
| ContentCategory |
string |
The content type. Valid values:
|
1 |
| HitTotalCount |
integer |
The total number of matches for the rule. |
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. 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 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 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 templates that are associated with the sensitive data audit rule. |
1 |
| ModelRuleIds |
string |
The IDs of models that are associated with the sensitive data audit rule. |
1452 |
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"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.