Export Rules
settings
ACL
$index->browseRules()
About this method # A
You’re currently reading the JavaScript API client v4 documentation. Check the migration guide to learn how to upgrade from v3 to v4. You can still access the v3 documentation.
You’re currently reading the Ruby API client v2 documentation. Check the migration guide to learn how to upgrade from v1 to v2. You can still access the v1 documentation.
Retrieve an index’s full list of Rules using an iterator.
The list contains the Rule name, plus the complete details of its conditions and consequences.
The list includes all Rules, whether created on the dashboard or pushed by the API.
To export Rules, you will need to use an iterator.
You can batch import and export Rules from the dashboard with a configuration file.
Examples # A
1
2
3
4
5
$iterator = $index->browseRules();
foreach ($iterator as $rule) {
var_dump($rule);
}
Parameters # A
indexName
# |
type: string
only needed in go, scala, c#
Index name. |
requestOptions
# |
type: key/value mapping
default: No request options
Optional
A mapping of |
Response # A
Returns a Rule iterator.