module.exports = [ { version: '*', paramAsBody: { scroll: 'scrollId', clearScroll: 'scrollId', } }, { version: '0.90.x', aliases: { 'cluster.nodeHotThreads': [ '/_cluster/nodes/hotthreads', '/_cluster/nodes/hot_threads', '/_nodes/hot_threads', '/_cluster/nodes/{node_id}/hotthreads', '/_cluster/nodes/{node_id}/hot_threads', '/_nodes/{node_id}/hot_threads' ], 'cluster.nodeInfo': [ '/_cluster/nodes', '/_nodes/settings', '/_nodes/os', '/_nodes/process', '/_nodes/jvm', '/_nodes/thread_pool', '/_nodes/network', '/_nodes/transport', '/_nodes/http', '/_nodes/plugin', '/_cluster/nodes/{node_id}', '/_nodes/{node_id}/settings', '/_nodes/{node_id}/os', '/_nodes/{node_id}/process', '/_nodes/{node_id}/jvm', '/_nodes/{node_id}/thread_pool', '/_nodes/{node_id}/network', '/_nodes/{node_id}/transport', '/_nodes/{node_id}/http', '/_nodes/{node_id}/plugin' ], 'cluster.nodeShutdown': [ '/_cluster/nodes/_shutdown' ], 'cluster.nodeStats': [ '/_cluster/nodes/stats', '/_nodes/stats/{metric_family}', '/_nodes/stats/indices/{metric}/{fields}', '/_cluster/nodes/{node_id}/stats', '/_nodes/{node_id}/stats/{metric_family}', '/_nodes/{node_id}/stats/indices/{metric}/{fields}' ], 'get': [ '/{index}/{type}/{id}/_source' ], 'indices.deleteMapping': [ '/{index}/{type}/_mapping' ], 'indices.stats': [ '_stats/{metric_family}', '/_stats/indexing', '/_stats/indexing/{indexing_types}', '/_stats/search/{search_groups}', '/_stats/fielddata/{fields}', '/{index}/_stats/{metric_family}', '/{index}/_stats/indexing', '/{index}/_stats/search/{search_groups}', '/{index}/_stats/fielddata/{fields}' ] } }, { version: '>=1.0.0', aliases: { 'nodes.hotThreads': [ '/_cluster/nodes/hotthreads', '/_cluster/nodes/hot_threads', '/_nodes/hot_threads', '/_cluster/nodes/{node_id}/hotthreads', '/_cluster/nodes/{node_id}/hot_threads', '/_nodes/{node_id}/hot_threads' ], 'nodes.info': [ '/_cluster/nodes', '/_nodes/settings', '/_nodes/os', '/_nodes/process', '/_nodes/jvm', '/_nodes/thread_pool', '/_nodes/network', '/_nodes/transport', '/_nodes/http', '/_nodes/plugin', '/_cluster/nodes/{node_id}', '/_nodes/{node_id}/settings', '/_nodes/{node_id}/os', '/_nodes/{node_id}/process', '/_nodes/{node_id}/jvm', '/_nodes/{node_id}/thread_pool', '/_nodes/{node_id}/network', '/_nodes/{node_id}/transport', '/_nodes/{node_id}/http', '/_nodes/{node_id}/plugin' ], 'nodes.shutdown': [ '/_cluster/nodes/_shutdown' ], 'nodes.stats': [ '/_cluster/nodes/stats', '/_nodes/stats/{metric_family}', '/_nodes/stats/indices/{metric}/{fields}', '/_cluster/nodes/{node_id}/stats', '/_nodes/{node_id}/stats/{metric_family}', '/_nodes/{node_id}/stats/indices/{metric}/{fields}' ], 'get': [ '/{index}/{type}/{id}/_source' ], 'indices.deleteMapping': [ '/{index}/{type}', '/{index}/_mapping/{type}', '/{index}/{type}/_mappings', '/{index}/_mappings/{type}' ], 'indices.putWarmer': [ // '/_warmer/{name}', // '/{index}/_warmer/{name}', // '/{index}/{type}/_warmer/{name}', '/_warmers/{name}', '/{index}/_warmers/{name}', '/{index}/{type}/_warmers/{name}' ], 'indices.deleteWarmer': [ // '/{index}/_warmer/{name}', '/{index}/_warmer', '/{index}/_warmers', '/{index}/_warmers/{name}' ], 'indices.deleteAlias': [ // '/{index}/_alias/{name}', '/{index}/_aliases/{name}' ], 'indices.putAlias': [ // '/{index}/_alias/{name}', // '/_alias/{name}', '/{index}/_aliases/{name}', '/_aliases/{name}' ], 'indices.putMapping': [ // '/{index}/_mapping/{type}', // '/{index}/_mapping', // '/_mapping/{type}', '/{index}/{type}/_mapping', '/{index}/{type}/_mappings', '/{index}/_mappings/{type}', '/{index}/_mappings', '/_mappings/{type}' ], 'indices.stats': [ '_stats/{metric_family}', '/_stats/indexing', '/_stats/indexing/{indexing_types}', '/_stats/search/{search_groups}', '/_stats/fielddata/{fields}', '/{index}/_stats/{metric_family}', '/{index}/_stats/indexing', '/{index}/_stats/search/{search_groups}', '/{index}/_stats/fielddata/{fields}' ] } }, { version: '>1.4.0', aliases: { 'indices.putAlias': [ // '/{index}/_alias/{name}', '/{index}/_aliases/{name}' ] } }, { version: '<1.6.0', aliases: { 'snapshot.create': [ '/_snapshot/{repository}/{snapshot}' ] } }, { version: '>=1.6.0', // strange indentation makes pretty api files /* eslint-disable */ clientActionModifier: function (spec) { return require('lodash').merge(spec, { params: { filterPath: { type: 'list', name: 'filter_path' } } }); } /* eslint-enable */ }, { version: '>=2.0.0', aliases: { 'reindex.rethrottle': [ '/_update_by_query/{task_id}/_rethrottle', '/_delete_by_query/{task_id}/_rethrottle' ], 'reindexRethrottle': [ '/_update_by_query/{task_id}/_rethrottle' ] } }, { version: '>=5.0.0', mergeConcatParams: { bulk: { refresh: { options: [''] } }, create: { refresh: { options: [''] } }, index: { refresh: { options: [''] } }, update: { refresh: { options: [''] } }, delete: { refresh: { options: [''] } } }, aliases: { 'reindexRethrottle': [ '/_update_by_query/{task_id}/_rethrottle', '/_delete_by_query/{task_id}/_rethrottle' ] } }, { version: '>=2.0', paramAsBody: { scroll: { param: 'scrollId', body: 'scroll_id' }, clearScroll: { param: 'scrollId', body: 'scroll_id' } } }, // description overrides by major version { version: '0.90.x', descriptions: { search: 'search_1.x.asciidoc' } }, { version: '1.x', descriptions: { search: 'search_1.x.asciidoc' } }, { version: '2.x', descriptions: { search: 'search_2.x.asciidoc' } }, // examples changed at 5.0 { version: '<5.0.0', examples: { scroll: 'scroll_<5.0.asciidoc' } }, { version: '>=5.2 <5.5', paramAsBody: { clearScroll: { param: 'scrollId', body: 'scroll_id', castToArray: true, } } } ];