All Products
Search
Document Center

OpenSearch:ModifyIndex

Last Updated:Oct 16, 2024

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:ModifyIndexupdate
  • Instance
    acs:searchengine:{#regionId}:{#accountId}:instance/{#InstanceId}
    none
none

Request syntax

PUT /openapi/ha3/instances/{instanceId}/indexes/{indexName} HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-0ju2rq6610a
indexNamestringYes

The index name.

test_api
dryRunbooleanNo

Specifies whether to check the validity of input parameters. Default value: false.

Valid values:

  • true: checks only the validity of input parameters.
  • false: checks the validity of input parameters and creates an attribution configuration.
true
bodyobjectNo

The request body.

dataSourceInfoobjectNo

The information about the data source, which is required for the new version of OpenSearch Vector Search Edition.

buildModestringNo

The reindexing method. Valid values: api: API data source. indexRecover: data recovery by using indexing.

api
generationlongNo

The ID of the index version from which data is restored.

4
dataTimeSecintegerNo

The start timestamp from which incremental data is retrieved.

1709715164
processPartitionCountintegerNo

The number of resources used for data update.

4
namestringNo

The name of the data source.

ha-cn-35t3n1yuj0d_index_1
typestringNo

The type of the data source. Valid values: odps, swift, saro, oss, and unKnow.

odps
domainstringNo

The offline deployment name of the data source.

vpc_hz_domain_1
configobjectNo

The configurations of the MaxCompute data source.

endpointstringNo

The endpoint of the MaxCompute data source.

http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api
accessKeystringNo

The AccessKey ID of the MaxCompute data source.

L***p
accessSecretstringNo

The AccessKey secret of the MaxCompute data source.

5**9a6
projectstringNo

The name of the MaxCompute project that is used as the data source.

bbt_algo_pai
partitionstringNo

The partition in the MaxCompute table. Example: ds=20180102.

ds=20230114
tablestringNo

The name of the MaxCompute table that is used as the data source.

item
namespacestringNo

The namespace. This parameter is applicable to the SARO data source used in the intranet of Alibaba Group.

test-namespace
pathstringNo

The file path in the Apsara File Storage for HDFS file system.

test-hdfs-path
ossPathstringNo

The Object Storage Service (OSS) path.

/opensearch/oss.json
bucketstringNo

The name of the OSS bucket.

test-bucket
saroConfigobjectNo

The configurations of the SARO data source.

namespacestringNo

The namespace to which the SARO data source belongs.

flink-test-fjx-default
tableNamestringNo

The name of the SARO table.

device_event_shy_summary_
autoBuildIndexbooleanNo

Specifies whether to enable the automatic full indexing feature.

true
processParallelNumintegerNo

The maximum number of full indexes that can be concurrently processed.

2
descriptionstringNo

The description of the data source.

test
contentstringNo

The file content.

{\"summarys\":{\"summary_fields\":[\"id\"]},\"indexs\":[{\"index_name\":\"index_id\",\"index_type\":\"PRIMARYKEY64\",\"index_fields\":\"id\",\"has_primary_key_attribute\":true,\"is_primary_key_sorted\":false}],\"attributes\":[\"id\"],\"fields\":[{\"field_name\":\"id\",\"field_type\":\"UINT16\"}],\"table_name\":\"index_2\"}
partitionintegerNo

The number of shards.

2
dataSourcestringNo

The name of the data source.

ha-cn-35t3n1yuj0d_index_1
domainstringNo

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

vpc_hz_domain_1
buildParallelNumintegerNo

The maximum number of full indexes that can be concurrently built.

2
mergeParallelNumintegerNo

The maximum number of full indexes that can be concurrently merged.

2
clusterobjectNo

The cluster information.

objectNo

The cluster information.

objectNo

The content to be modified in the configuration file.

valuestringNo

The variable.

partition
descriptionstringNo

The description of the variable.

test
disableModifybooleanNo

Specifies whether the variable is not allowed to be modified.

true
isModifybooleanNo

Specifies whether the variable is modified.

false
typestringNo

The variable type. Valid values: NORMAL: common variable. FUNCTION: function variable.

NORMAL
clusterConfigNamestringNo

The name of the configuration file.

ha-cn-35t3r02iq03@ha-cn-35t3r02iq03_test_api@hz_pre_vpc_domain_1@test_api@index_config_v1
configobjectNo

The information about the offline configuration.

objectNo

The offline configuration.

descstringNo

The description of the offline configuration.

test
filesarray<object>No

The files to be modified.

objectNo
operateTypestringNo

The operation type. Valid values: UPDATE and DELETE. Default value: UPDATE.

UPDATE
parentFullPathstringNo

The path of the parent directory.

/
fileNamestringNo

The file name.

configobjectNo

The configuration to be modified.

contentstringNo

The file content.

$dictContent
variablesobjectNo

The variables.

objectNo

The variable information.

descriptionstringNo

The description of the variable.

test
disableModifybooleanNo

Specifies whether the variable is not allowed to be modified.

true
isModifybooleanNo

Specifies whether the variable is modified.

false
typestringNo

The variable type. Valid values: NORMAL: common variable. FUNCTION: function variable.

NORMAL
valuestringNo

The variable value.

test
dirNamestringNo

The directory name.

/test
pushModestringNo

The push mode of the configuration. By default, only the configuration is pushed.

PUSH_ONLY

Response parameters

ParameterTypeDescriptionExample
object
requestIdstring

The request ID.

93A9E542-8CF8-5BA6-99AB-94C0FE520429
resultany

The result.

{}

Examples

Sample success responses

JSONformat

{
  "requestId": "93A9E542-8CF8-5BA6-99AB-94C0FE520429",
  "result": "{}"
}

Error codes

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

Change history

Change timeSummary of changesOperation
2024-09-18The internal configuration of the API is changed, but the call is not affectedView Change Details