What are useful API requests for administration?

For administration and troubleshooting, these basic ones seem quite useful.

GET /_cat

GET /_cat/indices

GET /_search

Any advice on other API queries for sysadmins/devops?

Thank you in advance!

  • Young

Hi learner,

All you need is listed is GET /_cat:

/_cat/allocation
/_cat/shards
/_cat/shards/{index}
/_cat/master
/_cat/nodes
/_cat/tasks
/_cat/indices
/_cat/indices/{index}
/_cat/segments
/_cat/segments/{index}
/_cat/count
/_cat/count/{index}
/_cat/recovery
/_cat/recovery/{index}
/_cat/health
/_cat/pending_tasks
/_cat/aliases
/_cat/aliases/{alias}
/_cat/thread_pool
/_cat/thread_pool/{thread_pools}
/_cat/plugins
/_cat/fielddata
/_cat/fielddata/{fields}
/_cat/nodeattrs
/_cat/repositories
/_cat/snapshots/{repository}
/_cat/templates

You can use parameter help to obtain the available headers, for example:

GET /_cat/health?help

then use paremeter v and h to filter:

GET /_cat/health?v&h=epoch,cluster,status

Hope it helps,
LG

Excellent!

Thank you very much, Luiz!

  • Young

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.