All Products
Search
Document Center

OpenSearch:ListClusters

Last Updated:Mar 14, 2023

Queries the list of clusters.

Operation Description

Method

GET

URI

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

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The ID of the instance

ha-cn-zvp2jlr2g03

Sample requests

GET /openapi/ha3/instances/ha3_instance_name/clusters

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

requestIdstring

id of request

F43E8AB4-419C-5F4C-90D6-615590DFAA3C
resultarray

The list of clusters.

object

The list of clusters.

namestring

The name of the cluster.

ha-cn-7pp2pcna701_qrs
descriptionstring

The description of the cluster.

fzz_test
currentAdvanceConfigVersionstring

The effective advanced version.

" "
latestAdvanceConfigVersionstring

The latest advanced configuration version.

" "
currentOnlineConfigVersionstring

The effective online configuration version.

" "
latestOnlineConfigVersionstring

The latest online configuration version.

" "
configUpdateTimestring

The time when the configuration was updated.

" "
statusstring

The status of the cluster. Valid values: running, starting, stopping, and stopped. running indicates the cluster is running, starting indicates the cluster is starting, stopping indicates the cluster is stopping, and stopped indicates the cluster has stopped.

"starting"
queryNodeobject

The query node of the cluster.

namestring

The name of the node.

test_0704
numberinteger

The number of nodes.

1
partitioninteger

The number o replicas.

dt=20211216
dataNodeobject

The information about the node in the cluster.

namestring

The name of the node.

ha-cn-8ed2k7brm05_qrs
numberinteger

The number of nodes.

1
partitioninteger

The partition ID of the node.

dt=20220216

Sample responses

Success 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": {
        "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

Sample success responses

JSONformat

{
  "requestId": "F43E8AB4-419C-5F4C-90D6-615590DFAA3C",
  "result": [
    {
      "name": "ha-cn-7pp2pcna701_qrs",
      "description": "fzz_test",
      "currentAdvanceConfigVersion": "\" \"",
      "latestAdvanceConfigVersion": "\" \"",
      "currentOnlineConfigVersion": "\" \"",
      "latestOnlineConfigVersion": "\" \"",
      "currentOnlineQueryConfigVersion": "",
      "latestOnlineQueryConfigVersion": "",
      "currentOfflineDictConfigVersion": "",
      "latestOfflineDictConfigVersion": "",
      "configUpdateTime": "\" \"",
      "status": "\"starting\"",
      "queryNode": {
        "name": "test_0704",
        "number": 1,
        "partition": 0
      },
      "dataNode": {
        "name": "ha-cn-8ed2k7brm05_qrs",
        "number": 1,
        "partition": 0
      }
    }
  ]
}

Error codes

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

Change history

Change timeSummary of changesOperation
2022-01-12Add Operation