Queries the columns of tables in instances, such as MaxCompute projects and ApsaraDB RDS instances, that you authorize Data Security Center (DSC) to access.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sddp:DescribeColumnsV2 | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the request and response. Default value: zh_cn. Valid values:
| zh_cn |
Name | string | No | The search keyword. Fuzzy match is supported. For example, if you enter test, all columns whose names contain test are retrieved. | test |
TableId | string | No | The ID of the table to which the column belongs. Note
You can call the DescribeTables operation to obtain the ID of the table.
| 11132334 |
RuleId | long | No | The ID of the sensitive data detection rule that data in the column of the table hits. Note
You can call the DescribeRules operation to obtain the ID of the sensitive data detection rule.
| 11122200 |
ProductCode | string | No | The name of the service to which data in the column of the table belongs. Valid values include MaxCompute, OSS, ADS, OTS, and RDS. | MaxCompute |
InstanceId | long | No | The ID of the instance to which data in the column of the table belongs. Note
You can call the DescribeInstances operation to obtain the ID of the instance to which the data in the column of the table belongs.
| 1 |
InstanceName | string | No | The name of the instance to which data in the column of the table belongs. | rm-bp17t1htja573l5i8**** |
TableName | string | No | The name of the table. | it_table |
RuleName | string | No | The name of the sensitive data detection rule that data in the column of the table hits. | name |
SensLevelName | string | No | The name of the sensitivity level. Valid values:
| S2 |
PageSize | integer | No | The number of entries per page. Default value: 10. | 10 |
CurrentPage | integer | No | The page number. Default value: 1. | 1 |
RiskLevelId | long | No | The ID of the sensitivity level of the data that hits the sensitive data detection rule. Valid values:
| 2 |
Response parameters
Examples
Sample success responses
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"
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|