All Products
Search
Document Center

ApsaraDB for OceanBase:DescribeTenantEncryption

Last Updated:Nov 14, 2025

You can call this operation to query the encryption information of a tenant.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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.
OperationAccess levelResource typeCondition keyAssociated operation
oceanbase:DescribeTenantEncryptionget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the OceanBase cluster.

ob317v4uif****
TenantIdstringNo

The ID of the tenant.

t4louaeei****
TenantNamestringNo

The name of the tenant.
It must start with a letter or an underscore (), and contain 2 to 20 characters, which can be uppercase letters, lowercase letters, digits, and underscores (). It cannot be set to sys.

forMySQLTenant
PageNumberlongNo

The number of the page to return.

  • Pages start from page 1.
  • Default value: 1.
1
PageSizelongNo

The number of rows to return on each page.

  • Maximum value: 100.
  • Default value: 10
10

Response parameters

ParameterTypeDescriptionExample
object

The return result of the request.

RequestIdstring

The ID of the request.

EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C
TotalCountinteger

The total number of entries returned. This parameter takes effect in a pagination query.

8
TenantEncryptionsarray<object>

The scenarios supporting encryption.

TenantEncryptionsobject

The information about scenarios supporting encryption.

TenantIdstring

The ID of the tenant.

t4louaeei****
TenantModestring

The compatible mode of the tenant. Valid values:

  • Oracle
  • MySQL
MySQL
TenantNamestring

The name of the tenant.

forMySQLTenant
EnableEncryptionboolean

Indicates whether encryption is enabled. Valid values:

  • true
  • false
false
TenantStatusstring

The status of the tenant.

ONLINE
Statusstring

The status of tenant encryption enablement.

OPEN
EncryptionTypestring

The encryption type.

INTERNAL
EncryptionKeyIdstring

The ID of the encryption key created by Key Management Service (KMS).

xxx

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError message
500InternalErrorThe request processing has failed due to some unknown error.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history