You can call this operation to query the topology of an OceanBase cluster.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The status of the node. | ob317v4uif**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "EE205C00-30E4-XXXX-XXXX-87E3A8A2AA0C",
"InstanceTopology": {
"Tenants": [
{
"TenantId": "t33h8y08k****",
"TenantName": "pay_online",
"TenantCpu": 2,
"TenantMemory": 10,
"TenantMode": "Oracle",
"TenantZones": [
{
"TenantZoneRole": "ReadWrite",
"IsPrimaryTenantZone": "true",
"TenantZoneId": "cn-hangzhou-h",
"Units": [
{
"UnitId": "1002",
"UnitStatus": "ONLINE",
"NodeId": "i-bp16niirq4zdmgvm****",
"UnitCpu": 2,
"UnitMemory": 10,
"EnableMigrateUnit": true,
"ManualMigrate": true,
"EnableCancelMigrateUnit": true,
"UnitDataSize": 10
}
]
}
],
"TenantStatus": "ONLINE",
"TenantDeployType": "multiple",
"TenantUnitNum": 1,
"PrimaryZoneDeployType": "RANDOM"
}
],
"Zones": [
{
"ZoneId": "cn-hangzhou-i",
"Region": "cn-hangzhou",
"ZoneDisk": "200 GB",
"Nodes": [
{
"NodeId": "i-bp16niirq4zdmgvm****",
"NodeCopyId": 1,
"NodeStatus": "ONLINE",
"NodeResource": [
{
"Cpu": {
"UsedCpu": 4,
"TotalCpu": 14
},
"Memory": {
"UsedMemory": 10,
"TotalMemory": 70
},
"DiskSize": {
"TotalDiskSize": 400,
"UsedDiskSize": 200
}
}
]
}
],
"ZoneResource": {
"DiskSize": {
"MaxDiskUsedPercent": 0.14,
"MaxDiskUsedObServer": [
"i-bp1fhj23fs32dfbg4****"
]
}
}
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||
---|---|---|---|---|
2024-04-15 | The response structure of the API has changed | see changesets | ||
| ||||
2023-12-26 | The response structure of the API has changed | see changesets | ||
| ||||
2022-09-28 | The response structure of the API has changed | see changesets | ||
| ||||
2021-08-19 | Add Operation | see changesets |