Mengkueri informasi topologi Kluster OceanBase tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oceanbase:DescribeInstanceTopology |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID Kluster OceanBase. |
ob317v4uif**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| RequestId |
string |
ID permintaan. |
EE205C00-30E4-****-****-87E3A8A2AA0C |
| InstanceTopology |
object |
Informasi topologi kluster. |
|
| Tenants |
array<object> |
Daftar penyewa. |
|
|
array<object> |
Parameter tanggapan. |
||
| TenantId |
string |
The ID of the tenant. |
t33h8y08k**** |
| TenantName |
string |
The name of the tenant. |
pay_online |
| TenantCpu |
number |
The number of CPU cores of the tenant. |
2 |
| TenantMemory |
number |
The memory size of the tenant, in GB. |
10 |
| TenantMode |
string |
The mode of the tenant. Valid values:
|
Oracle |
| TenantZones |
array<object> |
The information about the zones. |
|
|
array<object> |
The information about the zones. |
||
| TenantZoneRole |
string |
The role to access the zone. Valid values:
|
ReadWrite |
| IsPrimaryTenantZone |
boolean |
Indicates whether the zone is the primary zone. |
true |
| TenantZoneId |
string |
The ID of the zone. |
cn-hangzhou-h |
| Units |
array<object> |
The information about the resource units. |
|
|
object |
The information about the resource units. |
||
| UnitId |
string |
The ID of the resource unit. |
1002 |
| UnitStatus |
string |
The status of the resource unit. Valid values:
|
ONLINE |
| NodeId |
string |
The ID of the OBServer node in which the resource unit resides. |
i-bp16niirq4zdmgvm**** |
| UnitCpu |
number |
The number of CPU cores of the resource unit. |
2 |
| UnitMemory |
number |
The memory size of the resource unit, in GB. |
10 |
| EnableMigrateUnit |
boolean |
Indicates whether the resource unit can be migrated. |
true |
| ManualMigrate |
boolean |
Indicates whether the resource unit is manually migrated. |
true |
| EnableCancelMigrateUnit |
boolean |
Indicates whether the migration can be canceled. This parameter is valid only for resource units that are being manually immigrated or emigrated. |
true |
| UnitDataSize |
integer |
The data size of the resource unit. |
10 |
| ReplicaType |
string |
The type of the replica. Node filtering conditions are configured based on the replica type when you query the monitoring data of the OceanBase cluster.
|
FULL |
| LogicalZone |
string |
The ID of the replica. |
cn-hangzhou-h-z0 |
| ReplicaType |
string |
The replica type of the tenant. |
FULL |
| ReadOnlyReplicaType |
string |
The type of the read-only replica. |
ROW_STORE |
| TenantStatus |
string |
The status of the tenant. Valid values:
|
ONLINE |
| TenantDeployType |
string |
The deployment type of the tenant. Valid values:
|
multiple |
| TenantUnitNum |
integer |
The number of resource units in the tenant. |
1 |
| PrimaryZoneDeployType |
string |
The deployment mode of the primary zone. Valid values:
Valid values:
|
RANDOM |
| TenantDiskSize |
number |
The disk space of the tenant, in GB. |
2 |
| TenantUnitCpu |
number |
The number of CPU cores of a single node in the tenant. |
4 |
| TenantUnitMemory |
number |
The memory size of a single node in the tenant, in GB. |
16 |
| Zones |
array<object> |
Informasi zona kluster. |
|
|
array<object> |
Parameter tanggapan. |
||
| ZoneId |
string |
The ID of the zone. |
cn-hangzhou-i |
| Region |
string |
The ID of the region. |
cn-hangzhou |
| ZoneDisk |
string |
The storage capacity of the zone. |
200 GB |
| Nodes |
array<object> |
The information about the nodes. |
|
|
array<object> |
The information about the nodes. |
||
| NodeId |
string |
The ID of the node. |
i-bp16niirq4zdmgvm**** |
| NodeCopyId |
integer |
The ID of the replica node. |
1 |
| NodeStatus |
string |
The status of the node. |
ONLINE |
| NodeResource |
object |
The information about node resources. |
|
| Cpu |
object |
The information about the CPU resources of the node. |
|
| UsedCpu |
number |
The number of CPU cores used by the node. |
4 |
| TotalCpu |
integer |
The total number of CPU cores of the node. |
14 |
| Memory |
object |
The information about the memory resources of the node. |
|
| UsedMemory |
number |
The size of memory used by the node, in GB. |
10 |
| TotalMemory |
integer |
The total memory size of the node, in GB. |
70 |
| DiskSize |
object |
The information about the storage resources of the node. |
|
| TotalDiskSize |
number |
The total storage space of the node, in GB. |
100 |
| UsedDiskSize |
number |
The size of storage space used by the node, in GB. |
50 |
| ReplicaType |
string |
The type of the replica. Valid values:
|
FULL |
| FullCopyId |
integer |
The ID of the full-featured replica. |
1 |
| ReadOnlyCopyId |
integer |
The ID of the read-only replica. |
1 |
| LogicalZone |
string |
The ID of the replica. |
cn-hangzhou-h-z0 |
| ReadOnlyReplicaType |
string |
The type of the read-only replica. |
ROW_STORE |
| ZoneResource |
object |
The information about zones. |
|
| DiskSize |
object |
The information about the storage resources of the node. |
|
| MaxDiskUsedPercent |
number |
The maximum disk usage, in percentage. |
0.14 |
| MaxDiskUsedObServer |
array |
The IDs of OBServer nodes that use the maximum disk space. |
|
|
string |
The IDs of OBServer nodes that use the maximum disk space. |
i-bp1fhj23fs32dfbg4**** |
|
| Replicas |
array<object> |
Informasi replika. |
|
|
array<object> |
|||
| LogicalZone |
string |
The ID of the replica. |
cn-hangzhou-h-z0 |
| NodeNum |
integer |
The number of nodes of the replica. |
1 |
| ZoneLogicalName |
string |
The region of the replica. |
cn-hangzhou-h |
| ZoneRegionName |
string |
The zone of the replica. |
cn-hangzhou-h |
| ReplicaResource |
object |
The information about the replica resources. |
|
| Memory |
object |
The information about the memory resources of the replica. |
|
| UsedMemory |
integer |
The size of memory used by the replica, in GB. |
16 |
| TotalMemory |
integer |
The total memory size of the replica, in GB. |
32 |
| DiskSize |
object |
The information about the data disk of the replica. |
|
| UsedDiskSize |
number |
The disk space used by the replica, in GB. |
50 |
| TotalDiskSize |
integer |
The total disk space of the replica, in GB. |
100 |
| Cpu |
object |
The information about the CPU resources of the replica. |
|
| TotalCpu |
integer |
The total number of CPU cores of the replica. |
16 |
| UsedCpu |
integer |
The number of CPU cores used by the replica. |
8 |
| ZoneLogicalId |
integer |
The serial number of the replica. |
1 |
| ReplicaType |
string |
The type of the replica. |
FULL |
| Status |
string |
The status of the replica. Valid values: ACTIVE, INACTIVE, and UNKNOWN. |
ACTIVE |
| ReadOnlyReplicaType |
string |
The type of the read-only replica. |
ROW_STORE |
| OnlineNodeNum |
integer |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EE205C00-30E4-****-****-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,
"ReplicaType": "FULL"
}
],
"LogicalZone": "cn-hangzhou-h-z0",
"ReplicaType": "FULL",
"ReadOnlyReplicaType": "ROW_STORE"
}
],
"TenantStatus": "ONLINE",
"TenantDeployType": "multiple",
"TenantUnitNum": 1,
"PrimaryZoneDeployType": "RANDOM",
"TenantDiskSize": 2,
"TenantUnitCpu": 4,
"TenantUnitMemory": 16
}
],
"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": 100,
"UsedDiskSize": 50
}
},
"ReplicaType": "FULL",
"FullCopyId": 1,
"ReadOnlyCopyId": 1,
"LogicalZone": "cn-hangzhou-h-z0",
"ReadOnlyReplicaType": "ROW_STORE"
}
],
"ZoneResource": {
"DiskSize": {
"MaxDiskUsedPercent": 0.14,
"MaxDiskUsedObServer": [
"i-bp1fhj23fs32dfbg4****"
]
}
}
}
],
"Replicas": [
{
"LogicalZone": "cn-hangzhou-h-z0",
"NodeNum": 1,
"ZoneLogicalName": "cn-hangzhou-h",
"ZoneRegionName": "cn-hangzhou-h",
"ReplicaResource": {
"Memory": {
"UsedMemory": 16,
"TotalMemory": 32
},
"DiskSize": {
"UsedDiskSize": 50,
"TotalDiskSize": 100
},
"Cpu": {
"TotalCpu": 16,
"UsedCpu": 8
}
},
"ZoneLogicalId": 1,
"ReplicaType": "FULL",
"Status": "ACTIVE",
"ReadOnlyReplicaType": "ROW_STORE",
"OnlineNodeNum": 0
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.