Lists tenant information for the specified OceanBase clusters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oceanbase:DescribeTenants |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
ob317v4uif**** |
| TenantName |
string |
No |
The tenant name. |
pay_online |
| PageSize |
integer |
No |
The number of items to return per page.
|
10 |
| PageNumber |
integer |
No |
The page number to return.
|
1 |
| TenantId |
string |
No |
The ID of the tenant. |
ob2mr3oae0**** |
| SearchKey |
string |
No |
The keyword to filter query results. |
pay |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| TotalCount |
integer |
The total number of tenants in the specified OceanBase cluster. |
1 |
| RequestId |
string |
The request ID. |
EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C |
| Tenants |
array<object> |
A list of tenant objects. |
|
|
object |
A tenant object. |
||
| VpcId |
string |
The ID of the VPC. |
vpc-bp1d2q3mhg9i23ofi**** |
| Status |
string |
The status of the tenant.
|
ONLINE |
| PrimaryZone |
string |
The primary zone of the tenant. |
cn-hangzhou-i |
| DeployType |
string |
The deployment type of the tenant.
|
multiple |
| DeployMode |
string |
The deployment mode of the tenant.
Note
|
1-1-1 |
| CreateTime |
string |
The time when the tenant was created. |
2021-09-17 15:52:17.0 |
| TenantName |
string |
The tenant name. |
pay_online |
| Mem |
integer |
The total memory of the tenant, in GB. |
20 |
| Cpu |
integer |
The total number of CPU cores of the tenant. |
10 |
| Description |
string |
The tenant description. |
paycore database |
| TenantMode |
string |
The tenant mode.
|
Oracle |
| TenantId |
string |
The tenant ID. |
t33h8y08k**** |
| UnitCpu |
integer |
The number of CPU cores per tenant unit. |
5 |
| UnitMem |
integer |
The memory size per tenant unit, in GB. |
10 |
| UnitNum |
integer |
The number of units in the tenant. |
2 |
| UsedDiskSize |
number |
The amount of disk space used by the tenant. |
10 |
| Charset |
string |
The character set. |
utf8mb4 |
| Collation |
string |
The collation. |
utf8mb4_general_ci |
| EnableReadOnlyReplica |
boolean |
true |
|
| ParameterTemplate |
string |
The parameter template. |
express_oltp |
| Iops |
integer |
10000 |
Examples
Success response
JSON format
{
"TotalCount": 1,
"RequestId": "EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C",
"Tenants": [
{
"VpcId": "vpc-bp1d2q3mhg9i23ofi****",
"Status": "ONLINE",
"PrimaryZone": "cn-hangzhou-i",
"DeployType": "multiple",
"DeployMode": "1-1-1",
"CreateTime": "2021-09-17 15:52:17.0",
"TenantName": "pay_online",
"Mem": 20,
"Cpu": 10,
"Description": "paycore database",
"TenantMode": "Oracle",
"TenantId": "t33h8y08k****",
"UnitCpu": 5,
"UnitMem": 10,
"UnitNum": 2,
"UsedDiskSize": 10,
"Charset": "utf8mb4",
"Collation": "utf8mb4_general_ci",
"EnableReadOnlyReplica": true,
"ParameterTemplate": "express_oltp",
"Iops": 10000
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.