All Products
Search
Document Center

OpenSearch:ModifyNodeConfig

Last Updated:Jul 16, 2024

Modifies the configurations of a node.

Operation description

Method

PUT

URI

/openapi/ha3/instances/{instanceId}/node-config?type=qrs&name=test

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

PUT /openapi/ha3/instances/{instanceId}/node-config

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-2r42p5oi202
typestringYes

The type of the algorithm. Valid values:

  • pop: a popularity model.
  • cp: a category prediction model.
  • hot: a top search model.
  • hint: a hint model.
  • suggest: a drop-down suggestions model.
" "
namestringYes

The name of the configuration before the modification.

ha-cn-zvp2iv9a401_qrs
clusterNamestringNo

The name of the cluster.

vpc_sh_domain_2
dataSourceNamestringNo

The name of the data source. Valid values: -search: search for data. -not_search: do not search for data.

ha-cn-2r42ostoc01_0704
bodyobjectNo

The request body.

dataFragmentNumberintegerNo

The number of data shards.

1
dataDuplicateNumberintegerNo

The number of data replicas.

1
minServicePercentintegerNo

The minimum service ratio.

10
publishedbooleanNo

Specifies whether to mount the cluster.

true
activebooleanNo

Specifies whether to enable the index.

true
flowRatiointegerNo

The traffic percentage.

-100

Sample requests

PUT /openapi/ha3/instances/{instanceId}/node-config?type=qrs&name=test



{

  "dataFragmentNumber":1,// The query node and data node

  "dataDuplicateNumber":1,// The query node and data node

  "minServicePercent":20,// The query node and data node

  "published":true,// The cluster

  "active": true //index

}

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

requestIdstring

id of request

D39EE0F1-D7EF-5F46-B781-6BF4185308B0
resultobject

The information about the index

{}

Sample responses

Success responses 

{

  "requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",

  "result": []

}

For more information, see Response struct.

Examples

Sample success responses

JSONformat

{
  "requestId": "D39EE0F1-D7EF-5F46-B781-6BF4185308B0",
  "result": {}
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-03-20The internal configuration of the API is changed, but the call is not affectedView 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