You can call this operation to enable transparent encryption for a tenant.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oceanbase:ModifyTenantEncryption |
update |
*All Resource
|
None | None |
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. Valid values:
|
INTERNAL |
| EncryptionKeyId |
string |
No |
The ID of the key. |
key-shh322****470h8v0-g2ll85**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
EE205C00-30E4-****-****-87E3A8A2AA0C |
| TenantEncryption |
object |
job |
|
| InstanceId |
string |
The ID of the OceanBase cluster. |
ob317v4uif**** |
| TenantId |
string |
The ID of the tenant. |
ob2mr3oae0**** |
| EncryptionType |
string |
The encryption type. Valid values:
Note
After transparent encryption is enabled for cloud disks, it cannot be disabled. Valid values:
|
INTERNAL |
Examples
Success response
JSON format
{
"RequestId": "EE205C00-30E4-****-****-87E3A8A2AA0C",
"TenantEncryption": {
"InstanceId": "ob317v4uif****",
"TenantId": "ob2mr3oae0****",
"EncryptionType": "INTERNAL"
}
}
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.