All Products
Search
Document Center

OpenSearch:PublishIndexVersion

Last Updated:Jul 16, 2024

Publishes a specified index version.

Operation description

Method

POST

URI

/openapi/ha3/instances/{instanceId}/indexes/{indexName}/actions/publish

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

POST /openapi/ha3/instances/{instanceId}/indexes/{indexName}/actions/publish

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-tl32m2c4u01
indexNamestringYes

The index name.

automobile_2d
bodyobjectNo

The request body.

{}

Sample requests



POST /openapi/ha3/instances/ose-test1/indexes/my_index/actions/publish



{

  "desc": "new version",

  "dataSource": "test1",

  "domain": "test_domain"

}

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

requestIdstring

id of request

E45380E8-994A-5402-9806-F114B3295FCF
resultobject

The information about the index

{}

Sample responses

Sample success responses

{
 
  "requestId": "65911539-5a8b-4bce-96a5-4d608900dc46",
 
  "result": []
 
}

For more information, see Response structure.

Examples

Sample success responses

JSONformat

{
  "requestId": "E45380E8-994A-5402-9806-F114B3295FCF",
  "result": {}
}

Error codes

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

Change history

Change timeSummary of changesOperation
2022-01-12Add OperationView Change Details