You can call this operation to query MaxCompute or Relational Database Service (RDS) tables that you authorize Sensitive Data Discovery and Protection (SDDP) to access.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeTables

The operation that you want to perform. Set the value to DescribeTables.

CurrentPage Integer No 1

The number of the page to return.

InstanceId Long No 123432

The ID of the instance to which the MaxCompute or RDS table belongs.

Note You can call the DescribeInstances operation to query the instance ID.
Lang String No zh

The language of the request and response. Valid values:

  • zh: Chinese
  • en: English
Name String No dats

The keyword used to search for the MaxCompute or RDS table. SDDP searches for MaxCompute or RDS tables based on the keyword that you enter in fuzzy match mode.

PackageId Long No 543300

The ID of the MaxCompute package to which the MaxCompute table belongs.

Note You can call the DescribePackages operation to query the ID of the MaxCompute package.
PageSize Integer No 10

The number of entries to return on each page.

ProductCode String No MaxCompute

The name of the service to which the MaxCompute or RDS table belongs. Valid values:

  • MaxCompute
  • OSS
  • RDS
ProductId Long No 1111111

The ID of the service to which the MaxCompute or RDS table belongs.

Note You can call the DescribeDataAssets operation to query the service ID.
RiskLevelId Long No 2

The risk level ID of the MaxCompute or RDS table. Valid values:

  • 1: S1, indicating the low risk level
  • 2: S2, indicating the medium risk level
  • 3: S3, indicating the high risk level
  • 4: S4, indicating the highest risk level
RuleId Long No 333322

The ID of the sensitive data detection rule that the MaxCompute or RDS table hits.

Note You can call the DescribeRules operation to query the ID of the sensitive data detection rule.

Response parameters

Parameter Type Example Description
CurrentPage Integer 1

The page number of the returned page.

Items

The list of MaxCompute or RDS tables that were queried.

CreationTime Long 1536751124000

The time when the MaxCompute or RDS table was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

Id Long 268

The unique ID of the MaxCompute or RDS table.

InstanceId Long 1

The ID of the instance to which the MaxCompute or RDS table belongs.

Name String gxdata

The name of the MaxCompute or RDS table.

Owner String dtdep-239-******

The account that owns the MaxCompute or RDS table.

ProductCode String MaxCompute

The name of the service to which the MaxCompute or RDS table belongs. Valid values:

  • MaxCompute
  • OSS
  • RDS
ProductId String 1

The ID of the service to which the MaxCompute or RDS table belongs.

RiskLevelId Long 2

The risk level ID of the MaxCompute or RDS table.

RiskLevelName String Highest risk level

The risk level of the MaxCompute or RDS table.

Sensitive Boolean true

Indicates whether the MaxCompute or RDS table contains sensitive fields. Valid values:

  • true: The MaxCompute or RDS table contains sensitive fields.
  • false: The MaxCompute or RDS table does not contain sensitive fields.
SensitiveCount Integer 32

The total number of sensitive fields in the MaxCompute or RDS table.

SensitiveRatio String 21%

The percentage of sensitive fields in the MaxCompute or RDS table.

TotalCount Integer 1234

The total number of fields in the MaxCompute or RDS table.

PageSize Integer 10

The number of entries returned per page.

RequestId String 769FB3C1-F4C9-42DF-9B72-7077A8989C13

The ID of the request.

TotalCount Integer 13

The total number of returned entries.

Examples

Sample requests


http(s)://[Endpoint]/? Action=DescribeTables
&<Common request parameters>

Sample success responses

XML format

<DescribeTables>
	  <RequestId>769FB3C1-F4C9-42DF-9B72-7077A8989C13</RequestId>
	  <TotalCount>4</TotalCount>
	  <PageSize>10</PageSize>
	  <CurrentPage>1</CurrentPage>
	  <Items>
		    <Owner>dtdep-239-******</Owner>
		    <ProductCode>MaxCompute</ProductCode>
		    <ProductId>1</ProductId>
		    <Acl></Acl>
		    <RiskLevelId>2</RiskLevelId>
		    <RiskLevelName>Highest risk level</RiskLevelName>
		    <DepartName>***DemoCenter</DepartName>
		    <Name>gxdata</Name>
		    <CreationTime>1536751124000</CreationTime>
		    <Sensitive>true</Sensitive>
		    <Id>268</Id>
		    <InstanceId>1</InstanceId>
	  </Items>
</DescribeTables>

JSON format

{
	"Items":[
		{
			"CreationTime":1536751124000,
			"Name":"gxdata",
			"Owner":"dtdep-239-******",
			"Sensitive":true,
			"ProductCode":"MaxCompute",
			"RiskLevelName":"Highest risk level",
			"InstanceId":1,
			"DepartName":"***DemoCenter",
			"RiskLevelId":2,
			"Id":268,
			"Acl":"",
			"ProductId":1
		}
	],
	"TotalCount":4,
	"PageSize":10,
	"RequestId":"769FB3C1-F4C9-42DF-9B72-7077A8989C13",
	"CurrentPage":1
}

Error codes

For a list of error codes, visit the API Error Center.