You can call this operation to query the data encryption status of an instance.

This operation is used to view the TDE configuration of an instance.

Note This operation is applicable only to MySQL 5.6, SQL Server 2019 and SQL Server Enterprise Edition instances.


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 DescribeDBInstanceTDE

The operation that you want to perform. Set this parameter to DescribeDBInstanceTDE.

DBInstanceId String Yes rm-uf6wjk5xxxxxxx

The ID of the instance.

AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID issued by Alibaba Cloud for users to access services.

Response parameters

Parameter Type Example Description
TDEStatus String Enabled

The TDE status at the instance level. Valid values: Enable | Disable.

Databases N/A N/A

The TDE status list at the database level.

Note For SQL Server 2019 or SQL Server Enterprise Edition instances, you can enable or disable TDE at the database level when TDE is enabled at the instance level.
DBName String test02

The name of the database.

TDEStatus String Enabled

The TDE status at the database level. Valid values: Enable | Disable.

RequestId String C816A4BF-A6EC-4722-95F9-2055859CCFD2

The ID of the instance.


Sample requests

http(s):// Action=DescribeDBInstanceTDE
&<Common request parameters>

Successful response examples

XML format


JSON format


Error codes

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