All Products
Search
Document Center

OpenSearch:ModifyIndexPartition

Last Updated:Jul 16, 2024

Modifies the information about index partitions.

Operation description

Method

PUT

URI

/openapi/ha3/instances/{instanceId}/index-partition

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}/index-partition

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-7mz2ttxta01
bodyobjectNo

The request body.

dataSourceNamestringNo

The name of the data source.

test1
generationlongNo

The primary key.

1633293829
domainNamestringNo

The data center.

pre_domain_1
indexInfosarray<object>No

The index information.

objectNo

The information about each index.

indexNamestringNo

The index name.

atest2
partitionCountintegerNo

The number of shards.

3
parallelNumintegerNo

The concurrency. Default value: 1.

1

Example

PUT /openapi/ha3/instances/{instanceId}/index-partition

{
  "dataSourceName":"ha-cn-pl32n3bi904_d",
  "domainName":"pre_domain_1",
  "generation":"1633293829",
  "indexInfos":[
    {
      "indexName":"atest2",
      "partitionCount":2
    }
  ]
}

Response parameters

ParameterTypeDescriptionExample
object
requestIdstring

id of request

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

Map

[]

Sample responses

{
	"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
  "result": []
}

For more information, see Response structure.

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.