All Products
Search
Document Center

OpenSearch:GetNodeConfig

Last Updated:Jul 16, 2024

Gets the configuration information of a node.

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}/node-config

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-0ju2rewdi02
typestringNo

The node type. Valid values:

  • qrs: Query Result Searcher (QRS) worker
  • search: Search worker
  • index: index
  • cluster: cluster
index
namestringNo

The node name.

ha-cn-30174dhoz53_qrs
clusterNamestringNo

The name of the cluster

vpc_sh_domain_2

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

requestIdstring

Id of the request

2AE63638-5420-56DC-BF59-37D8174039A0
resultobject

The result set.

dataFragmentNumberinteger

The number of data shards.

2
dataDuplicateNumberinteger

The number of data replicas.

2
minServicePercentinteger

The minimum service ratio.

100
publishedboolean

Indicates whether the cluster is mounted.

true
activeboolean

Indicates whether the index is effective online.

1
flowRatiointeger

The traffic percentage.

0

Examples

Sample success responses

JSONformat

{
  "requestId": "2AE63638-5420-56DC-BF59-37D8174039A0",
  "result": {
    "dataFragmentNumber": 2,
    "dataDuplicateNumber": 2,
    "minServicePercent": 100,
    "published": true,
    "active": true,
    "flowRatio": 0
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-03-20The response structure of the API has changedView Change Details
2023-08-28The request parameters of the API has changed. The response structure of the API has changedView Change Details
2022-01-12Add OperationView Change Details