All Products
Search
Document Center

OpenSearch:ModifyIndexOnlineStrategy

Last Updated:Jul 19, 2024

Modifies the online policy of an index.

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}/data-sources/{dataSourceName}/deploys/{deployName}/indexes/{indexName}/online-strategy

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-0ju2rps6c08
dataSourceNamestringYes

The name of the data source.

ha-cn-0ju2rps6c08_api_test
deployNamestringYes

The name of the data center in which the data source is deployed.

vpc_hz_domain_1
indexNamestringYes

The index name.

test_tusou_v2
bodyobjectNo

The request body.

changeRateintegerNo

The index change rate.

20

Response parameters

ParameterTypeDescriptionExample
object
requestIdstring

The request ID.

10D5E615-69F7-5F49-B850-00169ADE513C
resultobject

The result.

{}

Examples

Sample success responses

JSONformat

{
  "requestId": "10D5E615-69F7-5F49-B850-00169ADE513C",
  "result": {}
}

Error codes

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