Retrieves a list of OceanBase clusters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
oceanbase:DescribeInstances |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The ID of the OceanBase cluster. |
ob317v4uif**** |
| ResourceGroupId |
string |
No |
The ID of the resource group. If you omit this parameter, the API returns instances from all resource groups. |
group1 |
| PageSize |
integer |
No |
The number of entries to return on each page.
|
10 |
| PageNumber |
integer |
No |
The page number.
|
1 |
| InstanceName |
string |
No |
The name of the OceanBase cluster. The name must be 1 to 20 characters long and can contain English or Chinese characters. If this parameter is not specified, the default value is the instance ID of the cluster. |
ob4prod |
| SearchKey |
string |
No |
The keyword for a fuzzy search on the instance ID, instance name, tenant ID, and tenant name. |
pay |
| WithOBCloudInstances |
boolean |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| Instances |
array<object> |
Details of the OceanBase clusters. |
|
|
array<object> |
The details of a single OceanBase cluster. |
||
| VpcId |
string |
The ID of the VPC. |
vpc-8vb8qjrixzovjpy****** |
| CommodityCode |
string |
The product code of the OceanBase cluster.
|
oceanbase_oceanbasepost_public_cn |
| ExpireTime |
string |
The expiration time of the cluster, in UTC. Note
This parameter is returned only for subscription instances. |
2021-10-17T16:00:00Z |
| State |
string |
The cluster status.
Note
Typically, a cluster is in the Running ( |
ONLINE |
| InstanceClass |
string |
The instance type of the cluster. Supported types include:
|
14C70G |
| CreateTime |
string |
The time when the cluster was created, in UTC. |
2021-10-19T07:13:41Z |
| DeployMode |
string |
The distribution mode of data replicas, formatted as |
1-1-1 |
| CpuArchitecture |
string |
The CPU architecture of the cluster. |
X86_64、 AARCH64 |
| MaintainTime |
string |
The daily maintenance window of the cluster, in UTC. |
19:00Z-20:00Z |
| DeployType |
string |
The deployment type of the cluster.
|
multiple |
| PayType |
string |
The billing method of the OceanBase cluster:
|
PREPAY |
| DiskSize |
integer |
The storage space, in GB. |
200 |
| DiskType |
string |
The storage type of the cluster. |
cloud_essd_pl1 |
| InstanceId |
string |
The ID of the OceanBase cluster. |
ob317v4uif**** |
| ExpireSeconds |
integer |
The remaining validity period of the cluster, in seconds. Note
For subscription clusters, if the cluster has not expired, this parameter indicates the remaining validity period. If the cluster has expired, this parameter indicates the duration since expiration. |
2606682 |
| Mem |
integer |
The memory size, in GB. |
70 |
| EnableUpgradeNodes |
boolean |
Indicates whether you can add new nodes. |
true |
| Cpu |
integer |
The number of CPU cores. |
14 |
| AvailableZones |
array |
The availability zones where the cluster is deployed. |
|
|
string |
An availability zone where the cluster is deployed. |
cn-hangzhou-i |
|
| Version |
string |
The OBServer version. |
2.2.77 |
| InstanceName |
string |
The name of the OceanBase cluster. The name must be 1 to 20 characters in length and can contain letters or Chinese characters. If this parameter is not specified, the value of |
ob4test |
| Series |
string |
The series of the OceanBase instance.
|
NORMAL |
| UsedDiskSize |
integer |
The used storage space, in GB. |
20 |
| ResourceGroupId |
string |
The ID of the resource group. |
group1 |
| Resource |
object |
The resource information of the cluster. |
|
| Cpu |
object |
The CPU resource information of the cluster. |
|
| TotalCpu |
number |
The total number of CPU cores. |
14 |
| UsedCpu |
number |
The number of used CPU cores. |
10 |
| UnitCpu |
number |
The number of CPU cores per replica node. |
10 |
| OriginalTotalCpu |
number |
The original total number of CPU cores. |
14 |
| Memory |
object |
The memory resource information of the cluster. |
|
| TotalMemory |
number |
The total memory size, in GB. |
70 |
| UsedMemory |
integer |
The amount of memory used, in GB. |
10 |
| UnitMemory |
integer |
The memory size of each replica node, in GB. |
10 |
| OriginalTotalMemory |
number |
The original total memory size. |
72 |
| DiskSize |
object |
The storage resource information of the cluster. |
|
| TotalDiskSize |
number |
The total storage space, in GB. |
200 |
| UsedDiskSize |
integer |
The used storage space, in GB. |
100 |
| UnitDiskSize |
number |
The storage space of each replica node, in GB. |
200 |
| OriginalTotalDiskSize |
number |
The original total disk size. |
200 |
| UnitCount |
integer |
The number of resource units in the cluster. |
1 |
| CapacityUnit |
object |
The capacity unit. |
|
| MaxCapacityUnit |
integer |
The maximum capacity unit. |
4 |
| MinCapacityUnit |
integer |
The minimum capacity unit. |
1 |
| UsedCapacityUnit |
integer |
The number of used capacity units. |
2 |
| InstanceType |
string |
The type of the instance.
|
CLUSTER |
| InstanceRole |
string |
The role of the instance. |
NORMAL |
| InTempCapacityStatus |
boolean |
Indicates whether the cluster has temporary capacity. |
false |
| DataDiskAutoScaleConfig |
object |
The auto-scaling configuration of the data disk. |
|
| AutoScale |
boolean |
Indicates whether auto-scaling is enabled. |
true |
| Upperbound |
number |
The upper limit for scaling. |
16 |
| UpperThreshold |
number |
The threshold for routine scaling. |
80 |
| UpperMergeThreshold |
number |
The threshold for scaling out during major compactions. |
90 |
| MaxDiskSize |
integer |
The maximum disk size. |
80000 |
| ScaleStepInNormal |
number |
The step size for routine scaling. |
50 |
| ScaleStepInMerge |
number |
The step size for scaling during major compactions. |
100 |
| UpperScaleStrategy |
string |
The scaling strategy. Valid values: |
RAW |
| EnableReadOnlyReplicaManagement |
boolean |
Indicates whether read-only replicas can be purchased for the cluster. |
yes |
| SpecType |
string |
The specification type. |
dedicatedspec |
| ObRpmVersion |
string |
The RPM version of the cluster. |
4.2.1.7-107030032024062709 |
| ReplicaMode |
string |
The replica mode of the cluster. |
3F、2F1A |
| Migratable |
boolean |
||
| MigrationInfo |
object |
Information about migrating to Alibaba Cloud Marketplace. |
|
| Migratable |
boolean |
Indicates whether the instance can be migrated. |
|
| CheckResult |
object |
Provides the reason if migration is not supported. |
|
| Level |
string |
The level of the check result. |
|
| Code |
string |
The code of the check item. |
|
| CodeName |
string |
The description of the check item. |
|
| Module |
string |
The name of the module. |
|
| ModuleName |
string |
The display name of the module. |
|
| SubModule |
string |
The name of the submodule. |
|
| SubModuleName |
string |
The display name of the submodule. |
|
| Iops |
integer |
10000 |
|
| TotalCount |
integer |
The total number of returned clusters. |
2 |
| RequestId |
string |
The request ID. |
EE205C00-30E4-****-****-87E3A8A2AA0C |
Examples
Success response
JSON format
{
"Instances": [
{
"VpcId": "vpc-8vb8qjrixzovjpy******",
"CommodityCode": "oceanbase_oceanbasepost_public_cn",
"ExpireTime": "2021-10-17T16:00:00Z",
"State": "ONLINE",
"InstanceClass": "14C70G",
"CreateTime": "2021-10-19T07:13:41Z",
"DeployMode": "1-1-1",
"CpuArchitecture": "X86_64、 AARCH64",
"MaintainTime": "19:00Z-20:00Z",
"DeployType": "multiple",
"PayType": "PREPAY",
"DiskSize": 200,
"DiskType": "cloud_essd_pl1",
"InstanceId": "ob317v4uif****",
"ExpireSeconds": 2606682,
"Mem": 70,
"EnableUpgradeNodes": true,
"Cpu": 14,
"AvailableZones": [
"cn-hangzhou-i"
],
"Version": "2.2.77",
"InstanceName": "ob4test",
"Series": "NORMAL",
"UsedDiskSize": 20,
"ResourceGroupId": "group1",
"Resource": {
"Cpu": {
"TotalCpu": 14,
"UsedCpu": 10,
"UnitCpu": 10,
"OriginalTotalCpu": 14
},
"Memory": {
"TotalMemory": 70,
"UsedMemory": 10,
"UnitMemory": 10,
"OriginalTotalMemory": 72
},
"DiskSize": {
"TotalDiskSize": 200,
"UsedDiskSize": 100,
"UnitDiskSize": 200,
"OriginalTotalDiskSize": 200
},
"UnitCount": 1,
"CapacityUnit": {
"MaxCapacityUnit": 4,
"MinCapacityUnit": 1,
"UsedCapacityUnit": 2
}
},
"InstanceType": "CLUSTER",
"InstanceRole": "NORMAL",
"InTempCapacityStatus": false,
"DataDiskAutoScaleConfig": {
"AutoScale": true,
"Upperbound": 16,
"UpperThreshold": 80,
"UpperMergeThreshold": 90,
"MaxDiskSize": 80000,
"ScaleStepInNormal": 50,
"ScaleStepInMerge": 100,
"UpperScaleStrategy": "RAW"
},
"EnableReadOnlyReplicaManagement": true,
"SpecType": "dedicatedspec",
"ObRpmVersion": "4.2.1.7-107030032024062709",
"ReplicaMode": "3F、2F1A",
"Migratable": false,
"MigrationInfo": {
"Migratable": false,
"CheckResult": {
"Level": "",
"Code": "",
"CodeName": "",
"Module": "",
"ModuleName": "",
"SubModule": "",
"SubModuleName": ""
}
},
"Iops": 10000
}
],
"TotalCount": 2,
"RequestId": "EE205C00-30E4-****-****-87E3A8A2AA0C"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.