Api clients
/
JavaScript
/
V3
/
Methods
Jan. 22, 2021
Export Rules | JavaScript API Client V3 (Deprecated)
This version of the JavaScript API client has been deprecated in favor of the latest version of the JavaScript API client.
Required API Key: any key with the
settings
ACL
Method signature
index.exportRules()
About this method
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.
Examples
Copy
Copy
1
2
3
4
5
$iterator = $index->browseRules();
foreach ($iterator as $rule) {
var_dump($rule);
}
Parameters
indexName
|
type: string
only needed in go, scala, c#
Index name. |
Response
Returns a Rule iterator.