インデックスバージョンの詳細を取得します。
操作説明
メソッド
GET
URI
/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
searchengine:GetFile |
get |
*Instance
|
なし | なし |
リクエスト構文
GET /openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file HTTP/1.1
パスパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| instanceId |
string |
必須 |
インスタンス ID。 |
ha-cn-pl32rf0**** |
| indexName |
string |
必須 |
インデックス名。 |
test_api |
| versionName |
string |
必須 |
バージョン名。 |
ha-cn-pl32rf0****@ha-cn-pl32rf0****_test_api@bj_vpc_domain_1@point_cloud_3d@index_config_edit |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| fileName |
string |
必須 |
ファイルの完全なパス。 |
/schemas/automobile_vector_schema.json |
リクエスト例
GET /openapi/ha3/instances/ose-test1/indexes/index1/versions/version1?fileName=/root/test.txt
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスのスキーマ |
||
| requestId |
string |
リクエスト ID。 |
2AE63638-5420-56DC-BF59-37D8174039A0 |
| result |
object |
インデックス情報。 |
|
| name |
string |
ファイル名。 |
testFile |
| fullPathName |
string |
ファイルの完全なパス。 |
/schema.json |
| dataSource |
string |
データソース。 |
ha-cn-pl32rf0****_test_api |
| partition |
integer |
シャード数。 |
2 |
| isDir |
boolean |
パスがディレクトリを指しているかどうかを示します。 |
true |
| 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"} |
| extend |
object |
拡張情報。 |
|
|
array |
拡張情報。 |
||
|
string |
拡張情報。 |
レスポンス例
成功レスポンス
{
"requestId": "e1eef569-1ff7-4bf8-acf7-1cecca9894ce",
"result": {
"name":"version1", // ファイル名
"fullPathName": "/root/version1", // ファイルの完全なパス
"dataSource": "odps1", // データソース
"partition": 1, // シャード
"isDir": false, // パスがディレクトリを指しているかどうかを示します
"content": ""
}
}
例
成功レスポンス
JSONJSON
{
"requestId": "2AE63638-5420-56DC-BF59-37D8174039A0",
"result": {
"name": "testFile",
"fullPathName": "/schema.json",
"dataSource": "ha-cn-pl32rf0****_test_api",
"partition": 2,
"isDir": true,
"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\"}",
"extend": {
"key": [
""
]
}
}
}
エラーコード
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。