You can call this operation to query the encryption information of a tenant.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oceanbase:DescribeTenantEncryption |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the OceanBase cluster. |
ob317v4uif**** |
| TenantId |
string |
No |
The ID of the tenant. |
t4louaeei**** |
| TenantName |
string |
No |
The name of the tenant. |
forMySQLTenant |
| PageNumber |
integer |
No |
The number of the page to return.
|
1 |
| PageSize |
integer |
No |
The number of rows to return on each page.
|
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The return result of the request. |
||
| RequestId |
string |
The ID of the request. |
EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C |
| TotalCount |
integer |
The total number of entries returned. This parameter takes effect in a pagination query. |
8 |
| TenantEncryptions |
array<object> |
The scenarios supporting encryption. |
|
|
object |
The information about scenarios supporting encryption. |
||
| TenantId |
string |
The ID of the tenant. |
t4louaeei**** |
| TenantMode |
string |
The compatible mode of the tenant. Valid values:
|
MySQL |
| TenantName |
string |
The name of the tenant. |
forMySQLTenant |
| EnableEncryption |
boolean |
Indicates whether encryption is enabled. Valid values:
|
false |
| TenantStatus |
string |
The status of the tenant. |
ONLINE |
| Status |
string |
The status of tenant encryption enablement. |
OPEN |
| EncryptionType |
string |
The encryption type. |
INTERNAL |
| EncryptionKeyId |
string |
The ID of the encryption key created by Key Management Service (KMS). |
xxx |
Examples
Success response
JSON format
{
"RequestId": "EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C",
"TotalCount": 8,
"TenantEncryptions": [
{
"TenantId": "t4louaeei****",
"TenantMode": "MySQL",
"TenantName": "forMySQLTenant",
"EnableEncryption": false,
"TenantStatus": "ONLINE",
"Status": "OPEN",
"EncryptionType": "INTERNAL",
"EncryptionKeyId": "xxx"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.