Description
Queries a tenant in a specified cluster, including its basic information, resource configuration, and connection information.
Call description
Prerequisites
You need an access key to call the multi-cloud API. For information about how to obtain an AccessKey ID and AccessKey Secret, see Manage access keys.
Request path
GET /api/v2/instances/{instanceId}/tenants/{tenantId}
Request parameters
Path
Parameter |
Type |
Required |
Description |
Example value |
|---|---|---|---|---|
| instanceId | String | Yes | OceanBase cluster ID. | obcluster-***** |
| tenantId | String | Yes | Tenant ID. | t4louaeei**** |
Query
Parameter |
Type |
Required |
Description |
Example value |
|---|---|---|---|---|
| requestId | String | Yes | Request ID used for tracing. | d04eabba**** |
Response parameters
Field |
Type |
Description |
Example value |
|---|---|---|---|
| success | Boolean | Whether the request succeeded. | true |
| errorCode | String | Error code. | INVALID_PARAMETER |
| errorMessage | String | Error message. | Invalid parameter |
| data | Object | Response data. | None |
| cost | Number | Request duration. | 1.0 |
| server | String | Server address, typically the IP address of an OBServer node. | 10.0.0.10 |
| requestId | String | Request ID. | d04eabba**** |
| totalCount | Number | Total record count. | 100.0 |
| extra | Object | Additional information. | {} |
data object fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| tenantId | String | Tenant ID. | t4louaeei**** |
| ocpTenantId | Integer | OCP internal tenant identifier. | 10001 |
| tenantName | String | Tenant name. | xxxxxx |
| managementMode | String | Management mode: DBAAS or MAAS. | DBAAS |
| gmtCreate | String | Creation time. | 2026-02-25T15:40:43+00:00 |
| createTime | String | Creation time (read-only). | 2026-02-25T15:40:43+00:00 |
| tenantMode | String | Tenant mode, for example, MySQL or Oracle. | xxxxxx |
| primaryRegion | String | Primary region. | cn-hangzhou |
| primaryZone | String | Primary zone. | cn-hangzhou-i |
| status | String | Current status of the task or resource. | ONLINE |
| cpu | Integer | Number of CPU cores or CPU specifications. | 4 |
| mem | Integer | Total memory, in GB. | 16 |
| diskSize | Integer | Disk size. | 200 |
| unitCpu | Integer | CPU specification per unit. | 2 |
| unitMem | Integer | Memory specification per unit. | 8 |
| unitNum | Integer | Number of units. | 1 |
| unitDiskSize | Integer | Disk size per unit. | 200 |
| vpcId | String | VPC identifier. | vpc-xxxx**** |
| deployType | String | Deployment type. | single |
| description | String | Description. | Tenant for Business Transactions |
| tenantConnections | Array | Tenant connection information. | [{"addressStatus": "ONLINE", "addressType": "MASTER", "intranetAddress": "10.0.0.10", "intranetPort": 2881, "serviceType": "PRIVATE"}] |
| tenantZones | Array | Zone information. | [{"replicaType": "FULL"}] |
| tenantResource | Object | Tenant resource specifications. | None |
| tenantResource.cpu | Object | CPU specifications. | None |
| tenantResource.cpu.unitCpu | Number | Number of CPU cores per unit, as a double-precision value. | 4.0 |
| tenantResource.cpu.totalCpu | Number | Total number of CPU cores: unitCpu × unitNum. The replica count is not included in this calculation. | 4.0 |
| tenantResource.cpu.usedCpu | Number | Number of CPU cores in use. This API does not currently populate this field. | — |
| tenantResource.memory | Object | Memory specifications. | None |
| tenantResource.memory.unitMemory | Number | Memory per unit in GB, as a double-precision value. | 16.0 |
| tenantResource.memory.totalMemory | Number | Total memory in GB: unitMemory × unitNum. The replica count is not included in this calculation. | 16.0 |
| tenantResource.memory.usedMemory | Number | Memory in use. This API does not currently populate this field. | — |
| tenantResource.disk | Object | Disk capacity and usage. | None |
| tenantResource.disk.totalDiskSize | Number | Total disk capacity in GB: disk capacity per unit × unitNum. The replica count is not included in this calculation. | 200.0 |
| tenantResource.disk.usedDiskSize | Number | Used disk space in GiB, calculated by dividing the number of bytes by 1024³ and rounding to two decimal places. | 12.5 |
| tenantResource.disk.usedUnitDiskSize | Number | Disk space used per unit in GiB, calculated by dividing the number of bytes by 1024³ and rounding to two decimal places. | 3.0 |
| tenantResource.unitNum | Integer | Number of units. | 1 |
| enableBinlogService | Boolean | Whether the binlog service can be enabled. | true |
| readonlyConnectionAddable | String | Whether a read-only address can be added. Valid values:
|
ADDABLE |
| readwriteConnectionAddable | String | Whether a read/write splitting address can be added. Valid values:
|
ADDABLE |
| timeZone | String | Time zone configured for the tenant. | +08:00 |
| charset | String | Character set configured for the tenant. | utf8mb4 |
| collation | String | Collation. | utf8mb4_general_ci |
| lowerCaseTableNamesParam | Integer | Case sensitivity setting for table names in the tenant. | 1 |
| parameterTemplate | String | Parameter template. | oltp |
| tagList | Array | Tenant tags. | [{"tagKey": "env", "tagValue": "prod"}] |
| tenantCompatibilityMode | String | Tenant compatibility mode. A TP cluster returns MySQL or Oracle, and a KV cluster returns HBase or Table. | xxxxxx |
| dataMergeTime | String | Tenant major compaction time (available only in 4.x clusters). | 02:00 |
| enableProxyPublicLink | Boolean | Whether to enable public access. | false |
| enableProxyPeeringLink | Boolean | Whether to enable peering access. | false |
| odpDefaultVersion | String | Default ODP version used when creating tenant addresses. | 4.2.1 |
| enableProxyService | Boolean | Whether to enable the proxy service. | true |
| globalAddressAddable | String | Whether a global address can be added. Valid values:
|
ADDABLE |
| enableStandbyReadWriteSplit | String | Status of read/write splitting between primary and standby databases. | ENABLED |
| instanceZoneReplicas | Array | List of replicas in the instance zones. | [{"replicaType": "FULL"}] |
| zones | Array | List of zones. | None |
| tenantMaxConnections | Integer | Maximum number of connections for the tenant. | 10000 |
| ragCluster | Object | RAG cluster information. | None |
| ragCluster.gmtCreate | String | Creation time. | 2026-02-25T15:40:43+00:00 |
| ragCluster.gmtModified | String | Modification time. | 2026-02-26T10:40:43+00:00 |
| ragCluster.ragClusterId | String | RAG cluster ID. | obcluster-***** |
| ragCluster.ragClusterArn | String | RAG cluster ARN. | acs:oceanbase:cn-hangzhou:200006001999:rag/rag-123456 |
| ragCluster.instanceId | String | OceanBase cluster ID. | obcluster-***** |
| ragCluster.tenantId | String | Tenant ID. | t4louaeei**** |
| ragCluster.region | String | Region, required for some object storage vendors, for example, S3. | ap-guangzhou |
| ragCluster.zone | String | Zone. | cn-hangzhou-i |
| ragCluster.version | String | "2.2.52" OceanBase Database version. |
2.2.52 |
| ragCluster.cloudProvider | String | Cloud provider that hosts the resource or data source. | xxxxxx |
| ragCluster.status | String | Current status of the task or resource. | ONLINE |
| ragCluster.resourceAccount | String | Resource account. | 3 |
| ragCluster.uid | String | User ID. | 20000600**** |
| enableRag | Boolean | Whether to enable RAG. | false |
| iops | Integer | Number of storage read and write operations per second. | 1000 |
| aiFunctionStatus | String | AI feature status. | ENABLED |
| privateLinkExisted | Boolean | Whether a PrivateLink connection exists. | true |
| tenantCompatibilityControl | String | Tenant compatibility control configuration. | xxxxxx |
| unitLogDisk | Integer | Unit log disk specification. | 100 |
| directConnectionAddable | String | Whether a direct connection address can be added. Valid values:
|
ADDABLE |
| directConnectionAddableReasonType | String | Reason why a direct connection address cannot be created. Valid values: INSTANCE_LEVEL for an instance-level reason and TENANT_LEVEL for a tenant-level reason. This field is null when the address can be created. | INSTANCE_LEVEL |
| instanceType | String | Instance type. | DEDICATE**** |
| tenantType | String | Tenant type: TP, KV, or AP. In the Flagship Edition, the type is determined at the tenant level. In other editions, it is determined by the instance type. | xxxxxx |
| odpAddressStatus | String | ODP connection readiness for this tenant. Valid values: ONLINE and PENDING_CREATE. This field indicates whether the tenant has at least one available primary address. It determines whether the primary address, private connection, peering connection, and public connection cards still show provisioning in progress, preventing repeated creation attempts while the tenant is online but its initial primary addresses are still being created. The status is determined as follows:
This differs from the criteria for applying allowlists through the cluster-level |
ONLINE |
data.instanceZoneReplicas[] object fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| copyId | Integer | Replica number. | 1 |
| logicZoneName | String | Logical zone name. | cn-hangzhou-i |
| zone | String | Zone. | cn-hangzhou-i |
| logicalZone | String | Logical zone. | ap-beijing-3-ro-z0 |
| replicaType | String | Replica type, for example, FULL, READONLY, or LOGONLY. | FULL |
| zoneRegionName | String | Name of the region that hosts the replica. | test-name |
| zoneLogicalId | Integer | ID of the logical zone that hosts the replica. | 1 |
| zoneId | String | Zone ID. | cn-hangz**** |
| status | String | Current status of the task or resource. | ONLINE |
| nodeNum | Integer | Number of nodes. | 3 |
| readonlyInstanceId | String | Read-only instance ID. | obcluster-*****-ro |
| replicaResource | Object | Replica resource specifications. | None |
| replicaResource.cpu | Object | Number of CPU cores or CPU specifications. | None |
| replicaResource.cpu.totalCpu | Number | Total number of CPU cores. | 4.0 |
| replicaResource.cpu.usedCpu | Number | Number of CPU cores used. | 4.0 |
| replicaResource.cpu.originalTotalCpu | Number | Total number of CPU cores before the change. | 4.0 |
| replicaResource.cpu.unitCpu | Number | CPU specification per unit. | 2.0 |
| replicaResource.memory | Object | Memory specifications. | None |
| replicaResource.memory.totalMemory | Number | Total memory. | 16.0 |
| replicaResource.memory.usedMemory | Number | Used memory. | 16.0 |
| replicaResource.memory.originalTotalMemory | Number | Total memory before the change. | 16.0 |
| replicaResource.memory.unitMemory | Number | Memory per unit in GB. | 8.0 |
| replicaResource.memory.hostActualMemory | Number | Actual host memory in GiB. | 16.0 |
| replicaResource.memory.systemMemory | Number | Memory used by the host system in the Flagship Edition, in GiB: hostActualMemory - totalMemory. | 16.0 |
| replicaResource.memory.originalHostActualMemory | Number | Actual host memory for the original specification, in GiB. | 16.0 |
| replicaResource.disk | Object | Disk size. | None |
| replicaResource.disk.totalDiskSize | Number | Total disk capacity. | 200.0 |
| replicaResource.disk.usedDiskSize | Number | Used disk capacity. | 200.0 |
| replicaResource.disk.originalTotalDiskSize | Number | Total disk capacity before the change. | 200.0 |
| replicaResource.disk.totalDataSize | Number | Total data size. | 200.0 |
| replicaResource.disk.unitDiskSize | Number | Disk size per unit. | 200.0 |
| replicaResource.disk.availableDiskSize | Number | Storage available to the user, in GB. | 200.0 |
| readOnlyReplicaType | String | Read-only replica type. | None |
data.tagList[] object fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| tagKey | String | Tag key. | env |
| tagValue | String | Tag value. | prod |
data.tenantConnections[] object fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| tenantId | String | Tenant ID. | t4louaeei**** |
| vpcId | String | VPC identifier. | vpc-xxxx**** |
| userVpcOwnerId | String | ID of the account that owns the user VPC. | 20000600**** |
| vSwitchId | String | vSwitch ID. | vsw-xxxx**** |
| connectionZones | Array | Zones associated with the connection. | ["cn-hangzhou-i"] |
| connectionLogicalZones | Array | List of logical zones associated with the connection address. | ["cn-hangzhou-i"] |
| connectionReplicaType | String | Replica type accessed through the connection address. | FULL |
| tenantEndpointId | String | Supplemental tenant endpoint ID for multi-cloud v5. | te-xxxxx**** |
| addressId | String | In multi-cloud scenarios, this is the VIP service group name. | rs-private-internet-***** |
| addressStatus | String | Connection status. | ONLINE |
| serviceType | String | Address type. | PRIVATE |
| addressType | String | Address type: MASTER, READONLY. | MASTER |
| networkType | String | Network type. | INTRANET |
| role | String | Connection type: READWRITE (read/write) or READONLY (read-only). In some cases, the primary address also needs a read/write type. The primary address of a standby database is read-only. | READWRITE |
| userNameFormat | String | Username format for this address: one-part, two-part, or three-part. | USER_AND_TENANT_AND_CLUSTER |
| useSSL | Boolean | Whether SSL is enabled. | false |
| proxyClusterInfo | Object | ODP proxy cluster information associated with the tenant connection. | None |
| proxyClusterInfo.proxyClusterId | String | ODP proxy cluster ID. | proxy-12**** |
| proxyClusterInfo.proxyMode | String | ODP proxy mode. | DEDICATED |
| proxyClusterInfo.zone | String | Zone. | cn-hangzhou-i |
| proxyClusterInfo.unitSpec | String | Unit specification. | 2C4G |
| proxyClusterInfo.unitNum | Number | Number of units. | 1.0 |
| proxyClusterInfo.sharedUnitNumLimit | Integer | Maximum number of units for the proxy service in K8s shared mode. | 3 |
| proxyClusterInfo.exclusiveUnitNumLimit | Integer | Maximum number of units for the proxy service in K8s exclusive mode. | 3 |
| proxyClusterInfo.status | String | Current status of the task or resource. | ONLINE |
| proxyClusterInfo.proxyServiceVersion | String | Architecture version. | 4.2.1.0 |
| proxyClusterInfo.proxyVersion | String | Proxy version. | 4.2.1.0 |
| proxyClusterInfo.createTime | String | Creation time (UTC). | 2026-02-25T15:40:43+00:00 |
| proxyClusterInfo.expireTime | String | "2020-12-23T04:14:48Z" Expiration time. |
2020-12-23T04:14:48+00:00 |
| proxyClusterInfo.deployMode | String | Data replica mode (n/n-n/n-n-n). | 1-1-1 |
| proxyClusterInfo.maxUnitNum | Number | Maximum number of units for Serverless ODP scaling, from K8s ODPClusterSpec.maxUnitNum. | 3.0 |
| proxyClusterInfo.slaveZone | String | Zone of the standby node. Added for the commercial ODP offering and returned only for primary-standby deployments across two or three zones. | cn-hangzhou-i |
| proxyClusterInfo.nodeDistribution | String | Node distribution. Added for the commercial ODP offering; replaces deployMode. | cn-hangzhou-i:1,cn-hangzhou-j:1 |
| proxyClusterInfo.nodeCpu | Number | Node specification. Added for the commercial ODP offering; replaces unitSpec * unitNum. | 4.0 |
| proxyClusterInfo.nodeNum | Integer | Number of nodes. Added for the commercial ODP offering. | 3 |
| proxyClusterInfo.deploymentArchitecture | String | Deployment architecture, added for the commercial ODP offering. Existing ODP clusters that have not migrated to this offering return SINGLE_AZ_DEPLOYMENT, DUAL_AZ_DEPLOYMENT, or MULTI_AZ_DEPLOYMENT. | SINGLE_ZONE |
| proxyClusterInfo.proxyServerIds | Array[String] | ODP proxy node IDs. | ["resource-123456"] |
| proxyClusterInfo.enableArchitectureUpgrade | Boolean | Whether architecture upgrade is enabled. | true |
| odpVersion | String | ODP version. | 4.2.1 |
| readStrategyConfigResponse | Object | Read traffic policy configuration for the tenant connection address. | None |
| readStrategyConfigResponse.odpVersion | String | ODP version. | 4.2.1 |
| readStrategyConfigResponse.trafficStrategy | String | Traffic policy. | ZONE_FIRST |
| readStrategyConfigResponse.replicaParams | Array | Selected replicas. | None |
| readStrategyConfigResponse.replicaParams[].value | String | Parameter value. | prod |
| readStrategyConfigResponse.replicaParams[].weight | Integer | Weight. | 1 |
| readStrategyConfigResponse.replicaParams[].readOnlyReplicaType | String | Read-only replica type. | FULL |
| readStrategyConfigResponse.disasterRecoveryReplicaParams | Array | Disaster recovery replicas. | None |
| readStrategyConfigResponse.disasterRecoveryReplicaParams[].value | String | Parameter value. | prod |
| readStrategyConfigResponse.disasterRecoveryReplicaParams[].weight | Integer | Weight. | 1 |
| readStrategyConfigResponse.disasterRecoveryReplicaParams[].readOnlyReplicaType | String | Read-only replica type. | FULL |
| readStrategyConfigResponse.balancedStrategy | String | Balancing policy. | BALANCED |
| readStrategyConfigResponse.disasterRecoveryStrategy | String | Disaster recovery policy. Automatically queries the primary replica when a replica is unavailable. | PRIMARY_FIRST |
| addressMasterZoneId | String | Primary zone of the address. | cn-hangz**** |
| loadBalanceType | String | Load balancing type: NLB or CLB. Required only for Alibaba Cloud. | NLB |
| internetAddress | String | Public address. | 8.8.8.8 |
| internetPort | Integer | Public port. | 2881 |
| internetDomain | String | Public address. | pay-core-public.oceanbase.example.com |
| internetAddressStatus | String | Public address status. | ONLINE |
| internetMaxConnectionNum | Integer | Maximum number of public connections. | 10000 |
| internetMaxConnectionNumLimit | Integer | Upper limit on the maximum number of public connections. | 20000 |
| internetRpcPort | Integer | Public RPC port. | 2882 |
| internetProxyClusterId | String | Public proxy cluster ID. | proxy-12**** |
| internetLoadBalanceType | String | Load balancing type for the public address. | NLB |
| intranetAddress | String | Private address. | 10.0.0.10 |
| intranetPort | Integer | Private network port. | 2881 |
| intranetDomain | String | Private address. | pay-core-private.oceanbase.example.com |
| intranetAddressStatus | String | Private address status. | ONLINE |
| maxConnectionNum | Integer | Maximum number of private network connections. | 10000 |
| maxConnectionNumLimit | Integer | Upper limit for adjusting the maximum number of private connections. | 20000 |
| intranetRpcPort | Integer | Private network RPC port. | 2882 |
| enableRPc | Boolean | Whether RPC is enabled for Direct Load. | true |
| disableRpcReason | String | Reason why RPC cannot be enabled. | ODP proxy is not ready |
| intranetAddressMasterZoneId | String | Primary zone ID. | cn-hangz**** |
| intranetAddressSlaveZoneId | String | Standby zone ID. | cn-hangz**** |
| deleteSingleTunnelAddress | Boolean | Whether the primary private address on Alibaba Cloud can be deleted. | true |
| intranetProxyClusterId | String | Private network proxy cluster ID. | proxy-12**** |
| forceMigratedObproxyIntranetDeleteInternet | Boolean | Whether deleting the private address of a migrated primary address also deletes its public address, if one exists. | true |
| intranetLoadBalanceType | String | Load balancing type for the private address. | NLB |
| privateLinkList | Array | List of PrivateLink connections. | [{"privateLinkStatus": "ONLINE"}] |
| intranetPeeringAddress | String | Peering address. | 10.1.0.10 |
| intranetPeeringPort | Integer | Peering address port. | 2881 |
| intranetPeeringDomain | String | Peering address domain name. | pay-core-peering.oceanbase.example.com |
| intranetPeeringAddressStatus | String | Peering address status. | ONLINE |
| intranetPeeringMaxConnectionNum | Integer | Maximum number of connections for the peering address. | 10000 |
| peeringDstVpcId | String | Peer VPC ID. | vpc-peer**** |
| peeringDstCidrList | String | Peer CIDR block. | 10.1.0.0**** |
| peeringId | String | Peering connection ID. | pcx-xxxx**** |
| intranetPeeringProxyClusterId | String | Proxy cluster ID for the private peering address. | proxy-12**** |
| intranetRagPort | Integer | Private network RAG port. | 8080 |
| internetRagPort | Integer | Public network RAG port. | 8080 |
| internetRagAddress | String | Public network RAG address. | pay-core-rag-public.oceanbase.example.com |
| enableRagHttp | Boolean | Whether to enable the RAG HTTP port. | false |
| isVirtualServerGroup | Boolean | Virtual server group / primary-standby server group flag. Applies to instances migrated from Alibaba Cloud to OB Cloud. | false |
| isMigrated | Integer | Whether the cluster endpoint was migrated from Alibaba Cloud to OB Cloud. | 0 |
| userFormatConnStatus | String | Status of access using a one-part username. | ONLINE |
| userFormatConnUnsupportedReason | String | Reason why access using a one-part username cannot be enabled. | 2881 |
| rpcUserNameFormat | String | Username format when an RPC port is available: USER_AND_TENANT is the two-part format (for example, root@obtenant1), and USER_AND_TENANT_AND_CLUSTER is the three-part format (for example, root@obtenant1#obcluster1). By default, it matches userNameFormat. For colocated ODP on Azure, public SQL connections use the two-part format, while RPC connections use the three-part format. |
USER_AND_TENANT_AND_CLUSTER |
data.tenantConnections[].connectionLogicalZones[] element fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| data.tenantConnections[].connectionLogicalZones[] | String | List of logical zones associated with the connection address. | "cn-hangzhou-i" |
data.tenantConnections[].connectionZones[] element fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| data.tenantConnections[].connectionZones[] | String | Zones associated with the connection. | "cn-hangzhou-i" |
data.tenantConnections[].privateLinkList[] object fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| endpointId | String | Endpoint ID. | ep-xxxxxx |
| status | String | Status. | CONNECTED |
| privateLinkStatus | String | PrivateLink provisioning status. | ONLINE |
| privateLinkServiceId | String | PrivateLink service ID. | resource**** |
| privateLinkEndpointId | String | PrivateLink endpoint ID. | resource**** |
| privateLinkEndpointVpcId | String | VPC ID of the PrivateLink endpoint. | vpc-xxxx**** |
| privateLinkEndpointSubnetId | String | Subnet ID of the PrivateLink endpoint. | resource**** |
| privateLinkServiceAccount | String | Primary account for the PrivateLink service. | 3 |
| privateLinkUserAccount | String | Account on the PrivateLink allowlist. | 3 |
| privateLinkDomain | String | Private domain name. | pay-core.oceanbase.example.com |
| intranetAddress | String | Private address. | 10.0.0.10 |
| intranetDomain | String | Private address. | pay-core-private.oceanbase.example.com |
| deletePrivateLink | Boolean | Whether the primary private address can be deleted. It cannot be deleted if it is associated with a global address. | true |
data.tenantZones[] object fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| status | String | Status. | ONLINE |
| zone | String | Zone. | cn-hangzhou-i |
| name | String | Zone name (zoneId). | Data Source Name |
| replicaType | String | Replica type, for example, FULL, READONLY, or LOGONLY. | FULL |
| region | String | Region. | ap-guangzhou |
| role | String | Role: read/write or read-only. | READWRITE |
| tenantZoneReplicas | Array | Replica information in the zone. | None |
data.tenantZones[].tenantZoneReplicas[] object fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| zoneReplicaType | String | Replica type of the tenant in the zone, for example, FULL, READONLY, or COLUMNSTORE. | FULL |
| zoneNodes | Integer | Number of nodes covered by the replica. | 1 |
| logicZoneName | String | Name of the logical zone where the tenant replica is located. | cn-hangzhou-i |
| copyId | Integer | Replica sequence number in the tenant topology, used to distinguish replicas within the same tenant. | 1 |
| fullCopyId | Integer | Display number for full-featured replicas, corresponding to Full-featured Replica 1 and Full-featured Replica 2 on the page. | 1 |
| readOnlyCopyId | Integer | Display number for read-only replicas, corresponding to Read-only Replica 1 and Read-only Replica 2 on the page. | 1 |
| tenantZoneRole | String | Role of the tenant replica, for example, read/write replica, standby replica, or read-only replica. | cn-hangz**** |
| readOnlyReplicaType | String | Read-only replica type. | None |
| unitInfoList | Array | Unit resource details associated with the replica. | [{"tenantId": "t4louaeei****"}] |
data.tenantZones[].tenantZoneReplicas[].unitInfoList[] object fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| id | String | Identifier. | resource-123456 |
| unitId | String | Unit ID. | resource**** |
| serverIp | String | Server IP address. | 10.0.0.10 |
| serverPort | Integer | Server port. | 2881 |
| replicaType | String | Replica type, for example, FULL, READONLY, or LOGONLY. | FULL |
| nodeId | String | Sn | example-value |
| isPrimary | Boolean | Whether it is a primary zone or a leader replica. | true |
| unitCpu | Number | Number of CPU cores or CPU specifications. | 4.0 |
| unitMemory | Number | Memory specifications. | 16.0 |
| unitDataSize | Number | Data size | 200.0 |
| logDiskSize | Number | Log disk size. | 200.0 |
| zone | String | Zone. | cn-hangzhou-i |
| logicalZone | String | Logical zone. | ap-beijing-3-ro-z0 |
| tenantObId | Integer | OceanBase tenant ID. | 1 |
| tenantId | String | Tenant ID. | t4louaeei**** |
| resourcePoolId | Integer | Resource pool identifier. | 1 |
| migrateFromServerIp | String | IP address of the source server for unit migration. | 10.0.0.11 |
| migrateFromServerPort | Integer | Port of the source server for unit migration. | 2881 |
| migrateFromServerSn | String | Serial number of the source server for unit migration. | server-sn-001 |
| manualMigrate | Integer | Whether the unit migration is manual. | 0 |
| enableMigrateUnit | Boolean | Whether unit migration can be initiated. | true |
| enableCancelMigrateUnit | Boolean | Whether unit migration can be canceled. | true |
| unitStatus | String | Current status of the task or resource. | ONLINE |
data.zones[] object fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| zoneId | String | Zone ID. | cn-hangz**** |
| region | String | Region, required for some object storage vendors, for example, S3. | ap-guangzhou |
| zoneDisk | String | Data disk capacity displayed for this zone. | 200 |
| logicZoneId | String | Logical zone ID. | resource**** |
| replicaType | String | Replica type, for example, FULL, READONLY, or LOGONLY. | FULL |
| nodes | Array | List of nodes in the logical zone. | [{"nodeId": "node-1", "serverIp": "192.0.2.10"}] |
data.zones[].nodes[] object fields
Field |
Type |
Description |
Example value |
|---|---|---|---|
| id | String | Identifier. | resource-123456 |
| nodeId | String | Node ID. | xxxxxx |
| serverIp | String | Server IP address. | 10.0.0.10 |
| nodeCopyId | Integer | Sequence number of the node replica in the topology. | 1 |
| nodeStatus | String | Current running status of the node. | ONLINE |
| replicaType | String | Replica type hosted by the node, for example, FULL, READONLY, or LOGONLY. | FULL |
| fullCopyId | Integer | Display number for full-featured replicas. | 1 |
| readOnlyCopyId | Integer | Display number for read-only replicas. | 1 |
| logicalZone | String | Logical zone. | ap-beijing-3-ro-z0 |
| readOnlyReplicaType | String | Read-only replica type. | None |
| nodeResource | Object | Node resource specifications. | None |
| nodeResource.cpu | Object | N/A | None |
| nodeResource.cpu.totalCpu | Number | Total number of CPU cores. | 4.0 |
| nodeResource.cpu.usedCpu | Number | Number of CPU cores used. | 4.0 |
| nodeResource.cpu.originalTotalCpu | Number | Total number of CPU cores before the change. | 4.0 |
| nodeResource.cpu.unitCpu | Number | CPU specification per unit. | 2.0 |
| nodeResource.memory | Object | N/A | None |
| nodeResource.memory.totalMemory | Number | Total memory. | 16.0 |
| nodeResource.memory.usedMemory | Number | Used memory. | 16.0 |
| nodeResource.memory.originalTotalMemory | Number | Total memory before the change. | 16.0 |
| nodeResource.memory.unitMemory | Number | Memory per unit in GB. | 8.0 |
| nodeResource.memory.hostActualMemory | Number | Actual host memory in GiB. | 16.0 |
| nodeResource.memory.systemMemory | Number | Memory used by the host system in the Flagship Edition, in GiB: hostActualMemory - totalMemory. | 16.0 |
| nodeResource.memory.originalHostActualMemory | Number | Actual host memory for the original specification, in GiB. | 16.0 |
| nodeResource.disk | Object | N/A | None |
| nodeResource.disk.totalDiskSize | Number | Total disk capacity. | 200.0 |
| nodeResource.disk.usedDiskSize | Number | Used disk capacity. | 200.0 |
| nodeResource.disk.originalTotalDiskSize | Number | Total disk capacity before the change. | 200.0 |
| nodeResource.disk.totalDataSize | Number | Total data size. | 200.0 |
| nodeResource.disk.unitDiskSize | Number | Disk size per unit. | 200.0 |
| nodeResource.disk.availableDiskSize | Number | Storage available to the user, in GB. | 200.0 |
Examples
Request example
curl --digest -u '<Your AccessKey ID:AccessKey Secret>' \
--request GET \
--url https://api-cloud.oceanbase.com/api/v2/instances/{instanceId}/tenants/{tenantId}?requestId={requestId} \
-H 'X-Ob-Project-Id: <Project ID>'
Note
- A project ID uniquely identifies a project. For information about how to obtain the project ID of a cluster, see Manage projects.
- Make sure that the project ID of the instance identified by instanceId matches the specified project ID.
Response example
The following resource values illustrate the structure only. In this example, tenantResource contains one unit with 4 CPU cores, 16 GB of memory, and 200 GB of disk capacity. Disk usage values are illustrative. This API does not currently populate usedCpu or usedMemory, so these fields are omitted from the example.
JSON format
{
"success": true,
"errorCode": null,
"errorMessage": null,
"data": {
"tenantId": "t4louaeei****",
"ocpTenantId": 1,
"tenantName": "xxxxxx",
"managementMode": "DBAAS",
"gmtCreate": "2026-02-25T15:40:43+00:00",
"createTime": "2026-02-25T15:40:43+00:00",
"tenantMode": "xxxxxx",
"primaryRegion": "cn-hangzhou",
"primaryZone": "cn-hangzhou-i",
"status": "ONLINE",
"cpu": 4,
"mem": 16,
"diskSize": 200,
"unitCpu": 2,
"unitMem": 8,
"unitNum": 1,
"unitDiskSize": 200,
"unitLogDisk": 100,
"vpcId": "vpc-xxxx****",
"deployType": "single",
"description": "A tenant used for business transactions.",
"tenantConnections": [
{
"addressStatus": "ONLINE",
"addressType": "MASTER",
"intranetAddress": "192.0.2.10",
"intranetPort": 2881,
"serviceType": "PRIVATE",
"tenantId": "t4louaeei****",
"vpcId": "vpc-xxxx****",
"userVpcOwnerId": "20000600****",
"vSwitchId": "vsw-xxxx****",
"connectionZones": [
"cn-hangzhou-i"
],
"connectionLogicalZones": [
"cn-hangzhou-i"
],
"connectionReplicaType": "FULL",
"tenantEndpointId": "te-xxxxx****",
"addressId": "rs-private-internet-*****",
"networkType": "INTRANET",
"role": "READWRITE",
"userNameFormat": "USER_AND_TENANT_AND_CLUSTER",
"useSSL": false,
"proxyClusterInfo": {
"proxyClusterId": "proxy-12****",
"proxyMode": "DEDICATED",
"zone": "cn-hangzhou-i",
"unitSpec": "2C4G",
"unitNum": 1.0,
"sharedUnitNumLimit": 3,
"exclusiveUnitNumLimit": 3,
"status": "ONLINE",
"proxyServiceVersion": "4.2.1.0",
"proxyVersion": "4.2.1.0",
"createTime": "2026-02-25T15:40:43+00:00",
"expireTime": "2020-12-23T04:14:48+00:00",
"deployMode": "1-1-1",
"maxUnitNum": 3.0,
"slaveZone": "cn-hangzhou-i",
"nodeDistribution": "cn-hangzhou-i:1,cn-hangzhou-j:1",
"nodeCpu": 4.0,
"nodeNum": 3,
"deploymentArchitecture": "SINGLE_ZONE",
"proxyServerIds": [
"resource-123456"
],
"enableArchitectureUpgrade": true
},
"odpVersion": "4.2.1",
"readStrategyConfigResponse": {
"odpVersion": "4.2.1",
"trafficStrategy": "ZONE_FIRST",
"replicaParams": [
{
"value": "prod",
"weight": 1,
"readOnlyReplicaType": "FULL"
}
],
"disasterRecoveryReplicaParams": [
{
"value": "prod",
"weight": 1,
"readOnlyReplicaType": "FULL"
}
],
"balancedStrategy": "BALANCED",
"disasterRecoveryStrategy": "PRIMARY_FIRST"
},
"addressMasterZoneId": "cn-hangz****",
"loadBalanceType": "NLB",
"internetAddress": "192.0.2.10",
"internetPort": 2881,
"internetDomain": "pay-core-public.oceanbase.example.com",
"internetAddressStatus": "ONLINE",
"internetMaxConnectionNum": 10000,
"internetMaxConnectionNumLimit": 20000,
"internetRpcPort": 2882,
"internetProxyClusterId": "proxy-12****",
"internetLoadBalanceType": "NLB",
"intranetDomain": "pay-core-private.oceanbase.example.com",
"intranetAddressStatus": "ONLINE",
"maxConnectionNum": 10000,
"maxConnectionNumLimit": 20000,
"intranetRpcPort": 2882,
"enableRPc": true,
"disableRpcReason": "ODP proxy is not ready",
"intranetAddressMasterZoneId": "cn-hangz****",
"intranetAddressSlaveZoneId": "cn-hangz****",
"deleteSingleTunnelAddress": true,
"intranetProxyClusterId": "proxy-12****",
"forceMigratedObproxyIntranetDeleteInternet": true,
"intranetLoadBalanceType": "NLB",
"privateLinkList": [
{
"privateLinkStatus": "ONLINE",
"privateLinkServiceId": "resource****",
"privateLinkEndpointId": "resource****",
"privateLinkEndpointVpcId": "vpc-xxxx****",
"privateLinkEndpointSubnetId": "resource****",
"privateLinkServiceAccount": "3",
"privateLinkUserAccount": "3",
"privateLinkDomain": "pay-core.oceanbase.example.com",
"intranetAddress": "192.0.2.10",
"intranetDomain": "pay-core-private.oceanbase.example.com",
"deletePrivateLink": true
}
],
"intranetPeeringAddress": "192.0.2.10",
"intranetPeeringPort": 2881,
"intranetPeeringDomain": "pay-core-peering.oceanbase.example.com",
"intranetPeeringAddressStatus": "ONLINE",
"intranetPeeringMaxConnectionNum": 10000,
"peeringDstVpcId": "vpc-peer****",
"peeringDstCidrList": "10.1.0.0****",
"peeringId": "pcx-xxxx****",
"intranetPeeringProxyClusterId": "proxy-12****",
"intranetRagPort": 8080,
"internetRagPort": 8080,
"internetRagAddress": "pay-core-rag-public.oceanbase.example.com",
"enableRagHttp": false,
"isVirtualServerGroup": false,
"isMigrated": 0,
"userFormatConnStatus": "ONLINE",
"userFormatConnUnsupportedReason": "2881",
"rpcUserNameFormat": "USER_AND_TENANT_AND_CLUSTER"
}
],
"tenantZones": [
{
"replicaType": "FULL",
"name": "Data source name",
"region": "ap-guangzhou",
"role": "READWRITE",
"tenantZoneReplicas": [
{
"zoneReplicaType": "FULL",
"zoneNodes": 1,
"logicZoneName": "cn-hangzhou-i",
"copyId": 1,
"fullCopyId": 1,
"readOnlyCopyId": 1,
"tenantZoneRole": "cn-hangz****",
"readOnlyReplicaType": "xxxxxx",
"unitInfoList": [
{
"unitId": "resource****",
"serverIp": "192.0.2.10",
"serverPort": 2881,
"replicaType": "FULL",
"nodeId": "example-value",
"isPrimary": true,
"unitCpu": 4.0,
"unitMemory": 16.0,
"unitDataSize": 200.0,
"logDiskSize": 200.0,
"zone": "cn-hangzhou-i",
"logicalZone": "ap-beijing-3-ro-z0",
"tenantObId": 1,
"tenantId": "t4louaeei****",
"resourcePoolId": 1,
"migrateFromServerIp": "192.0.2.10",
"migrateFromServerPort": 2881,
"migrateFromServerSn": "server-sn-001",
"manualMigrate": 0,
"enableMigrateUnit": true,
"enableCancelMigrateUnit": true,
"unitStatus": "ONLINE"
}
]
}
]
}
],
"tenantResource": {
"cpu": {
"unitCpu": 4.0,
"totalCpu": 4.0
},
"memory": {
"unitMemory": 16.0,
"totalMemory": 16.0
},
"disk": {
"totalDiskSize": 200.0,
"usedDiskSize": 12.5,
"usedUnitDiskSize": 3.0
},
"unitNum": 1
},
"enableBinlogService": true,
"readonlyConnectionAddable": "ADDABLE",
"readwriteConnectionAddable": "ADDABLE",
"timeZone": "+08:00",
"charset": "utf8mb4",
"collation": "utf8mb4_general_ci",
"lowerCaseTableNamesParam": 1,
"parameterTemplate": "oltp",
"tagList": [
{
"tagKey": "env",
"tagValue": "prod"
}
],
"tenantCompatibilityMode": "xxxxxx",
"tenantCompatibilityControl": "xxxxxx",
"dataMergeTime": "02:00",
"enableProxyPublicLink": false,
"enableProxyPeeringLink": false,
"odpDefaultVersion": "4.2.1",
"enableProxyService": true,
"globalAddressAddable": "ADDABLE",
"directConnectionAddable": "ADDABLE",
"directConnectionAddableReasonType": "INSTANCE_LEVEL",
"enableStandbyReadWriteSplit": "ENABLED",
"instanceZoneReplicas": [
{
"replicaType": "FULL",
"logicalZone": "ap-beijing-3-ro-z0",
"zoneRegionName": "test-name",
"zoneLogicalId": 1,
"zoneId": "cn-hangz****",
"status": "ONLINE",
"nodeNum": 3,
"readonlyInstanceId": "obcluster-*****-ro",
"replicaResource": {
"cpu": {
"totalCpu": 4.0,
"usedCpu": 4.0,
"originalTotalCpu": 4.0,
"unitCpu": 2.0
},
"memory": {
"totalMemory": 16.0,
"usedMemory": 16.0,
"originalTotalMemory": 16.0,
"unitMemory": 8.0,
"hostActualMemory": 16.0,
"systemMemory": 16.0,
"originalHostActualMemory": 16.0
},
"disk": {
"totalDiskSize": 200.0,
"usedDiskSize": 200.0,
"originalTotalDiskSize": 200.0,
"totalDataSize": 200.0,
"unitDiskSize": 200.0,
"availableDiskSize": 200.0
}
},
"readOnlyReplicaType": "xxxxxx"
}
],
"zones": [
{
"zoneId": "cn-hangz****",
"region": "ap-guangzhou",
"zoneDisk": "200",
"logicZoneId": "resource****",
"replicaType": "FULL",
"nodes": [
{
"nodeId": "xxxxxx",
"serverIp": "192.0.2.10",
"nodeCopyId": 1,
"nodeStatus": "ONLINE",
"replicaType": "FULL",
"fullCopyId": 1,
"readOnlyCopyId": 1,
"logicalZone": "ap-beijing-3-ro-z0",
"readOnlyReplicaType": "xxxxxx",
"nodeResource": {
"cpu": {
"totalCpu": 4.0
},
"memory": {
"totalMemory": 16.0
},
"disk": {
"totalDiskSize": 200.0
}
}
}
]
}
],
"tenantMaxConnections": 1,
"ragCluster": {
"gmtCreate": "2026-02-25T15:40:43+00:00",
"gmtModified": "2026-02-26T10:40:43+00:00",
"ragClusterId": "obcluster-*****",
"ragClusterArn": "acs:oceanbase:cn-hangzhou:200006001999:rag/rag-123456",
"instanceId": "obcluster-*****",
"tenantId": "t4louaeei****",
"region": "ap-guangzhou",
"zone": "cn-hangzhou-i",
"version": "2.2.52",
"cloudProvider": "xxxxxx",
"status": "ONLINE",
"resourceAccount": "3",
"uid": "20000600****"
},
"enableRag": false,
"iops": 1000,
"aiFunctionStatus": "ENABLED",
"privateLinkExisted": true,
"instanceType": "DEDICATE****",
"tenantType": "xxxxxx",
"odpAddressStatus": "ONLINE"
},
"cost": 1.0,
"server": "xxx.xxx.x.xxx:xxx",
"requestId": "d04eabba****",
"totalCount": 100.0,
"extra": {}
}