Queries tables in data assets such as MaxCompute projects and ApsaraDB RDS instances that Data Security Center (DSC) is authorized to access.
Operation description
When you call the DescribeTables operation to query tables, you can specify parameters such as Name and RiskLevelId to filter tables.
Limits
You can send up to 10 requests per second to call this operation by using your Alibaba Cloud account. If you send excessive requests, throttling is implemented, and your business may be affected.
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:DescribeTables | 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 specify test, all tables whose names contain test are retrieved. | test |
ProductId | long | No | The ID of the service to which the table belongs. You can call the DescribeDataAssets operation to obtain the ID of the service. | 1 |
ProductCode | string | No | The name of the service to which the table belongs, such as MaxCompute, OSS, and ApsaraDB RDS. For more information about the types of data assets from which Data Security Center (DSC) can scan for sensitive data, see Supported data assets. | MaxCompute |
RiskLevelId | long | No | The sensitivity level of the table. Each sensitivity level ID corresponds to a sensitivity level name. Valid values:
| 2 |
RuleId | long | No | The ID of the sensitive data detection rule that the table hits. You can call the DescribeRules operation to obtain the ID of the sensitive data detection rule. | 333322 |
InstanceId | long | No | The ID of the data asset to which the table belongs. You can call the DescribeInstances operation to obtain the ID of the data asset. | 1 |
PackageId | long | No | The ID of the package to which the table belongs. You can call the DescribePackages operation to obtain the ID of the package. | 555555 |
PageSize | integer | No | The number of entries to return on each page. Default value: 10. | 10 |
CurrentPage | integer | No | The page number of the page to return. Default value: 1. | 1 |
ServiceRegionId | string | No | The region in which DSC is activated. For more information, see Supported regions. | cn-hangzhou |
TemplateId | long | No | The ID of the industry-specific rule template. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"CurrentPage": 1,
"RequestId": "769FB3C1-F4C9-42DF-9B72-7077A8989C13",
"PageSize": 10,
"TotalCount": 13,
"Items": [
{
"CreationTime": 1536751124000,
"Owner": "dtdep-239-******",
"SensitiveRatio": "21%",
"TenantName": "Tenant 1\n",
"RiskLevelId": 2,
"InstanceName": "Data Asset 1\n",
"ProductId": "1",
"Name": "gxdata",
"InstanceId": 1,
"TotalCount": 1234,
"InstanceDescription": "Description 1\n",
"Sensitive": true,
"RiskLevelName": "S2",
"SensitiveCount": 32,
"Id": 222,
"ProductCode": "MaxCompute",
"RuleList": [
{
"Name": "Rule name\n",
"RiskLevelId": 1,
"Count": 12
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-12-06 | The internal configuration of the API is changed, but the call is not affected | View Change Details |