[%CFEngine_function_prototype(varref)%]

Description: Returns the list of keys in varref which can be the name of an array or container.

[This function can accept many types of data parameters.][Functions#collecting functions]

Make sure you specify the correct scope when supplying the name of the variable.

Note:

[%CFEngine_function_attributes(varref)%]

Example:

[%CFEngine_include_snippet(getindices.cf, #+begin_src cfengine3, .*end_src)%]

Output:

[%CFEngine_include_snippet(getindices.cf, #+begin_src\s+example_output\s, .end_src)%]

History:

See also: getvalues(), [about collecting functions][Functions#collecting functions], and data documentation.