You can call this operation to enable transparent encryption for a tenant.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| InstanceId | string | Yes | The ID of the OceanBase cluster. | ob317v4uif**** |
| TenantId | string | Yes | The ID of the tenant. | ob2mr3oae0**** |
| EncryptionType | string | Yes | The encryption type. Valid values:
Note
After transparent encryption is enabled for cloud disks, it cannot be disabled.
| INTERNAL |
| EncryptionKeyId | string | No | The ID of the key. | key-shh322****470h8v0-g2ll85**** |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "EE205C00-30E4-****-****-87E3A8A2AA0C",
"TenantEncryption": {
"InstanceId": "ob317v4uif****",
"TenantId": "ob2mr3oae0****",
"EncryptionType": "INTERNAL"
}
}Error codes
| HTTP status code | Error code | Error message |
|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
No change history
