Queries whether Transparent Data Encryption (TDE) is enabled for an ApsaraDB for MongoDB instance.
Operation description
For more information about this feature, see Settings for transparent data encryption TDE.
When you invoke this operation, the instance must meet the following conditions:
The instance is a replica set instance or a sharded cluster instance.
The storage DPI engine of the instance is WiredTiger.
The database DPI engine version of the instance is 4.0 or 4.2. If the database DPI engine version is earlier than the required version, you can invoke the UpgradeDBInstanceEngineVersion operation to upgrade the database DPI engine version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeDBInstanceTDEInfo |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bpxxxxxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TDEStatus |
string |
The TDE enabling status. Valid values:
Note
If the TDE status is disabled, the RoleARN, EncryptionKey, and EncryptorName parameters are not returned. |
enabled |
| RequestId |
string |
The request ID. |
F4DD0E29-361B-42F2-9301-B0048CCCE5D6 |
| RoleARN |
string |
The global resource descriptor ARN (Alibaba Cloud Resource Name) of the role pending authorization. |
acs:ram::123456789012****:role/aliyunrdsinstanceencryptiondefaultrole |
| EncryptionKey |
string |
The custom key of the instance. Currently, only the following regions support Bring Your Own Key (BYOK), which allows you to manage and own encryption keys:
Note
If BYOK is supported, you can manage and own the key, and the system returns your custom key. If BYOK is not supported, you cannot manage the key, and the system returns the string |
2axxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
| EncryptorName |
string |
The encryption algorithm. |
aes-256-cbc |
Examples
Success response
JSON format
{
"TDEStatus": "enabled",
"RequestId": "F4DD0E29-361B-42F2-9301-B0048CCCE5D6",
"RoleARN": "acs:ram::123456789012****:role/aliyunrdsinstanceencryptiondefaultrole",
"EncryptionKey": "2axxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"EncryptorName": "aes-256-cbc"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.