Queries clusters.
Operation description
Method
GET
URI
/openapi/ha3/instances/{instanceId}/clusters
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:ListClusters |
list |
*Instance
|
None | None |
Request syntax
GET /openapi/ha3/instances/{instanceId}/clusters HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Sample requests
GET /openapi/ha3/instances/ha3_instance_name/clusters
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
id of request |
F43E8AB4-419C-5F4C-90D6-615590DFAA3C |
| result |
array<object> |
The clusters. |
|
|
array<object> |
The list of clusters. |
||
| name |
string |
The cluster name. |
hz_pre_vpc_domain_1 |
| description |
string |
The description of the cluster. |
CustomDescription |
| currentAdvanceConfigVersion |
string |
The effective advanced configuration version. |
ha-cn-pl32rf0****_offline_adv_v1 |
| latestAdvanceConfigVersion |
string |
The latest advanced configuration version. |
ha-cn-pl32rf0****_offline_adv_v1 |
| currentOnlineConfigVersion |
string |
The effective online configuration version. |
ha-cn-pl32rf0****_offline_adv_v1 |
| latestOnlineConfigVersion |
string |
The latest online configuration version. |
ha-cn-pl32rf0****_offline_adv_v1 |
| currentOnlineQueryConfigVersion |
string |
The effective query configuration version. |
ha-cn-pl32rf0****_offline_adv_v1 |
| latestOnlineQueryConfigVersion |
string |
The latest query configuration version. |
ha-cn-pl32rf0****_offline_adv_v1 |
| currentOfflineDictConfigVersion |
string |
The effective dictionary configuration version. |
ha-cn-pl32rf0****_offline_adv_v1 |
| latestOfflineDictConfigVersion |
string |
The latest dictionary configuration version. |
ha-cn-pl32rf0****_offline_adv_v1 |
| configUpdateTime |
string |
The time when the configuration was updated. |
2024-05-21 16:05:26 |
| status |
string |
The cluster status. Valid values: running: The cluster is running. starting: The cluster is being started. stopping: The cluster is being stopped. stopped: The cluster is stopped. |
running |
| queryNode |
object |
The information about Query Result Searcher (QRS) workers. |
|
| name |
string |
The name of the QRS worker. |
ha-cn-pl32rf0****_qrs |
| number |
integer |
The number of QRS workers. |
1 |
| partition |
integer |
The ID of the partition that is stored on the QRS worker. |
1 |
| dataNode |
object |
The information about Searcher workers. |
|
| name |
string |
The name of the Searcher worker. |
general |
| number |
integer |
The number of Searcher workers. |
1 |
| partition |
integer |
The ID of the partition that is stored on the Searcher worker. |
1 |
| createTime |
string |
The time when the cluster was created. |
2024-05-21 16:05:26 |
| config |
object |
The configuration information. |
|
|
object |
The configuration information. |
||
|
object |
The information about child configuration items. |
||
| name |
string |
The configuration name. |
ha-cn-pl32rf0****_offline_adv_v1 |
| updateTime |
string |
The time when the configuration was updated. |
2024-05-21 16:05:26 |
| desc |
string |
The description of the configuration. |
CustomDescription |
ResponseExample
Correct response
{
"requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",
"result": [
{
"name": "cluster1",
"configUpdateTime": "2021-08-09 00:01:02",
"currentAdvanceConfigVersion": "test_yyds_data1",
"lastestAdvanceConfigVersion": "test_yyds_data1",
"currentOnlineConfigVersion": "test_yyds_data1",
"lastestOnlineConfigVersion": "test_yyds_data1",
"description": "airecpre",
"queryNode": {
"number": 1
},
"dataNode": {
"number": 2,
"partition": 1
},
},
{
"name": "cluster2",
"configUpdateTime": "2021-08-09 00:01:02",
"currentAdvanceConfigVersion": "test_yyds_data2",
"lastestAdvanceConfigVersion": "test_yyds_data2",
"currentOnlineConfigVersion": "test_yyds_data1",
"lastestOnlineConfigVersion": "test_yyds_data1",
"description": "this is descrition",
"queryNode": {
"number": 1
},
"dataNode": {
"number": 2,
"partition": 1
}
}
]
}
Examples
Success response
JSON format
{
"requestId": "F43E8AB4-419C-5F4C-90D6-615590DFAA3C",
"result": [
{
"name": "hz_pre_vpc_domain_1",
"description": "CustomDescription",
"currentAdvanceConfigVersion": "ha-cn-pl32rf0****_offline_adv_v1",
"latestAdvanceConfigVersion": "ha-cn-pl32rf0****_offline_adv_v1",
"currentOnlineConfigVersion": "ha-cn-pl32rf0****_offline_adv_v1",
"latestOnlineConfigVersion": "ha-cn-pl32rf0****_offline_adv_v1",
"currentOnlineQueryConfigVersion": "ha-cn-pl32rf0****_offline_adv_v1",
"latestOnlineQueryConfigVersion": "ha-cn-pl32rf0****_offline_adv_v1",
"currentOfflineDictConfigVersion": "ha-cn-pl32rf0****_offline_adv_v1",
"latestOfflineDictConfigVersion": "ha-cn-pl32rf0****_offline_adv_v1",
"configUpdateTime": "2024-05-21 16:05:26",
"status": "running",
"queryNode": {
"name": "ha-cn-pl32rf0****_qrs",
"number": 1,
"partition": 1
},
"dataNode": {
"name": "general",
"number": 1,
"partition": 1
},
"createTime": "2024-05-21 16:05:26",
"config": {
"key": {
"key": {
"name": "ha-cn-pl32rf0****_offline_adv_v1",
"updateTime": "2024-05-21 16:05:26",
"desc": "CustomDescription"
}
}
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.