All Products
Search
Document Center

OpenSearch:ListClusters

Last Updated:Jul 16, 2024

Queries clusters.

Operation description

Method

GET

URI

/openapi/ha3/instances/{instanceId}/clusters

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /openapi/ha3/instances/{instanceId}/clusters

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-zvp2jlr2g03

Sample requests

GET /openapi/ha3/instances/ha3_instance_name/clusters

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

requestIdstring

id of request

F43E8AB4-419C-5F4C-90D6-615590DFAA3C
resultarray<object>

The clusters.

object

The list of clusters.

namestring

The cluster name.

ha-cn-7pp2pcna701_qrs
descriptionstring

The description of the cluster.

fzz_test
currentAdvanceConfigVersionstring

The effective advanced configuration version.

" "
latestAdvanceConfigVersionstring

The latest advanced configuration version.

" "
currentOnlineConfigVersionstring

The effective online configuration version.

" "
latestOnlineConfigVersionstring

The latest online configuration version.

" "
currentOnlineQueryConfigVersionstring

The effective query configuration version.

ha-cn-pl32rf0****_offline_adv_v1
latestOnlineQueryConfigVersionstring

The latest query configuration version.

ha-cn-pl32rf0****_offline_adv_v1
currentOfflineDictConfigVersionstring

The effective dictionary configuration version.

ha-cn-pl32rf0****_offline_adv_v1
latestOfflineDictConfigVersionstring

The latest dictionary configuration version.

ha-cn-pl32rf0****_offline_adv_v1
configUpdateTimestring

The time when the configuration was updated.

" "
statusstring

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.

"starting"
queryNodeobject

The information about Query Result Searcher (QRS) workers.

namestring

The name of the QRS worker.

test_0704
numberinteger

The number of QRS workers.

1
partitioninteger

The ID of the partition that is stored on the QRS worker.

dt=20211216
dataNodeobject

The information about Searcher workers.

namestring

The name of the Searcher worker.

ha-cn-8ed2k7brm05_qrs
numberinteger

The number of Searcher workers.

1
partitioninteger

The ID of the partition that is stored on the Searcher worker.

dt=20220216
createTimestring

The time when the cluster was created.

2024-05-21 16:05:26
configobject

The configuration information.

object

The configuration information.

object

The information about child configuration items.

namestring

The configuration name.

ha-cn-pl32rf0****_offline_adv_v1
updateTimestring

The time when the configuration was updated.

2024-05-21 16:05:26
descstring

The description of the configuration.

Examples

Sample success responses

JSONformat

{
  "requestId": "F43E8AB4-419C-5F4C-90D6-615590DFAA3C",
  "result": [
    {
      "name": "ha-cn-7pp2pcna701_qrs",
      "description": "fzz_test",
      "currentAdvanceConfigVersion": "\" \"",
      "latestAdvanceConfigVersion": "\" \"",
      "currentOnlineConfigVersion": "\" \"",
      "latestOnlineConfigVersion": "\" \"",
      "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": "\" \"",
      "status": "\"starting\"",
      "queryNode": {
        "name": "test_0704",
        "number": 1,
        "partition": 0
      },
      "dataNode": {
        "name": "ha-cn-8ed2k7brm05_qrs",
        "number": 1,
        "partition": 0
      },
      "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": ""
          }
        }
      }
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-05-16The response structure of the API has changedView Change Details
2022-01-12Add OperationView Change Details