觸發索引重建。
介面說明
方法
POST
URI
/openapi/ha3/instances/{instanceId}/actions/build-index
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
searchengine:BuildIndex |
update |
*Instance
|
無 | 無 |
請求文法
POST /openapi/ha3/instances/{instanceId}/actions/build-index HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| instanceId |
string |
是 |
執行個體 ID |
ha-cn-pl32rf0**** |
| body |
object |
否 |
一個 JSON 格式的字串,完整 JSON 字串資訊,具體內容參見以下詳細資料。 |
{} |
| dataSourceName |
string |
否 |
資料來源名稱 |
ha-cn-pl32rf0****_test_api |
| domain |
string |
否 |
資料來源機房 |
sz_vpc_domain_1 |
| dataSourceType |
string |
否 |
資料來源類型 |
odps |
| partition |
string |
否 |
資料來源為 odps 時必填 |
ds=20201010 |
| dataTimeSec |
integer |
否 |
int 類型,秒級時間戳記,資料來源為 API 推送時必填 |
1640867288 |
| buildMode |
string |
否 |
重建 index 方式: api、indexRecover |
api |
| generation |
integer |
否 |
歷史迴流 ID |
160131146 |
| tag |
string |
否 |
dlf 資料來源-tag |
test |
| path |
string |
否 |
相對路徑 |
/test/dir |
請求樣本
POST /openapi/ha3/instances/ha3_instance_name/actions/build-index
{
"dataSourceName": "my_data_source",
"domain": "test", //資料來源部署
"indexes": [
"index1",
"index2"
],
"dataSourceType": "odps", //odps 或 swift,必填
"partition": "20201010", //資料來源為 odps 時必填
"dataTimeSec": 1640867288 //int 類型,秒級時間戳記,資料來源為 api 推送時必填
}
{
"dataSourceName": "my_data_source",
"domain": "test", //資料來源部署
"indexes": [
"index1",
"index2"
],
"dataSourceType": "swift", //odps 或 swift,必填
"partition": "20201010", //資料來源為 odps 時必填
"dataTimeSec": 1640867288 //int 類型,秒級時間戳記,資料來源為 api 推送時必填
}
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| requestId |
string |
請求 ID |
407BFD91-DE7D-50BA-8F88-CDE52A3B5E46 |
| result |
object |
返回結果 |
{} |
樣本
正常返回樣本
JSON格式
{
"requestId": "407BFD91-DE7D-50BA-8F88-CDE52A3B5E46",
"result": {}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。