查看索引表版本详情。
接口说明
方法
GET
URI
/openapi/ha3/instances/{instanceId}/indexes/{indexName}/versions/{versionName}/file
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
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 |
Schema of Response |
||
| 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": ""
}
}
示例
正常返回示例
JSON格式
{
"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": [
""
]
}
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。