All Products
Search
Document Center

OpenSearch:ModifyNodeConfig

Last Updated:Oct 16, 2024

Modifies the configurations of a node.

Operation description

Method

PUT

URI

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

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
searchengine:ModifyNodeConfig
  • Instance
    acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}
    none
none

Request syntax

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

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