IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
indices.updateAliases
editindices.updateAliases
editclient.indices.updateAliases([params, [callback]])
Update specified aliases.
Check the API Conventions and the elasticsearch docs for more information pertaining to this method.
Perform an atomic alias swap, for a rotating index.
const response = await client.indices.updateAliases({ body: { actions: [ { remove: { index: 'logstash-2014.04', alias: 'logstash-current' } }, { add: { index: 'logstash-2014.05', alias: 'logstash-current' } } ] } });
Params
|
|
|
|
|
|