Skip to content

Instantly share code, notes, and snippets.

@echarles
Created June 19, 2013 10:53
Show Gist options
  • Save echarles/5813448 to your computer and use it in GitHub Desktop.
Save echarles/5813448 to your computer and use it in GitHub Desktop.
List of ElasticSearch REST commands (retrieved from source code with grep)
DELETE
DELETE _template/{name}
DELETE {index}
DELETE {index}/_alias/{name}
DELETE {index}/_query
DELETE {index}/_warmer
DELETE {index}/_warmer/{name}
DELETE {index}/{type}
DELETE {index}/{type}/_mapping
DELETE {index}/{type}/_query
DELETE {index}/{type}/_warmer/{name}
DELETE {index}/{type}/{id}
GET
GET _alias/{name}
GET _aliases
GET _analyze
GET _cache/clear
GET _cluster/health
GET _cluster/health/{index}
GET _cluster/nodes
GET _cluster/nodes/hot_threads
GET _cluster/nodes/hotthreads
GET _cluster/nodes/stats
GET _cluster/nodes/{nodeId}
GET _cluster/nodes/{nodeId}/hot_threads
GET _cluster/nodes/{nodeId}/hotthreads
GET _cluster/nodes/{nodeId}/stats
GET _cluster/settings
GET _cluster/state
GET _count
GET _flush
GET _mapping
GET _mget
GET _msearch
GET _nodes
GET _nodes/fs/stats", fsHandler);
GET _nodes/hot_threads
GET _nodes/hotthreads
GET _nodes/http", new RestHttpHandler());
GET _nodes/http/stats", httpHandler);
GET _nodes/indices/" + flag.getRestName() + "/stats", indicesHandler);
GET _nodes/indices/" + flag.getRestName() + "/{fields}/stats", indicesHandler);
GET _nodes/indices/stats", indicesHandler);
GET _nodes/jvm", new RestJvmHandler());
GET _nodes/jvm/stats", jvmHandler);
GET _nodes/network", new RestNetworkHandler());
GET _nodes/network/stats", networkHandler);
GET _nodes/os", new RestOsHandler());
GET _nodes/os/stats", osHandler);
GET _nodes/plugin", new RestPluginHandler());
GET _nodes/process", new RestProcessHandler());
GET _nodes/process/stats", processHandler);
GET _nodes/settings", new RestSettingsHandler());
GET _nodes/stats
GET _nodes/stats/fs", fsHandler);
GET _nodes/stats/http", httpHandler);
GET _nodes/stats/indices", indicesHandler);
GET _nodes/stats/indices/" + flag.getRestName() + "/{fields}", indicesHandler);
GET _nodes/stats/indices/" + flag.getRestName(), indicesHandler);
GET _nodes/stats/jvm", jvmHandler);
GET _nodes/stats/network", networkHandler);
GET _nodes/stats/os", osHandler);
GET _nodes/stats/process", processHandler);
GET _nodes/stats/thread_pool", threadPoolHandler);
GET _nodes/stats/transport", transportHandler);
GET _nodes/thread_pool", new RestThreadPoolHandler());
GET _nodes/thread_pool/stats", threadPoolHandler);
GET _nodes/transport", new RestTransportHandler());
GET _nodes/transport/stats", transportHandler);
GET _nodes/{nodeId}
GET _nodes/{nodeId}/fs/stats", fsHandler);
GET _nodes/{nodeId}/hot_threads
GET _nodes/{nodeId}/hotthreads
GET _nodes/{nodeId}/http", new RestHttpHandler());
GET _nodes/{nodeId}/http/stats", httpHandler);
GET _nodes/{nodeId}/indices/" + flag.getRestName() + "/stats", indicesHandler);
GET _nodes/{nodeId}/indices/" + flag.getRestName() + "/{fields}/stats", indicesHandler);
GET _nodes/{nodeId}/indices/stats", indicesHandler);
GET _nodes/{nodeId}/jvm", new RestJvmHandler());
GET _nodes/{nodeId}/jvm/stats", jvmHandler);
GET _nodes/{nodeId}/network", new RestNetworkHandler());
GET _nodes/{nodeId}/network/stats", networkHandler);
GET _nodes/{nodeId}/os", new RestOsHandler());
GET _nodes/{nodeId}/os/stats", osHandler);
GET _nodes/{nodeId}/plugin", new RestPluginHandler());
GET _nodes/{nodeId}/process", new RestProcessHandler());
GET _nodes/{nodeId}/process/stats", processHandler);
GET _nodes/{nodeId}/settings", new RestSettingsHandler());
GET _nodes/{nodeId}/stats
GET _nodes/{nodeId}/stats/fs", fsHandler);
GET _nodes/{nodeId}/stats/http", httpHandler);
GET _nodes/{nodeId}/stats/indices", indicesHandler);
GET _nodes/{nodeId}/stats/indices/" + flag.getRestName() + "/{fields}", indicesHandler);
GET _nodes/{nodeId}/stats/indices/" + flag.getRestName(), indicesHandler);
GET _nodes/{nodeId}/stats/jvm", jvmHandler);
GET _nodes/{nodeId}/stats/network", networkHandler);
GET _nodes/{nodeId}/stats/os", osHandler);
GET _nodes/{nodeId}/stats/process", processHandler);
GET _nodes/{nodeId}/stats/thread_pool", threadPoolHandler);
GET _nodes/{nodeId}/stats/transport", transportHandler);
GET _nodes/{nodeId}/thread_pool", new RestThreadPoolHandler());
GET _nodes/{nodeId}/thread_pool/stats", threadPoolHandler);
GET _nodes/{nodeId}/transport", new RestTransportHandler());
GET _nodes/{nodeId}/transport/stats", transportHandler);
GET _optimize
GET _refresh
GET _search
GET _search/scroll
GET _search/scroll/{scroll_id}
GET _search_shards
GET _segments
GET _settings
GET _stats
GET _stats/fielddata", new RestFieldDataStatsHandler());
GET _stats/fielddata/{fields}", new RestFieldDataStatsHandler());
GET _stats/filter_cache", new RestFilterCacheStatsHandler());
GET _stats/flush", new RestFlushStatsHandler());
GET _stats/get", new RestGetStatsHandler());
GET _stats/id_cache", new RestIdCacheStatsHandler());
GET _stats/indexing", new RestIndexingStatsHandler());
GET _stats/indexing/{indexingTypes1}", new RestIndexingStatsHandler());
GET _stats/merge", new RestMergeStatsHandler());
GET _stats/refresh", new RestRefreshStatsHandler());
GET _stats/search", new RestSearchStatsHandler());
GET _stats/search/{searchGroupsStats1}", new RestSearchStatsHandler());
GET _stats/store", new RestStoreStatsHandler());
GET _stats/warmer", new RestWarmerStatsHandler());
GET _status
GET _suggest
GET _template/{name}
GET _validate/query
GET {index}/_alias/{name}
GET {index}/_aliases
GET {index}/_analyze
GET {index}/_cache/clear
GET {index}/_count
GET {index}/_flush
GET {index}/_mapping
GET {index}/_mget
GET {index}/_msearch
GET {index}/_optimize
GET {index}/_refresh
GET {index}/_search
GET {index}/_search_shards
GET {index}/_segments
GET {index}/_settings
GET {index}/_stats
GET {index}/_stats/docs", new RestDocsStatsHandler());
GET {index}/_stats/fielddata", new RestFieldDataStatsHandler());
GET {index}/_stats/fielddata/{fields}", new RestFieldDataStatsHandler());
GET {index}/_stats/filter_cache", new RestFilterCacheStatsHandler());
GET {index}/_stats/flush", new RestFlushStatsHandler());
GET {index}/_stats/get", new RestGetStatsHandler());
GET {index}/_stats/id_cache", new RestIdCacheStatsHandler());
GET {index}/_stats/indexing", new RestIndexingStatsHandler());
GET {index}/_stats/indexing/{indexingTypes2}", new RestIndexingStatsHandler());
GET {index}/_stats/merge", new RestMergeStatsHandler());
GET {index}/_stats/refresh", new RestRefreshStatsHandler());
GET {index}/_stats/search", new RestSearchStatsHandler());
GET {index}/_stats/search/{searchGroupsStats2}", new RestSearchStatsHandler());
GET {index}/_stats/store", new RestStoreStatsHandler());
GET {index}/_stats/warmer", new RestWarmerStatsHandler());
GET {index}/_status
GET {index}/_suggest
GET {index}/_validate/query
GET {index}/_warmer
GET {index}/_warmer/{name}
GET {index}/{type}/_count
GET {index}/{type}/_mapping
GET {index}/{type}/_mget
GET {index}/{type}/_msearch
GET {index}/{type}/_percolate
GET {index}/{type}/_search
GET {index}/{type}/_search_shards
GET {index}/{type}/_validate/query
GET {index}/{type}/_warmer/{name}
GET {index}/{type}/{id}
GET {index}/{type}/{id}/_explain
GET {index}/{type}/{id}/_mlt
GET {index}/{type}/{id}/_source
GET {index}/{type}/{id}/_termvector
GET/_stats/docs"
HEAD
HEAD _alias/{name}
HEAD {index}
HEAD {index}/_alias/{name}
HEAD {index}/{type}
HEAD {index}/{type}/{id}
HEAD {index}/{type}/{id}/_source
POST _aliases
POST _analyze
POST _bulk
POST _cache/clear
POST _cluster/nodes/_restart
POST _cluster/nodes/_shutdown
POST _cluster/nodes/{nodeId}/_restart
POST _cluster/nodes/{nodeId}/_shutdown
POST _cluster/reroute
POST _count
POST _flush
POST _gateway/snapshot
POST _mget
POST _msearch
POST _optimize
POST _refresh
POST _search
POST _search/scroll
POST _search/scroll/{scroll_id}
POST _search_shards
POST _shutdown
POST _suggest
POST _template/{name}
POST _validate/query
POST {index}
POST {index}/_analyze
POST {index}/_bulk
POST {index}/_cache/clear
POST {index}/_close
POST {index}/_count
POST {index}/_flush
POST {index}/_gateway/snapshot
POST {index}/_mapping
POST {index}/_mget
POST {index}/_msearch
POST {index}/_open
POST {index}/_optimize
POST {index}/_refresh
POST {index}/_search
POST {index}/_search_shards
POST {index}/_suggest
POST {index}/_validate/query
POST {index}/{type} auto id creation
POST {index}/{type}/_bulk
POST {index}/{type}/_count
POST {index}/{type}/_mapping
POST {index}/{type}/_mget
POST {index}/{type}/_msearch
POST {index}/{type}/_percolate
POST {index}/{type}/_search
POST {index}/{type}/_search_shards
POST {index}/{type}/_validate/query
POST {index}/{type}/{id}
POST {index}/{type}/{id}/_create
POST {index}/{type}/{id}/_explain
POST {index}/{type}/{id}/_mlt
POST {index}/{type}/{id}/_termvector
POST {index}/{type}/{id}/_update
PUT _alias
PUT _alias/{name}
PUT _bulk
PUT _cluster/settings
PUT _settings
PUT _template/{name}
PUT {index}
PUT {index}/_alias
PUT {index}/_alias/{name}
PUT {index}/_bulk
PUT {index}/_mapping
PUT {index}/_settings
PUT {index}/_warmer/{name}
PUT {index}/{type}/_bulk
PUT {index}/{type}/_mapping
PUT {index}/{type}/_warmer/{name}
PUT {index}/{type}/{id}
PUT {index}/{type}/{id}/_create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment