Query a cluster.
Operation description
Method
GET
URI
/openapi/ha3/instance/{instanceId}/clusters/{clusterName}
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:GetCluster |
get |
*Instance
|
None | None |
Request syntax
GET /openapi/ha3/instances/{instanceId}/clusters/{clusterName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
| clusterName |
string |
No |
The name of the cluster |
bj_vpc_domain_2 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Sample requests
GET /openapi/ha3/instance/ha_name_example/clusters/my_cluster
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The ID of the request. |
E7B7D598-B080-5C8E-AA35-D43EC0D5F886 |
| result |
object |
The clusters. |
|
| name |
string |
The cluster name. |
bj_vpc_domain_2 |
| 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****_online_adv_v1 |
| latestOnlineConfigVersion |
string |
The latest online configuration version. |
ha-cn-pl32rf0****_online_adv_v1 |
| configUpdateTime |
string |
The time when the cluster was updated. |
2021-08-09 00:01:02 |
| status |
string |
The creation status of the cluster. Valid values: NEW and PUBLISH. NEW indicates that the cluster is being created. PUBLISH indicates that the cluster is created. |
NEW |
| queryNode |
object |
The specifications of Query Result Searcher (QRS) workers. |
|
| name |
string |
The name of the QRS worker. |
ha-cn-pl32rf0****_qrs |
| number |
integer |
The number of nodes. |
1 |
| partition |
integer |
The number of replicas. |
2 |
| dataNode |
object |
The specifications of Searcher workers. |
|
| name |
string |
The name of the Searcher worker. |
general |
| number |
integer |
The number of replicas. |
1 |
| partition |
integer |
The number of partitions. |
2 |
| createTime |
string |
The time when the cluster was created. |
2024-05-21 16:05:26 |
| config |
object |
The configuration information. |
|
|
object |
The information about child configuration items. |
||
|
object |
The information about the child configuration item. |
||
| 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 |
Sample responses
{
"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": {
"name":"ha-cn-0ju2iimcu07_qrs",
"number": 1
},
"dataNode": {
"name":"general",
"number": 2,
"partition": 1
}
}
}
Examples
Success response
JSON format
{
"requestId": "E7B7D598-B080-5C8E-AA35-D43EC0D5F886",
"result": {
"name": "bj_vpc_domain_2",
"description": "CustomDescription",
"currentAdvanceConfigVersion": "ha-cn-pl32rf0****_offline_adv_v1",
"latestAdvanceConfigVersion": "ha-cn-pl32rf0****_offline_adv_v1",
"currentOnlineConfigVersion": "ha-cn-pl32rf0****_online_adv_v1",
"latestOnlineConfigVersion": "ha-cn-pl32rf0****_online_adv_v1",
"configUpdateTime": "2021-08-09 00:01:02",
"status": "NEW",
"queryNode": {
"name": "ha-cn-pl32rf0****_qrs",
"number": 1,
"partition": 2
},
"dataNode": {
"name": "general",
"number": 1,
"partition": 2
},
"createTime": "2024-05-21 16:05:26",
"config": {
"key": {
"key": {
"name": "ha-cn-pl32rf0****_offline_adv_v1\n",
"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.