The DescribeColumnsV2 operation queries data in the columns of data asset tables, such as those in MaxCompute and RDS, that are authorized in Data Security Center.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sddp:DescribeColumnsV2 |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. Default value: zh_cn. Valid values:
|
zh_cn |
| Name |
string |
No |
The keyword for the search. Fuzzy match is supported. For example, if you enter test, all data that contains test is returned. |
test |
| TableId |
string |
No |
The unique ID of the data asset table that contains the column. The table can be in a data asset such as MaxCompute or RDS. Note
Query data in columns of a data asset table by the table ID. The data asset table must be authorized in Data Security Center. To obtain the ID of the data asset table, call the DescribeTables operation. |
11132334 |
| RuleId |
integer |
No |
The unique ID of the sensitive data detection rule that is hit by the data in the column. Note
Query data in columns of a data asset table based on the ID of the sensitive data detection rule that is hit. The data asset table must be authorized in Data Security Center. To obtain the ID of the sensitive data detection rule, call the DescribeRules operation. |
11122200 |
| ProductCode |
string |
No |
The name of the product to which the data in the column of the data asset table belongs. Valid values include MaxCompute, OSS, ADS, OTS, and RDS. |
MaxCompute |
| InstanceId |
integer |
No |
The ID of the data asset instance to which the data in the column belongs. Note
Query data in columns of a data asset table based on the ID of the data asset instance. The data asset table must be authorized in Data Security Center. To obtain the ID of the data asset instance, call the DescribeInstances operation. |
1 |
| InstanceName |
string |
No |
The name of the data asset instance to which the data in the column belongs. |
rm-bp17t1htja573l5i8**** |
| TableName |
string |
No |
The name of the data asset table. |
it_table |
| RuleName |
string |
No |
The name of the sensitive data detection rule that is hit by the data in the column. |
name |
| SensLevelName |
string |
No |
The name of the sensitivity level. Valid values:
|
S2 |
| PageSize |
integer |
No |
The maximum number of entries to return on each page. Default value: 10. |
10 |
| CurrentPage |
integer |
No |
The page number. Default value: 1. |
1 |
| RiskLevelId |
integer |
No |
The ID of the risk level for the sensitive data detection rule. Valid values:
|
2 |
| EngineType |
string |
No |
The type of the database engine. Valid values:
|
MySQL |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| CurrentPage |
integer |
The page number. Default value: 1. |
1 |
| RequestId |
string |
The unique ID generated by Alibaba Cloud for the request. |
B1F2BB1F-04EC-5D36-B136-B4DE17FD8DE0 |
| PageSize |
integer |
The maximum number of entries returned on each page. Default value: 10. |
10 |
| TotalCount |
integer |
The total number of entries returned. |
12 |
| Items |
array<object> |
A list of detection results for the columns in the data table. |
|
|
object |
An object that contains the detection results for a column in the data table. |
||
| CreationTime |
integer |
The time when the data in the column of the data asset table was created. The value is a UNIX timestamp. Unit: milliseconds. |
1536751124000 |
| TableName |
string |
The name of the table that contains the revised target column. |
it_table |
| DataType |
string |
The data type of the data in the column of the data asset table. |
varchar |
| OdpsRiskLevelValue |
integer |
The code of the risk level for the data asset. Valid values:
Note
A return value that is less than or equal to 1 indicates N/A. |
3 |
| InstanceId |
integer |
The ID of the data asset instance to which the data in the column belongs. |
1232122 |
| RiskLevelId |
integer |
The ID of the risk level for the data in the column of the data asset table. Valid values:
Note
A return value that is less than or equal to 1 indicates N/A. |
4 |
| RuleName |
string |
The name of the sensitive data detection rule that is hit by the data in the column. |
name |
| RuleId |
integer |
The ID of the sensitive data detection rule that is hit by the data in the column. |
1004 |
| Sensitive |
boolean |
Indicates whether the data in the column of the data asset table is sensitive. Valid values:
|
true |
| SensLevelName |
string |
The name of the sensitivity level. Valid values:
|
S2 |
| InstanceName |
string |
The name of the data asset instance to which the data in the column belongs. |
rm-1234 |
| RiskLevelName |
string |
The name of the risk level for the data in the column of the data asset table. Valid values:
|
S1 |
| OdpsRiskLevelName |
string |
The name of the risk level for the data asset. Valid values:
|
S4 |
| Name |
string |
The name of the column in the data asset table. |
obj_id |
| TableId |
integer |
The ID of the data asset table to which the data in the column belongs. |
123 |
| Id |
string |
The unique ID of the column in the data asset table. |
111111 |
| ProductCode |
string |
The name of the product to which the data in the column of the data asset table belongs. Valid values include MaxCompute, OSS, ADS, OTS, and RDS. |
RDS |
| RevisionStatus |
integer |
The revision status. Valid values:
|
1 |
| RevisionId |
integer |
The ID of the revision record. |
12 |
| ModelTags |
array<object> |
A list of data tags. |
|
|
object |
A data tag object. |
||
| Id |
integer |
The ID of the data tag. Valid values:
|
101 |
| Name |
string |
The name of the data tag. Valid values:
|
personal sensitive information |
| EngineType |
string |
The type of the database engine. Valid values:
|
MySQL |
| MaskingStatus |
integer |
The column encryption status. Valid values:
|
-1 |
| ProductId |
integer |
The ID of the product to which the data asset belongs. Valid values:
|
5 |
| RegionId |
string |
The region where the data asset resides. |
cn-hangzhou |
Examples
Success response
JSON format
{
"CurrentPage": 1,
"RequestId": "B1F2BB1F-04EC-5D36-B136-B4DE17FD8DE0",
"PageSize": 10,
"TotalCount": 12,
"Items": [
{
"CreationTime": 1536751124000,
"TableName": "it_table",
"DataType": "varchar",
"OdpsRiskLevelValue": 3,
"InstanceId": 1232122,
"RiskLevelId": 4,
"RuleName": "name",
"RuleId": 1004,
"Sensitive": true,
"SensLevelName": "S2",
"InstanceName": "rm-1234",
"RiskLevelName": "S1",
"OdpsRiskLevelName": "S4",
"Name": "obj_id",
"TableId": 123,
"Id": "111111",
"ProductCode": "RDS",
"RevisionStatus": 1,
"RevisionId": 12,
"ModelTags": [
{
"Id": 101,
"Name": "personal sensitive information"
}
],
"EngineType": "MySQL",
"MaskingStatus": -1,
"ProductId": 5,
"RegionId": "cn-hangzhou"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.