インデックステーブルバージョンの詳細を取得します。
操作説明
メソッド
GET
URI
/openapi/ha3/instances/{instanceId}/indexes/{indexName}
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
searchengine:GetIndex |
get |
*Instance
|
なし | なし |
リクエスト構文
GET /openapi/ha3/instances/{instanceId}/indexes/{indexName} HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| instanceId |
string |
必須 |
インスタンス ID。 |
ha-cn-pl32rf0**** |
| indexName |
string |
必須 |
インデックス名。 |
test_api |
リクエストの例
GET /openapi/ha3/instances/ose-test1/indexes/index1?dataSource=xxx
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| requestId |
string |
リクエスト ID。 |
4FB0325E-8C37-5525-96AC-0333523170A3 |
| result |
object |
インデックス情報。 |
|
| name |
string |
インデックス名。 |
test_api |
| versions |
array<object> |
バージョン情報。 |
|
|
object |
データバージョン情報。 |
||
| desc |
string |
説明。 |
Index Note |
| files |
array<object> |
場所。 |
|
|
object |
バージョンの詳細。 |
||
| fullPathName |
string |
完全なパス。 |
/qrs.json |
| isDir |
boolean |
パスがディレクトリを指しているかどうかを示します。 |
true |
| isTemplate |
boolean |
パスがテンプレートであるかどうかを示します。 |
true |
| name |
string |
ファイル名。 |
qrs.json |
| name |
string |
バージョン名。 |
test |
| status |
string |
ステータス。
|
PUBLISH |
| updateTime |
integer |
バージョンが更新された時刻。 |
1718846192 |
| versionId |
integer |
バージョン ID。 |
1 |
| dataSource |
string |
データソース。 |
ha-cn-pl32rf0****_test_api |
| domain |
string |
データソースのデプロイメント名。 |
sz_vpc_domain_1 |
| indexStatus |
string |
ステータス。
|
IN_USE |
| content |
string |
ファイルの内容。 |
{"summarys":{"parameter":{"file_compressor":"zstd"},"summary_fields":["id"]},"file_compress":[{"name":"file_compressor","type":"zstd"},{"name":"no_compressor","type":""}],"indexs":[{"index_fields":"name","index_name":"ids","index_type":"STRING"},{"has_primary_key_attribute":true,"index_fields":"id","is_primary_key_sorted":false,"index_name":"id","index_type":"PRIMARYKEY64"}],"attributes":[{"file_compress":"no_compressor","field_name":"id"}],"fields":[{"user_defined_param":{},"compress_type":"uniq","field_type":"STRING","field_name":"id"},{"compress_type":"uniq","field_type":"STRING","field_name":"name"}],"table_name":"api"} |
| partition |
integer |
データシャード。 |
2 |
| fullVersion |
integer |
データバージョン。 |
1688523414 |
| fullUpdateTime |
string |
最後の完全なスイッチオーバーの時刻。 |
2024-06-20 08:52:54 |
| incUpdateTime |
string |
最後の増分更新の時刻。 |
2024-06-20 08:52:54 |
| indexSize |
integer |
インデックスサイズ。 |
4689 |
| description |
string |
メモ。 |
note |
| dataSourceInfo |
object |
データソースに関する情報。 |
|
| processPartitionCount |
integer |
データ更新用のリソース数。 |
2 |
| name |
string |
データソースの名前。 |
ha-cn-pl32rf0****_test_api |
| type |
string |
データソースのタイプ。有効な値: odps、swift、saro、oss、および unKnow。 |
odps |
| domain |
string |
オフラインデプロイメント。 |
vpc_hz_domain_1 |
| config |
object |
ODPS データソースの構成。 |
|
| endpoint |
string |
ODPS に関連する情報。 |
http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api |
| accessKey |
string |
ODPS データソースの AccessKey ID。 |
L***p |
| accessSecret |
string |
ODPS データソースの AccessKey シークレット。 |
5**9a6 |
| project |
string |
ODPS プロジェクトの名前。 |
tisplus_dev |
| partition |
string |
ODPS パーティション。例: ds=20180102 |
ds=20220713 |
| table |
string |
saro および ODPS に関連する情報。 |
dump_odps_demo |
| namespace |
string |
saro に関連する情報。 |
TEST_dump_demo_sj_na61hunbu2_share_holo |
| path |
string |
HDFS に関連する情報。 |
http://test_opensearch/sift_oss_test.data |
| ossPath |
string |
OSS データソースに関連する情報。 |
/test_opensearch/sift_oss_test.data |
| bucket |
string |
バケットの名前。 |
ha3test-oss |
| format |
string |
OSS 内のデータのファイル形式。
|
ha3 |
| catalog |
string |
DLF データソースのデータカタログ ID。 |
clg-paimon-21cc136237a6457f8618f5f82d116d7e |
| database |
string |
DLF データソースのデータベース。 |
dlf_test |
| tag |
string |
DLF データソースのタグ。 |
test_tag |
| saroConfig |
object |
saro データソースの構成。 |
|
| namespace |
string |
saro データソースの名前空間。 |
TEST_dump_demo_sj_na61hunbu2_share_holo |
| tableName |
string |
saro データテーブルの名前。 |
llm |
| autoBuildIndex |
boolean |
自動完全インデックス作成が有効かどうかを示します。 |
true |
| processParallelNum |
integer |
完全な処理の同時実行数。 |
2 |
| createTime |
string |
インデックスが作成された時刻。 |
2024-05-21 16:05:26 |
| updateTime |
string |
インデックスが更新された時刻。 |
2024-05-21 16:05:26 |
| cluster |
object |
クラスター情報。 |
|
|
object |
クラスター情報。 |
||
| buildParallelNum |
integer |
完全なインデックス作成の同時実行数。 |
2 |
| mergeParallelNum |
integer |
完全なマージの同時実行数。 |
2 |
| config |
object |
構成情報。 |
|
|
object |
構成情報。 |
||
| configWhenBuild |
object |
次回のインデックス作成で有効になる構成。 |
|
|
object |
次回のインデックス作成で有効になる構成。 |
||
| extend |
object |
拡張情報。 |
|
|
array |
拡張情報。 |
レスポンスの例
成功応答の例
{
"requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",
"result": {
"name": "index-name",
"dataSource": "ha-cn-xxx-index-name",
"domain": "test", // データソースのデプロイメント名
"partition": 2,
"indexStatus": "IN_USE",
"content": "{\n\t\"summarys\":{\n\t\t\"parameter\":{\n\t\t\t\"file_compressor\":\"zstd\"\n\t\t},\n\t\t\"summary_fields\":[\n\t\t\t\"id\"\n\t\t]\n\t},\n\t\"file_compress\":[\n\t\t{\n\t\t\t\"name\":\"file_compressor\",\n\t\t\t\"type\":\"zstd\"\n\t\t},\n\t\t{\n\t\t\t\"name\":\"no_compressor\",\n\t\t\t\"type\":\"\"\n\t\t}\n\t],\n\t\"indexs\":[\n\t\t{\n\t\t\t\"index_fields\":\"name\",\n\t\t\t\"index_name\":\"ids\",\n\t\t\t\"index_type\":\"STRING\"\n\t\t},\n\t\t{\n\t\t\t\"has_primary_key_attribute\":true,\n\t\t\t\"index_fields\":\"id\",\n\t\t\t\"is_primary_key_sorted\":false,\n\t\t\t\"index_name\":\"id\",\n\t\t\t\"index_type\":\"PRIMARYKEY64\"\n\t\t}\n\t],\n\t\"attributes\":[\n\t\t{\n\t\t\t\"file_compress\":\"no_compressor\",\n\t\t\t\"field_name\":\"id\"\n\t\t}\n\t],\n\t\"fields\":[\n\t\t{\n\t\t\t\"user_defined_param\":{},\n\t\t\t\"compress_type\":\"uniq\",\n\t\t\t\"field_type\":\"STRING\",\n\t\t\t\"field_name\":\"id\"\n\t\t},\n\t\t{\n\t\t\t\"compress_type\":\"uniq\",\n\t\t\t\"field_type\":\"STRING\",\n\t\t\t\"field_name\":\"name\"\n\t\t}\n\t],\n\t\"table_name\":\"api\"\n}",
"extend": {
"vector": [
"vector"
],
"embeding": [
"id"
],
"description": [
"{\"feild2\":\"Note 2\"}",
"{\"feild3\":\"Note 3\"}"
]
},
"cluster": {
"build_parallel_num": "2",
"merge_parallel_num": "2"
},
"dataSourceInfo": {
"type": "odps",
"dataSource": "ha-cn-xxx-index-name",
"processPartitionCount": 2,
"domain": "test",
"autoBuildIndex": true,
"config": {
"project": "tisplus_dev",
"table": "tisplus_one_key_build_station_template_table_test",
"partition": "ds=12345",
"accesskeyId": "root",
"accesskeySecret": "root123",
"endpoint": "http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api"
},
"saroConfig": {
"namespace": "TEST_dump_demo_sj_na61hunbu2_share_holo",
"tableName": "dump_odps_demo"
},
"processParallelNum": 2,
"swiftConfig":{
"topic":"ha-cn-xxx-index-name"
}
},
"config": {
"OFFLINE_DICT": {
"name": "ha-cn-finxmo71065_offline_dict_v2",
"updateTime": 1709259817000,
"desc": "Description"
},
"OFFLINE_TABLE": {
"name": "ha-cn-finxmo71065_table_ha-cn-finxmo71065_test_saro_v2",
"updateTime": 1709261682000,
"desc": "Description"
},
"OFFLINE_COMMON": {
"name": "ha-cn-finxmo71065_offline_adv_v2",
"updateTime": 1709259817000,
"desc": "Description"
},
"OFFLINE_PLUGIN": {
"name": "ha-cn-finxmo71065_offline_plugin_v2",
"updateTime": 1709259817000,
"desc": "Description"
},
"OFFLINE_INDEX": {
"name": "ha-cn-finxmo71065@ha-cn-finxmo71065_test_saro@test_saro@index_config_v2",
"updateTime": 1709259817000,
"desc": "Description"
}
},
"configWhenBuild": {
"OFFLINE_DICT": {
"name": "ha-cn-finxmo71065_offline_dict_v2",
"updateTime": 1709259817000,
"desc": "Description"
},
"OFFLINE_TABLE": {
"name": "ha-cn-finxmo71065_table_ha-cn-finxmo71065_test_saro_v2",
"updateTime": 1709261682000,
"desc": "Description"
},
"OFFLINE_COMMON": {
"name": "ha-cn-finxmo71065_offline_adv_v2",
"updateTime": 1709259817000,
"desc": "Description"
},
"OFFLINE_PLUGIN": {
"name": "ha-cn-finxmo71065_offline_plugin_v2",
"updateTime": 1709259817000,
"desc": "Description"
},
"OFFLINE_INDEX": {
"name": "ha-cn-finxmo71065@ha-cn-finxmo71065_test_saro@test_saro@index_config_v2",
"updateTime": 1709259817000,
"desc": "Description"
}
}
}
例
成功レスポンス
JSONJSON
{
"requestId": "4FB0325E-8C37-5525-96AC-0333523170A3",
"result": {
"name": "test_api",
"versions": [
{
"desc": "Index Note",
"files": [
{
"fullPathName": "/qrs.json\n",
"isDir": true,
"isTemplate": true,
"name": "qrs.json"
}
],
"name": "test",
"status": "PUBLISH",
"updateTime": 1718846192,
"versionId": 1
}
],
"dataSource": "ha-cn-pl32rf0****_test_api\n",
"domain": "sz_vpc_domain_1",
"indexStatus": "IN_USE",
"content": "{\"summarys\":{\"parameter\":{\"file_compressor\":\"zstd\"},\"summary_fields\":[\"id\"]},\"file_compress\":[{\"name\":\"file_compressor\",\"type\":\"zstd\"},{\"name\":\"no_compressor\",\"type\":\"\"}],\"indexs\":[{\"index_fields\":\"name\",\"index_name\":\"ids\",\"index_type\":\"STRING\"},{\"has_primary_key_attribute\":true,\"index_fields\":\"id\",\"is_primary_key_sorted\":false,\"index_name\":\"id\",\"index_type\":\"PRIMARYKEY64\"}],\"attributes\":[{\"file_compress\":\"no_compressor\",\"field_name\":\"id\"}],\"fields\":[{\"user_defined_param\":{},\"compress_type\":\"uniq\",\"field_type\":\"STRING\",\"field_name\":\"id\"},{\"compress_type\":\"uniq\",\"field_type\":\"STRING\",\"field_name\":\"name\"}],\"table_name\":\"api\"}",
"partition": 2,
"fullVersion": 1688523414,
"fullUpdateTime": "2024-06-20 08:52:54",
"incUpdateTime": "2024-06-20 08:52:54",
"indexSize": 4689,
"description": "note",
"dataSourceInfo": {
"processPartitionCount": 2,
"name": "ha-cn-pl32rf0****_test_api\n",
"type": "odps",
"domain": "vpc_hz_domain_1",
"config": {
"endpoint": "http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api",
"accessKey": "L***p",
"accessSecret": "5**9a6",
"project": "tisplus_dev",
"partition": "ds=20220713",
"table": "dump_odps_demo",
"namespace": "TEST_dump_demo_sj_na61hunbu2_share_holo",
"path": "http://test_opensearch/sift_oss_test.data",
"ossPath": "/test_opensearch/sift_oss_test.data",
"bucket": "ha3test-oss",
"format": "ha3",
"catalog": "clg-paimon-21cc136237a6457f8618f5f82d116d7e",
"database": "dlf_test",
"tag": "test_tag"
},
"saroConfig": {
"namespace": "TEST_dump_demo_sj_na61hunbu2_share_holo",
"tableName": "llm"
},
"autoBuildIndex": true,
"processParallelNum": 2
},
"createTime": "2024-05-21 16:05:26",
"updateTime": "2024-05-21 16:05:26",
"cluster": {
"key": {
"buildParallelNum": 2,
"mergeParallelNum": 2
}
},
"config": {
"key": {
"key": {
"name": "\nha-cn-pl32rf0****_offline_adv_v1",
"updateTime": "1716258634000",
"desc": "Note Information"
}
}
},
"configWhenBuild": {
"key": {
"key": {
"name": "\nha-cn-pl32rf0****_offline_adv_v1",
"updateTime": "1716258634000",
"desc": "Note Information"
}
}
},
"extend": {
"key": [
"Extended Information"
]
}
}
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。