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

model.suppressRemovalGroup


model.suppressRemovalGroup([name])

Suppress removal of the named removal group.If a group name is not specified the default name group is used. Removal groups aid removal of complex structures such as those created by deep discovery of databases (see model-setRemovalGroup for more information). In certain circumstances you might want to prevent removal of the removal group.

For example, the following code sets a removal group.


for row in dbs do
 db := model.DatabaseDetail(key := row.key, name := row.name);
 model.setRemovalGroup(db, "dbs");
end for;

If the pattern fails to recover details from the database, all the database details would be removed. This can be prevented using the following code in the case for example, where the credentials are locked out:


  model.suppressRemovalGroup("dbs");

 

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