_retrieve


The _retrieve query directive is used to read the data from a profile that was created using the _store directive.

NOTE - The result set stored using the _store directive is referred to as a profile. Hence the _store directive is also called a profiler.

Take a look at the example given below: _retrieve waf_server_list

Here, waf_server_list is an in_disk profile created using the _store directive. The _retrieve directive reads data from the waf_server_list profile and displays it.

Syntax:

_retrieve [ list | <store_name> ]

Here,

  • list: Keyword used to get the list of profiles.
  • ****: Name of the profile you want to read.
list

The _retrieve directive, along with the list keyword is used to get a list of the stored profile.

Take a look at the example given below: _retrieve list

The _retrieve directive uses the list keyword to fetch a list of all the existing profiles (within the scope) that were created using the _store directive. The output is as shown below:

List of available file nodes within the scope

In the above image, the highlighted part is the list of the existing profiles.

To retrieve the contents of a profile, use the _retrieve directive with the profile name.

_retrieve url_list

Store Name

The _retrieve directive uses the profile (store) name to retrieve contents of that profile.

For example, to retrieve contents of the active_device_list profile, use the query given below: _retrieve active_device_list

This query retrieves the contents of the active_device_list profile. This store has been created earlier using the _store directive. The output is as shown below:

Available data within the file node