Recovers data from an index.
Operation description
Method
POST
URI
/openapi/ha3/instances/{instanceId}/recover-index
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
searchengine:RecoverIndex |
update |
*Instance
|
None | None |
Request syntax
POST /openapi/ha3/instances/{instanceId}/recover-index HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The instance ID. |
ha-cn-pl32rf0**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| dataSourceName |
string |
No |
The data source name. |
ha-cn-pl32rf0****_test_api |
| indexName |
string |
No |
The index name. |
test_api |
| generation |
string |
No |
The full index version. |
1653018575 |
| buildDeployId |
integer |
No |
The offline deployment ID of the data source. |
277 |
| outPutType |
string |
No |
The export type. Valid values:
|
|
| bucket |
string |
No |
Required when exporting to OSS. |
|
| path |
string |
No |
Required when exporting to OSS. The path must start with a forward slash (/) and must contain "opensearch" or the bucket must have the opensearch tag. |
|
| odpsAccessId |
string |
No |
Required when exporting to MaxCompute. |
|
| odpsAccessKey |
string |
No |
Required when exporting to MaxCompute. |
|
| odpsProject |
string |
No |
Required when exporting to MaxCompute. |
|
| odpsTable |
string |
No |
Required when exporting to MaxCompute. |
|
| odpsPartition |
string |
No |
Optional when exporting to MaxCompute. Example: pt=20240101. |
Request example
POST /openapi/ha3/instances/ha3_instances_id/recover-index
{
"generation": "1653018575",
"dataSourceName":"test_yyds_data1",
"buildDeployId":277,
"indexName":"index_1"
}
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The request ID. |
10D5E615-69F7-5F49-B850-00169ADE513C |
| result |
object |
The returned result. |
{} |
Response example
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": []
}
For more information, refer to Response structure.
Examples
Success response
JSON format
{
"requestId": "10D5E615-69F7-5F49-B850-00169ADE513C",
"result": {}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.