Skip to main content
Required ACL: editSettings This removes all index rules currently present in the destination index, and replaces them with the rules from the source.

Examples

client.CopyRules("indexNameSrc", "indexNameDest");

// Asynchronous
client.CopyRulesAsync("indexNameSrc", "indexNameDest");

Parameters

indexNameDest
string
required
Name of the destination index.
indexNameSrc
string
required
Name of the source index to copy.
Last modified on February 20, 2026