All Products
Search
Document Center

OpenSearch:GetIndex

Last Updated:Jul 16, 2024

Queries the information about an index version.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

GET /openapi/ha3/instances/{instanceId}/indexes/{indexName}

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-8ed2j834u03
indexNamestringYes

The index name.

index_jiayi_text

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

requestIdstring

The ID of the request.

4FB0325E-8C37-5525-96AC-0333523170A3
resultobject

The index information.

namestring

The index name.

general
versionsarray<object>

The information about the versions.

object
descstring

The description of the version.

close alarm, by 3.9.2 hotfix workflow
filesarray<object>

The information about the files.

object
fullPathNamestring

The full path of the file.

" "
isDirboolean

Indicates whether the file is a directory.

True
isTemplateboolean

Indicates whether the file is a template.

True
namestring

The file name.

qrs.json
namestring

The version name.

ha-cn-7pp2ngv4s02_qrs
statusstring

The status of the index version. Valid values:

  • NEW: The index version is created.
  • PUBLISH: The index version is normal.
  • IN_USE: The index version is in use.
  • NOT_USE: The index version is not used.
  • STOP_USE: The index version is being stopped.
  • RESTORE_USE: The index version is being restored.
  • FAIL: The index version failed to be created.
2
updateTimelong

The time when the index version was updated.

" "
versionIdinteger

The version ID.

1
dataSourcestring

The name of the data source.

ha-cn-tl32nd2nq01_00
domainstring

The deployment name of the index.

sz_vpc_domain_1
indexStatusstring

The status of the index version. Valid values:

  • NEW: The index version is created.
  • PUBLISH: The index version is normal.
  • IN_USE: The index version is in use.
  • NOT_USE: The index version is not used.
  • STOP_USE: The index version is being stopped.
  • RESTORE_USE: The index version is being restored.
  • FAIL: The index version failed to be created.
IN_USE
contentstring

The file 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"}
partitioninteger

The number of shards.

2
fullVersionlong

The data version.

1688523414
fullUpdateTimestring

The time when full data in the index was last updated.

2024-06-20 08:52:54
incUpdateTimestring

The time when incremental data in the index was last updated.

2024-06-20 08:52:54
indexSizelong

The index size.

4689
descriptionstring

The description of the index version.

test index
dataSourceInfoobject

The information about the data source.

processPartitionCountinteger

The number of resources used for data update.

2
namestring

The name of the data source.

ha-cn-pl32rf0****_test_api
typestring

The type of the data source. Valid values: odps, swift, saro, oss, and unKnow.

odps
domainstring

The data center in which the data source is deployed.

vpc_hz_domain_1
configobject

The configuration of MaxCompute data sources.

endpointstring

The endpoint of the MaxCompute data source.

http://service.cn-hangzhou.maxcompute.aliyun-inc.com/api
accessKeystring

The AccessKey ID of the MaxCompute data source.

L***p
accessSecretstring

The AccessKey secret of the MaxCompute data source.

5**9a6
projectstring

The name of the MaxCompute project that is used as the data source.

tisplus_dev
partitionstring

The partition in the MaxCompute table. Example: ds=20180102.

ds=20220713
tablestring

The name of the MaxCompute table that is used as the data source.

dump_odps_demo
namespacestring

The namespace. This parameter is applicable to the SARO data source used in the intranet of Alibaba Group.

TEST_dump_demo_sj_na61hunbu2_share_holo
pathstring

The file path in the Apsara File Storage for HDFS file system.

http://test_opensearch/sift_oss_test.data
ossPathstring

The Object Storage Service (OSS) path.

/test_opensearch/sift_oss_test.data
bucketstring

The name of the OSS bucket.

ha3test-oss
saroConfigobject

The configurations of the SARO data source.

namespacestring

The namespace of the SARO data source.

TEST_dump_demo_sj_na61hunbu2_share_holo
tableNamestring

The name of the SARO table.

llm
autoBuildIndexboolean

Indicates whether the automatic full indexing feature is enabled.

true
processParallelNuminteger

The maximum number of full indexes that can be concurrently processed.

2
clusterobject

The cluster information.

object

The cluster information.

buildParallelNuminteger

The maximum number of full indexes that can be concurrently built.

2
mergeParallelNuminteger

The maximum number of full indexes that can be concurrently merged.

2
configobject

The configuration information.

object

The configuration information.

object

The information about the child configuration item.

namestring

The configuration name.

ha-cn-pl32rf0****_offline_adv_v1
updateTimestring

The time when the configuration was updated.

1716258634000
descstring

The description of the advanced configuration.

Description
configWhenBuildobject

The configuration that takes effect next time.

object

The configuration that takes effect next time.

object

The child configuration item that takes effect next time.

namestring

The configuration name.

ha-cn-pl32rf0****_offline_adv_v1
updateTimestring

The time when the configuration was updated.

1716258634000
descstring

The description of the advanced configuration.

Description

Examples

Sample success responses

JSONformat

{
  "requestId": "4FB0325E-8C37-5525-96AC-0333523170A3",
  "result": {
    "name": "general",
    "versions": [
      {
        "desc": "close alarm, by 3.9.2 hotfix workflow",
        "files": [
          {
            "fullPathName": "\" \"",
            "isDir": true,
            "isTemplate": true,
            "name": "qrs.json"
          }
        ],
        "name": "ha-cn-7pp2ngv4s02_qrs",
        "status": "2",
        "updateTime": 0,
        "versionId": 1
      }
    ],
    "dataSource": "ha-cn-tl32nd2nq01_00",
    "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": "test index",
    "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"
      },
      "saroConfig": {
        "namespace": "TEST_dump_demo_sj_na61hunbu2_share_holo",
        "tableName": "llm"
      },
      "autoBuildIndex": true,
      "processParallelNum": 2
    },
    "cluster": {
      "key": {
        "buildParallelNum": 2,
        "mergeParallelNum": 2
      }
    },
    "config": {
      "key": {
        "key": {
          "name": "\nha-cn-pl32rf0****_offline_adv_v1",
          "updateTime": "1716258634000",
          "desc": "Description\n"
        }
      }
    },
    "configWhenBuild": {
      "key": {
        "key": {
          "name": "\nha-cn-pl32rf0****_offline_adv_v1",
          "updateTime": "1716258634000",
          "desc": "Description\n"
        }
      }
    }
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-05-16The response structure of the API has changedView Change Details
2023-07-20The request parameters of the API has changed. The response structure of the API has changedView Change Details
2022-01-12Add OperationView Change Details