List index metadata (HTTP)

Gets information about the indexes associated with a specific table.

Ready to write code? See the examples for this method to get started.

Result

The status.indexes field in the response describes each index in the table.

Example response:

{
  "status": {
    "indexes": [
      {
        "name": "summary_genres_vector_index",
        "definition": {
          "column": "summary_genres_vector",
          "options": { "metric": "cosine", "sourceModel": "other" }
        },
        "indexType": "vector"
      },
      {
        "name": "rating_index",
        "definition": { "column": "rating", "options": {} },
        "indexType": "regular"
      }
    ]
  }
}

Parameters

Use the listIndexes command.

Command signature
curl -sS -L -X POST "API_ENDPOINT/api/json/v1/KEYSPACE_NAME/TABLE_NAME" \
--header "Token: APPLICATION_TOKEN" \
--header "Content-Type: application/json" \
--data '{
  "listIndexes": {
    "options": {
      "explain": true
    }
  }
}'
Name Type Summary

options.explain

true

Must be true to return metadata about the indexes. Otherwise, only the index names are returned.

Examples

The following examples demonstrate how to get index metadata for a table.

List index metadata

curl -sS -L -X POST "API_ENDPOINT/api/json/v1/KEYSPACE_NAME/TABLE_NAME" \
  --header "Token: APPLICATION_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "listIndexes": {
    "options": {
      "explain": true
    }
  }
}'

Was this helpful?

Give Feedback

How can we improve the documentation?

© Copyright IBM Corporation 2026 | Privacy policy | Terms of use |  Manage Privacy Choices

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: Contact IBM