This documentation supports the 20.08 (12.1) version of BMC Discovery.To view an earlier version of the product, select the version from the Product version menu.

list.append


list.append(list, value)

Appends an item to a specified list.

Where:

  • list – the list to which to add the value.
  • value – the value to add.

The following code example shows list.append being used to build a list of associated processes. This comes from the TKU Kubernetes pattern.

// Add associated processes
all_procs     := discovery.allProcesses(process);
related_procs := [];

    for procs_cmd in KUBERNETES_PROCS do
        procs := search(in all_procs where cmd matches %procs_cmd%);
        for proc in procs do
             list.append(related_procs, proc);
        end for;
    end for;
inference.associate(k8s_master_si, related_procs); 


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*